Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] dhcp works not properly
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2  
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
gerard27
Advocate
Advocate


Joined: 04 Jan 2004
Posts: 2377
Location: Netherlands

PostPosted: Tue Apr 06, 2010 7:41 pm    Post subject: Reply with quote

Is that all you get from rc-status?
Gerard.
_________________
To install Gentoo I use sysrescuecd.Based on Gentoo,has firefox to browse Gentoo docs and mc to browse (and edit) files.
The same disk can be used for 32 and 64 bit installs.
You can follow the Handbook verbatim.
http://www.sysresccd.org/Download
Back to top
View user's profile Send private message
roelof
Guru
Guru


Joined: 05 Feb 2009
Posts: 488

PostPosted: Tue Apr 06, 2010 7:48 pm    Post subject: Reply with quote

Hello Gerard, '

Yes, that all there is on the booted system.
Or did you want a rc-status on the chrooted enviroment.

Roelof
Back to top
View user's profile Send private message
gerard27
Advocate
Advocate


Joined: 04 Jan 2004
Posts: 2377
Location: Netherlands

PostPosted: Tue Apr 06, 2010 7:50 pm    Post subject: Reply with quote

Here's mine:
Code:

Runlevel: default
 sysklogd                                                          [  started  ]
 gpm                                                               [  started  ]
 dbus                                                              [  started  ]
 acpid                                                             [  started  ]
 consolekit                                                        [  started  ]
 hald                                                              [  started  ]
 net.eth0                                                          [  started  ]
 netmount                                                          [  started  ]
 xdm                                                               [  started  ]
 clamd                                                             [  started  ]
 ntp-client                                                        [  started  ]
 cupsd                                                             [  started  ]
 ntpd                                                              [  started  ]
 udev-postmount                                                    [  started  ]
 local                                                             [  started  ]
Dynamic Runlevel: hotplugged
Dynamic Runlevel: needed
 udev-mount                                                        [  started  ]
 xdm-setup                                                         [  started  ]
Dynamic Runlevel: manual

If that what you posted is all then you should consult the handbook again.
Compare mine to yours.
Gerard.
_________________
To install Gentoo I use sysrescuecd.Based on Gentoo,has firefox to browse Gentoo docs and mc to browse (and edit) files.
The same disk can be used for 32 and 64 bit installs.
You can follow the Handbook verbatim.
http://www.sysresccd.org/Download
Back to top
View user's profile Send private message
mikegpitt
Advocate
Advocate


Joined: 22 May 2004
Posts: 3224

PostPosted: Tue Apr 06, 2010 7:53 pm    Post subject: Reply with quote

roelof wrote:
did you want a rc-status on the chrooted enviroment.
Roelof
Wait... are you trying to use dhcp inside your chrooted environment, or inside your regular system?
Back to top
View user's profile Send private message
roelof
Guru
Guru


Joined: 05 Feb 2009
Posts: 488

PostPosted: Tue Apr 06, 2010 7:54 pm    Post subject: Reply with quote

Oke,

But you have a full installed system.
I just a minium installed system.

dbus and hal are installed by Xorg.
cups is not installed on my system.
consolekit is installed by gnome.

That are all steps I have to do.

Roelof
Back to top
View user's profile Send private message
roelof
Guru
Guru


Joined: 05 Feb 2009
Posts: 488

PostPosted: Tue Apr 06, 2010 7:54 pm    Post subject: Reply with quote

Hello Mike,

I use dhcp inside my regular system.

Roelof
Back to top
View user's profile Send private message
gerard27
Advocate
Advocate


Joined: 04 Jan 2004
Posts: 2377
Location: Netherlands

PostPosted: Tue Apr 06, 2010 9:14 pm    Post subject: Reply with quote

Having things just installed is not enough!
They should also be running.
Gerard.
_________________
To install Gentoo I use sysrescuecd.Based on Gentoo,has firefox to browse Gentoo docs and mc to browse (and edit) files.
The same disk can be used for 32 and 64 bit installs.
You can follow the Handbook verbatim.
http://www.sysresccd.org/Download
Back to top
View user's profile Send private message
roelof
Guru
Guru


Joined: 05 Feb 2009
Posts: 488

PostPosted: Wed Apr 07, 2010 5:38 am    Post subject: Reply with quote

Hello Gerard,

What does this remark help on solving the problem ?
You cannnot compare a full installation with a just installed stage 3 tarball installation.

Roelof

