Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
I must be an idiot - network problem
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
cp_tar
Tux's lil' helper
Tux's lil' helper


Joined: 19 Jun 2005
Posts: 94
Location: /home

PostPosted: Thu Oct 12, 2006 12:06 am    Post subject: I must be an idiot - network problem Reply with quote

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
View user's profile Send private message
Hagar
Guru
Guru


Joined: 11 Feb 2003
Posts: 445

PostPosted: Thu Oct 12, 2006 12:13 am    Post subject: Reply with quote

Did you copy /etc/resolv.conf into the chroot?
Back to top
View user's profile Send private message
cp_tar
Tux's lil' helper
Tux's lil' helper


Joined: 19 Jun 2005
Posts: 94
Location: /home

PostPosted: Thu Oct 12, 2006 12:22 am    Post subject: Reply with quote

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
View user's profile Send private message
Hagar
Guru
Guru


Joined: 11 Feb 2003
Posts: 445

PostPosted: Thu Oct 12, 2006 1:33 am    Post subject: Reply with quote

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
View user's profile Send private message
RageOfOrder
Tux's lil' helper
Tux's lil' helper


Joined: 06 Aug 2006
Posts: 99
Location: EH?!?!

PostPosted: Thu Oct 12, 2006 4:06 am    Post subject: Reply with quote

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
View user's profile Send private message
cp_tar
Tux's lil' helper
Tux's lil' helper


Joined: 19 Jun 2005
Posts: 94
Location: /home

PostPosted: Thu Oct 12, 2006 6:39 am    Post subject: Reply with quote

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
View user's profile Send private message
cp_tar
Tux's lil' helper
Tux's lil' helper


Joined: 19 Jun 2005
Posts: 94
Location: /home

PostPosted: Thu Oct 12, 2006 7:13 am    Post subject: Reply with quote

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
View user's profile Send private message
cp_tar
Tux's lil' helper
Tux's lil' helper


Joined: 19 Jun 2005
Posts: 94
Location: /home

PostPosted: Thu Oct 12, 2006 2:48 pm    Post subject: Reply with quote

Anyone?

Any ideas?
_________________
Do not feed the elephant.
Back to top
View user's profile Send private message
haggo
n00b
n00b


Joined: 10 Oct 2006
Posts: 2

PostPosted: Thu Oct 12, 2006 4:08 pm    Post subject: nope Reply with quote

sorry dude not a clue, but i can see your problem
_________________
Green Jem Garden And Hand Tools
Back to top
View user's profile Send private message
d2_racing
Bodhisattva
Bodhisattva


Joined: 25 Apr 2005
Posts: 13047
Location: Ste-Foy,Canada

PostPosted: Thu Oct 12, 2006 4:50 pm    Post subject: Reply with quote

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
View user's profile Send private message
cp_tar
Tux's lil' helper
Tux's lil' helper


Joined: 19 Jun 2005
Posts: 94
Location: /home

PostPosted: Fri Oct 13, 2006 1:27 pm    Post subject: Reply with quote

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
View user's profile Send private message
cyrillic
Watchman
Watchman


Joined: 19 Feb 2003
Posts: 7313
Location: Groton, Massachusetts USA

PostPosted: Fri Oct 13, 2006 4:56 pm    Post subject: Reply with quote

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
View user's profile Send private message
cp_tar
Tux's lil' helper
Tux's lil' helper


Joined: 19 Jun 2005
Posts: 94
Location: /home

PostPosted: Mon Nov 06, 2006 10:35 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum