View previous topic :: View next topic |
Author |
Message |
painteru Tux's lil' helper
Joined: 23 Aug 2007 Posts: 103
|
Posted: Sun Aug 25, 2013 7:51 pm Post subject: [SOLVED] cant get pppoe working |
|
|
Hi there,
I'm trying to get the pppoe connection up now when I've started a new gentoo OS installation.
I'm using the latest minimal iso (Aug 20)
I booted cd iso then did
pppoe-setup
then pppoe-start
Well, even that pppoe-start said : Connected
pinging www doesn't work
I know that in the past in order to get pppoe working , I had to stop net.eth*
The problem is now that there's no net.eth anymore since the new udev.
My network card got a name something like enp4s1 and don't know how to stop it.
Any advicees how to set up working a pppoe connection on the new udev conditions?
Thank you,
Daniel[list] _________________ My art at www.danielchiriac.com
Last edited by painteru on Wed Aug 28, 2013 1:57 pm; edited 1 time in total |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54216 Location: 56N 3W
|
Posted: Sun Aug 25, 2013 7:56 pm Post subject: |
|
|
painteru,
everywhere you used to use eth0, use enp4s1 or whatever your network interface is called in ifconfig. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
painteru Tux's lil' helper
Joined: 23 Aug 2007 Posts: 103
|
Posted: Sun Aug 25, 2013 8:05 pm Post subject: |
|
|
Hi NeddySeagoon,
When pppoe-setup prompt me to set net interface (default eth0) I wrote down what ifconfig told which is
emp4s1
Then, when I do pppoe-start, it gives out : Connectected!,
yet, when I ping www.gentoo.org or else, I get
ping: unknow host www.gentoo.org _________________ My art at www.danielchiriac.com |
|
Back to top |
|
|
painteru Tux's lil' helper
Joined: 23 Aug 2007 Posts: 103
|
Posted: Sun Aug 25, 2013 8:08 pm Post subject: |
|
|
Oh, thought it is obvious, posting in install gentoo threads.
This is about a fresh install.
It's the first step of installing gentoo. So this is happening on Cd iso enviroment _________________ My art at www.danielchiriac.com |
|
Back to top |
|
|
painteru Tux's lil' helper
Joined: 23 Aug 2007 Posts: 103
|
Posted: Sun Aug 25, 2013 8:11 pm Post subject: |
|
|
after pppoe-start,
doing #ifconfig
I see that I got ppp0 up and with an ip assigned.
but I cant ping any www _________________ My art at www.danielchiriac.com |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54216 Location: 56N 3W
|
Posted: Mon Aug 26, 2013 5:34 pm Post subject: |
|
|
painteru,
What IP do you get ?
What is in /etc/resolv.conf when pppoe looks like it should work?
What is in the kernel routing table - the output of the route command.
Heres my ppp0 setup from the net file of my router
Code: | config_eth2="null"
# with BTs Box need to start ppp0
config_ppp0="ppp"
link_ppp0="eth2"
plugins_ppp0="pppoe"
pppd_ppp0="defaultroute usepeerdns"
# There may be other settings you want, see /usr/share/doc/openrc-*/net.example.bz2
username_ppp0='<my_ISP_username>'
password_ppp0='<my_ISP_password>' |
_________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
painteru Tux's lil' helper
Joined: 23 Aug 2007 Posts: 103
|
Posted: Tue Aug 27, 2013 10:20 am Post subject: |
|
|
NeddySeagoon wrote: | painteru,
What IP do you get ? |
for enp4s1 I get 169.254.246.76
for ppp0 79.112.216.20
NeddySeagoon wrote: | What is in /etc/resolv.conf when pppoe looks like it should work? |
nothing but a couple of #ed lines....so practically nothing.
NeddySeagoon wrote: | What is in the kernel routing table - the output of the route command. |
well, quite too much to write on a mobile device
Code: | default 10.0.0.1 0.0.0.0 UG 0 0 0 ppp0
10.0.0.1 * 255.255.255.255 UH 0 0 0 ppp0
loopback livecd.gento 255.0.0.0 UG 0 0 0 lo
link-local * 255.255.0.0 U 202 0 0 enp4s1 |
_________________ My art at www.danielchiriac.com |
|
Back to top |
|
|
painteru Tux's lil' helper
Joined: 23 Aug 2007 Posts: 103
|
Posted: Tue Aug 27, 2013 10:49 am Post subject: |
|
|
Oh, and I've noticed that at the live cd boot time I get this message:
no network device auto detected _________________ My art at www.danielchiriac.com |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54216 Location: 56N 3W
|
Posted: Tue Aug 27, 2013 6:11 pm Post subject: |
|
|
painteru,
You don't have any way of resolving names to their IPs.
You don't need a link-local IP address but it should be harmless. Thats the 169.254.246.76.
Your ppp0 IP address looks real.
Put into your /etc/resolv.conf and test you network.
This will only work until your lease on the ppp0 IP address expires, at which time this entry will probably vanish.
8.8.8.8 is a Google provided public nameserver.
If you browse by IP it may just work too, even with no nameserver. Try http://173.194.34.69 _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
painteru Tux's lil' helper
Joined: 23 Aug 2007 Posts: 103
|
Posted: Wed Aug 28, 2013 10:47 am Post subject: |
|
|
Thank you NeddySeagoon,
I appreciate you help.
I did what you suggested but didn't work for me.
Then. I did
#ln -s net.lo /etc/init.d/net.emp4s1
and I've tried ping again with no result.
Then I copied the nameserver IPs from the resolv.conf of another box that I connected to the same PPPoE connection and used those IPs at the pppoe-setup for DNS (instead of 'server' option)
....well, no results either...
Now, when writing this above, it gives me idea to copy that working resolv.conf to the livecd resolv.conf and see what's happens.
Oh, I've just remembered to ask.... It's a normal thing not to have the #emerge command on minimal livecd before downloading stage 3 tar ball ? I was thinking that maybe it's a bad livecd.... _________________ My art at www.danielchiriac.com |
|
Back to top |
|
|
painteru Tux's lil' helper
Joined: 23 Aug 2007 Posts: 103
|
Posted: Wed Aug 28, 2013 11:54 am Post subject: |
|
|
So, I managed to bring up and working the pppoe connection
This is how I did:
AFTER #pppoe-setup then #pppoe-start , because resolve.conf was empty,
I wrote nameserver IPs that I've took from the working box, on the livecd resolve.conf file.
Now pinging any www works
The problem was this:
I deliver those DNSs at the #pppoe-setup stage when I was asked to give them or to chose 'server" (ISP provides DNS - which is the option I always used before and which worked) and DNSs was written on the resolve.conf file.
Well, when I #pppoe-start, the resolve.conf file got empty. So I have to manually write downn those nameservers. _________________ My art at www.danielchiriac.com |
|
Back to top |
|
|
painteru Tux's lil' helper
Joined: 23 Aug 2007 Posts: 103
|
Posted: Wed Aug 28, 2013 11:58 am Post subject: |
|
|
I think this is a bug or something and is big one as the Internet connection is essential for Gentoo Linux installation process.
And also, as the new Udev is prsent in the livecd, why the old net.eth are still there in place and net.lo is not linked to the predictable net name ?
Is this possible that the new Udev is not yet implemented on the weekly minimal live cd install? _________________ My art at www.danielchiriac.com |
|
Back to top |
|
|
painteru Tux's lil' helper
Joined: 23 Aug 2007 Posts: 103
|
Posted: Wed Aug 28, 2013 1:57 pm Post subject: |
|
|
Well...I got the pppoe working up without any hand editing file.
So, if in the past I had to stop net.ethX first in order to get pppoe working,
now I have to stop dhcpd first for the same result.
So, this is what you need to do prior to #pppoe-start
Code: | /etc/init.d/dhcpd stop |
Not sure if I wrote "dhcpd" corect look in /etc/init.d for the correct spelling.
Anyway, I think this must be wrote up on the Gentoo handbook ...because I remember how long it took me to resolve the problem in the past (stop that net.eth first) _________________ My art at www.danielchiriac.com |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54216 Location: 56N 3W
|
Posted: Wed Aug 28, 2013 7:33 pm Post subject: |
|
|
painteru,
Please file a bug at bugs.gentoo.org to describe the problem and your solution.
This will put a documentation update in the developers work queue. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
|