Edit : I try to boot without the router . Just the computer connected to the modem.
But still the same problem. So the router is not the problem.
Back to top
View user's profile Send private message
gerard27
Advocate
Advocate


Joined: 04 Jan 2004
Posts: 2377
Location: Netherlands

PostPosted: Wed Apr 07, 2010 8:40 am    Post subject: Reply with quote

You're missing hald and dbus in your default runlevel.
I don't know what is in your bootlevel.
That's why I recommended checking the handbook.
Gerard.
_________________
To install Gentoo I use sysrescuecd.Based on Gentoo,has firefox to browse Gentoo docs and mc to browse (and edit) files.
The same disk can be used for 32 and 64 bit installs.
You can follow the Handbook verbatim.
http://www.sysresccd.org/Download
Back to top
View user's profile Send private message
roelof
Guru
Guru


Joined: 05 Feb 2009
Posts: 488

PostPosted: Wed Apr 07, 2010 11:50 am    Post subject: Reply with quote

Hello Gerard.

Hald en Dbus are installed when you install X.
X is not yet installed and with a not working internet I couldn't install X.

Roelof
Back to top
View user's profile Send private message
gerard27
Advocate
Advocate


Joined: 04 Jan 2004
Posts: 2377
Location: Netherlands

PostPosted: Wed Apr 07, 2010 12:28 pm    Post subject: Reply with quote

Installed is not enough.
They should be running.
In your default runlevel you don't have dbus,hald or acpid.
dmesg might give a clue as to what goes wrong.
Just type dmesg | less in a console and check for info on 8139.
The 8139 is about the best supported ethernet card in Linux.
You can use pge-dwn and -up to browse dmesg | less.
Gerard.
_________________
To install Gentoo I use sysrescuecd.Based on Gentoo,has firefox to browse Gentoo docs and mc to browse (and edit) files.
The same disk can be used for 32 and 64 bit installs.
You can follow the Handbook verbatim.
http://www.sysresccd.org/Download
Back to top
View user's profile Send private message
roelof
Guru
Guru


Joined: 05 Feb 2009
Posts: 488

PostPosted: Wed Apr 07, 2010 12:50 pm    Post subject: Reply with quote

Hello Gerard.

I think we found it.
In dmesg I found this messages.

8139too Fast Ethernet Driver
8139too <a lot of numbers> PCI int A -> GSI 20 (level, low) -> IRQ 20
eth1 : Realtek RTL8139 at < a lot of numbers>
<6> 8139cp <a lot of numbers> 10/100 PCI Ethernet Driver v1.3

So the card is named eth1 where DHCP is looking for eth0

Roelof
Back to top
View user's profile Send private message
mikegpitt
Advocate
Advocate


Joined: 22 May 2004
Posts: 3224

PostPosted: Wed Apr 07, 2010 1:30 pm    Post subject: Reply with quote

roelof wrote:

So the card is named eth1 where DHCP is looking for eth0
Roelof
That is odd, because in a previous post your ifconfig output listed the card as eth0, unless you have multiple network cards on your machine. An `ifconfig -a` will display all the cards even if they are inactive.

I would recommend installing netplug and take net.eth0/1 out of your default runlevel. Netplug will handle your connections just fine.

I take if that you are able to get an ipaddress using eth1 now?

About gerard82's comments... you don't need hal/dbus/acpi for a working system. Yes, most systems have this installed (and running) but they are definitely not necessary. I'm not exactly sure what those services would add to help this situation either.
Back to top
View user's profile Send private message
roelof
Guru
Guru


Joined: 05 Feb 2009
Posts: 488

PostPosted: Wed Apr 07, 2010 1:57 pm    Post subject: Reply with quote

Oke,

I will goto the chrooted enviroment and install netplug.
After that I will delete net.eth0 and net.eth1

I will come back and report how things works now.

Roelof
Back to top
View user's profile Send private message
mikegpitt
Advocate
Advocate


Joined: 22 May 2004
Posts: 3224

PostPosted: Wed Apr 07, 2010 2:05 pm    Post subject: Reply with quote

roelof wrote:
I will goto the chrooted enviroment and install netplug.
After that I will delete net.eth0 and net.eth1
Having anything in any runlevel inside a chroot doesn't matter, since the environment isn't booted. This is what I was getting at yesterday when I asked if you were running dhcp on your regular machine or inside chroot. Your chroot will have the same ip address and network connectivity as your regular bootable installation. I'm not sure if it is possible to assign a separate ip address inside chroot...
Back to top
View user's profile Send private message
roelof
Guru
Guru


