View previous topic :: View next topic |
Author |
Message |
cp_tar Tux's lil' helper
Joined: 19 Jun 2005 Posts: 94 Location: /home
|
Posted: Thu Oct 12, 2006 12:06 am Post subject: I must be an idiot - network problem |
|
|
Here's the deal: when configured from the install media, my network connection works just fine and dandy.
However, after the reboot and inside the chrooted environment it doesn't work.
I'd even reverted to rp-pppoe instead of pppd, which I haven't used up till now, so I'd thought there was a configuration error.
(Oh, yes, I'm using it for ADSL... it just times out.)
No good.
Then I remembered having a similar problem once and being told there must be something wrong with my kernel config... nope, forcedeth is compiled in the kernel.
Besides, chroot uses the kernel from the CD, not the one I compiled... so what am I doing wrong?
What am I missing?
TIA _________________ Do not feed the elephant. |
|
Back to top |
|
|
Hagar Guru
Joined: 11 Feb 2003 Posts: 445
|
Posted: Thu Oct 12, 2006 12:13 am Post subject: |
|
|
Did you copy /etc/resolv.conf into the chroot? |
|
Back to top |
|
|
cp_tar Tux's lil' helper
Joined: 19 Jun 2005 Posts: 94 Location: /home
|
Posted: Thu Oct 12, 2006 12:22 am Post subject: |
|
|
Hagar wrote: | Did you copy /etc/resolv.conf into the chroot? | I don't recall doing it, but I checked just now: they are identical.
So either I'd copied it or it was generated when I did the pppoe-setup or something... it only contains two nameserver lines. _________________ Do not feed the elephant. |
|
Back to top |
|
|
Hagar Guru
Joined: 11 Feb 2003 Posts: 445
|
Posted: Thu Oct 12, 2006 1:33 am Post subject: |
|
|
If you've mounted /dev and /proc in your chroot as well then I can't explain it.
Are you positive the connection is working outside the chroot? |
|
Back to top |
|
|
RageOfOrder Tux's lil' helper
Joined: 06 Aug 2006 Posts: 99 Location: EH?!?!
|
Posted: Thu Oct 12, 2006 4:06 am Post subject: |
|
|
I had the same issue, and it was because I'm often too lazy to mount /dev and /proc, so just run dhcpcd from inside the chrooted environment and it should pick up a connection. _________________ ...And then stuff happened. |
|
Back to top |
|
|
cp_tar Tux's lil' helper
Joined: 19 Jun 2005 Posts: 94 Location: /home
|
Posted: Thu Oct 12, 2006 6:39 am Post subject: |
|
|
RageOfOrder wrote: | I had the same issue, and it was because I'm often too lazy to mount /dev and /proc, so just run dhcpcd from inside the chrooted environment and it should pick up a connection. | I will try that, but what about when I reboot?
It is not a chroot then, and it doesn't work either... _________________ Do not feed the elephant. |
|
Back to top |
|
|
cp_tar Tux's lil' helper
Joined: 19 Jun 2005 Posts: 94 Location: /home
|
Posted: Thu Oct 12, 2006 7:13 am Post subject: |
|
|
cp_tar wrote: | RageOfOrder wrote: | I had the same issue, and it was because I'm often too lazy to mount /dev and /proc, so just run dhcpcd from inside the chrooted environment and it should pick up a connection. | I will try that, but what about when I reboot?
It is not a chroot then, and it doesn't work either... | Just checked... mounted proc and dev all right (-t proc none /mnt/gentoo/proc, -o bind /dev /mnt/gentoo/dev), chrooted, stopped the connection from the outside of chroot.
I don't even have dhcpd inside chroot; I don't need it.
Anyway, I tried starting pppoe again, and it timed out yet again, so this is not it. _________________ Do not feed the elephant. |
|
Back to top |
|
|
cp_tar Tux's lil' helper
Joined: 19 Jun 2005 Posts: 94 Location: /home
|
Posted: Thu Oct 12, 2006 2:48 pm Post subject: |
|
|
Anyone?
Any ideas? _________________ Do not feed the elephant. |
|
Back to top |
|
|
haggo n00b
Joined: 10 Oct 2006 Posts: 2
|
|
Back to top |
|
|
d2_racing Bodhisattva
Joined: 25 Apr 2005 Posts: 13047 Location: Ste-Foy,Canada
|
Posted: Thu Oct 12, 2006 4:50 pm Post subject: |
|
|
Hello, you will need to configure /etc/conf.d/net to use the DHCP.
Also, you will need to install dhcpcd.
Code: |
# nano /etc/conf.d/net
config_eth0 = "dhcp"
# emerge -pv dhcpcd
# emerge -v dhcpcd
|
|
|
Back to top |
|
|
cp_tar Tux's lil' helper
Joined: 19 Jun 2005 Posts: 94 Location: /home
|
Posted: Fri Oct 13, 2006 1:27 pm Post subject: |
|
|
d2_racing wrote: | Hello, you will need to configure /etc/conf.d/net to use the DHCP.
Also, you will need to install dhcpcd.
Code: |
# nano /etc/conf.d/net
config_eth0 = "dhcp"
# emerge -pv dhcpcd
# emerge -v dhcpcd
|
| DHCP is of no use to me...
I finally found out the problem: ppp really worked, but didn't get any DNS info. I can't fathom why.
When I tried running rp-pppoe, it couldn't connect because of ppp.
Since I couldn't find where to add the DNS info for ppp (rp-pppoe uses resolv normally), I switched back to rp-pppoe.
I haven't tested it thoroughly yet, but it should work now.
Now all that remains to be done are sound and X... when I get home in a day or so. _________________ Do not feed the elephant. |
|
Back to top |
|
|
cyrillic Watchman
Joined: 19 Feb 2003 Posts: 7313 Location: Groton, Massachusetts USA
|
Posted: Fri Oct 13, 2006 4:56 pm Post subject: |
|
|
cp_tar wrote: | I finally found out the problem: ppp really worked, but didn't get any DNS info. I can't fathom why ... |
It is your DHCP client's job to obtain the DNS info. |
|
Back to top |
|
|
cp_tar Tux's lil' helper
Joined: 19 Jun 2005 Posts: 94 Location: /home
|
Posted: Mon Nov 06, 2006 10:35 am Post subject: |
|
|
cyrillic wrote: | cp_tar wrote: | I finally found out the problem: ppp really worked, but didn't get any DNS info. I can't fathom why ... |
It is your DHCP client's job to obtain the DNS info. | Back again...
I don't think my ISP sends out any DHCP information; I've always had to specify the DNS manually. _________________ Do not feed the elephant. |
|
Back to top |
|
|
|