Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Network does not start at boot
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
nohup
n00b
n00b


Joined: 30 Jun 2012
Posts: 6

PostPosted: Sun Jul 01, 2012 3:24 am    Post subject: Network does not start at boot Reply with quote

I've added net.eth0 to to the default runlevel, but it does not start automatically. When manually invoking
Code:
/etc/init.d/net.eth0 start
network starts and works fine. In my /etc/conf.d/net i have config_eth0="dhcp", so it gets address from my DHCP and just works. Why network does not start at boot? I did all stuff as written in the Handbook.
Back to top
View user's profile Send private message
BillWho
Veteran
Veteran


Joined: 03 Mar 2012
Posts: 1600
Location: US

PostPosted: Sun Jul 01, 2012 4:46 am    Post subject: Reply with quote

nohup,

Are you sure it's there - what does
Code:
ls -l /etc/runlevels/default/net.eth0

return :?:
_________________
Good luck :wink:

Since installing gentoo, my life has become one long emerge :)
Back to top
View user's profile Send private message
nohup
n00b
n00b


Joined: 30 Jun 2012
Posts: 6

PostPosted: Sun Jul 01, 2012 6:07 am    Post subject: Reply with quote

Here it is:
Code:
$ ls -l /etc/runlevels/default/net.eth0
lrwxrwxrwx 1 root root 20 Jul  1 06:51 /etc/runlevels/default/net.eth0 -> /etc/init.d/net.eth0
Back to top
View user's profile Send private message
BillWho
Veteran
Veteran


Joined: 03 Mar 2012
Posts: 1600
Location: US

PostPosted: Sun Jul 01, 2012 12:56 pm    Post subject: Reply with quote

nohup,

Check the contents of
Code:
cat /etc/udev/rules.d/70-persistent-net.rules

and
Code:
ifconfig|grep HWaddr

Does dmesg say anything about eth0
Code:
dmesg|grep eth0

_________________
Good luck :wink:

Since installing gentoo, my life has become one long emerge :)
Back to top
View user's profile Send private message
nohup
n00b
n00b


Joined: 30 Jun 2012
Posts: 6

PostPosted: Sun Jul 01, 2012 3:06 pm    Post subject: Reply with quote

Oops, after couple reboots it gets working properly :)
I can't say which of my actions fixed it. I only remember that I was installing nouveau drivers, disabling unneccesary features at the same time and rebuilding the kernel.
So my advice is: Read The Handbook Attentively. I often skip some chapters that seemed to be not about my particular hardware or needs, but what makes the problem solved in 98% of cases is Understanding.

Also here is my configs as you asked:
Code:
$ cat /etc/udev/rules.d/70-persistent-net.rules
# This file was automatically generated by the /lib/udev/write_net_rules
# program, run by the persistent-net-generator.rules rules file.
#
# You can modify it, as long as you keep each rule on a single
# line, and change only the value of the NAME= key.

# PCI device 0x10ec:0x8168 (r8169)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:1f:d0:b4:ab:d7", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"

Code:
$ /sbin/ifconfig|grep HWaddr
eth0      Link encap:Ethernet  HWaddr 00:1f:d0:b4:ab:d7 

Code:
$ dmesg|grep eth0
[    4.647962] r8169 0000:02:00.0: eth0: RTL8168c/8111c at 0xffffc90000320000, 00:1f:d0:b4:ab:d7, XID 1c4000c0 IRQ 42
[    4.647965] r8169 0000:02:00.0: eth0: jumbo features [frames: 6128 bytes, tx checksumming: ko]
[    8.530790] r8169 0000:02:00.0: eth0: link down
[    8.530797] r8169 0000:02:00.0: eth0: link down
[    8.531123] ADDRCONF(NETDEV_UP): eth0: link is not ready
[   10.155233] r8169 0000:02:00.0: eth0: link up
[   10.155525] ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   20.962097] eth0: no IPv6 routers present
Back to top
View user's profile Send private message
BillWho
Veteran
Veteran


Joined: 03 Mar 2012
Posts: 1600
Location: US

PostPosted: Sun Jul 01, 2012 4:01 pm    Post subject: Reply with quote

nohup wrote:
Oops, after couple reboots it gets working properly :)


Are you saying that it's connecting at boot time now :?:

Looking over your information, I don't see anything obvious that would prevent it from starting :?

My dmesg shows [ 39.177104] sky2 0000:02:00.0: eth0: Link is up at 100 Mbps, full duplex, flow control both which is different than your [ 10.155233] r8169 0000:02:00.0: eth0: link up

I'm at kernel version 3.5.0-rc5 which might be the reason :|
_________________
Good luck :wink:

Since installing gentoo, my life has become one long emerge :)
Back to top
View user's profile Send private message
nohup
n00b
n00b


Joined: 30 Jun 2012
Posts: 6

PostPosted: Sun Jul 01, 2012 4:43 pm    Post subject: Reply with quote

Quote:
Are you saying that it's connecting at boot time now ?

Yes. As net.eth0 is in the default runlevel.
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
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