Joined: 05 Feb 2009
Posts: 488

PostPosted: Wed Apr 07, 2010 2:12 pm    Post subject: Reply with quote

Oke,

I did the steps, booted the installed system and also netplug finds eth0.

I think that udev has a wrong rule so that any card will be eth1 instead of eth0

Roelof
Back to top
View user's profile Send private message
mikegpitt
Advocate
Advocate


Joined: 22 May 2004
Posts: 3224

PostPosted: Wed Apr 07, 2010 2:27 pm    Post subject: Reply with quote

roelof wrote:
Oke,

I did the steps, booted the installed system and also netplug finds eth0.

I think that udev has a wrong rule so that any card will be eth1 instead of eth0

Roelof
Can you post the output of `ifconfig -a` so we can see what might be going on?

If you want to change the assignment of your network interfaces, this is the file to do it in: /etc/udev/rules.d/70-persistent-net.rules
Back to top
View user's profile Send private message
roelof
Guru
Guru


Joined: 05 Feb 2009
Posts: 488

PostPosted: Wed Apr 07, 2010 2:41 pm    Post subject: Reply with quote

Hello,

I already looked in the 70-persistent-net.rules.
And find out that first a firewire card is found and after that the network card.
And in the rule of the network card is stated name="eth1".
Change it to eth0 does not help.

Still want to have the output of ifconfig -a ?

Roelof
Back to top
View user's profile Send private message
mikegpitt
Advocate
Advocate


Joined: 22 May 2004
Posts: 3224

PostPosted: Wed Apr 07, 2010 9:10 pm    Post subject: Reply with quote

roelof wrote:

Still want to have the output of ifconfig -a ?
No, I suppose it doesn't really matter if you are sure that eth1 is your network card. I'm confused as to what you are trying to accomplish... Can you answer the following?

1) Are you trying to run dhcp or start net.eth1 inside a chroot environment?

2) Now that you found that your network card is eth1, are things working?

If the answer to 1 is yes, then I'm pretty sure this is not possible. If you answer to 2 is no, I'm still strongly leaning toward a kernel misconfiguration. You mentioned that you are using pappy's kernel seeds, but there is always a chance that something went wrong. I would still encourage you to rebuild your kernel using the same configuration as on the livecd to see if it helps. BTW - What kernel are you using?
Back to top
View user's profile Send private message
Raptor85
Apprentice
Apprentice


Joined: 29 Dec 2007
Posts: 208

PostPosted: Wed Apr 07, 2010 10:58 pm    Post subject: Reply with quote

You could try starting the interfaces manually after rebooting to see if they're working at all, that would eliminate any confusion about where the error is.

After the reboot(not within the chrooted environment) try this.

ifconfig eth1 x.x.x.x
(obviously put a local ip address for your network here)

echo "nameserver 212.54.35.25" >> /etc/resolv.conf

and test to see if you can get a connection, if that works it's probably not your driver, you can then try this.

dhcpcd -k
dhcpcd -d eth1

and see what it returns to you, if these work your error is in the runlevel scripts, if not post the full error message up here.
Back to top
View user's profile Send private message
roelof
Guru
Guru


Joined: 05 Feb 2009
Posts: 488

PostPosted: Thu Apr 08, 2010 6:20 am    Post subject: Reply with quote

Hello Mike,

1) No, as I said im working on my newly installed system.

2) nope, it's not working.


Hello Raptor,

After ifconfig and the echo still no connection.
after dhcpcd -k i get a message no device specified
But after dhcpcd -d eth1 a working connection.

So it must be the runlevel scripts.
Can you or anyone else help me debug this ?

Roelof

Edit : Can we give the firewire card another name because it's no network card but a card to connect my digital camera to the computer.
Back to top
View user's profile Send private message
roelof
Guru
Guru


Joined: 05 Feb 2009
Posts: 488

PostPosted: Thu Apr 08, 2010 6:47 pm    Post subject: Reply with quote

Hello,

I solved it.
I renamed net.eth0 to net.eth1 and now everything works.

Roelof
Back to top
View user's profile Send private message
mikegpitt
Advocate
Advocate


Joined: 22 May 2004
Posts: 3224

PostPosted: Thu Apr 08, 2010 7:29 pm    Post subject: Reply with quote

roelof wrote:
Hello,

I solved it.
I renamed net.eth0 to net.eth1 and now everything works.

Roelof
Ahh... we should have checked that a while ago. I'm still surprised netplug didn't work for you if the init script works fine.

Happy to hear things are working!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
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