Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Error start network
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
Oschtan
n00b
n00b


Joined: 27 Dec 2008
Posts: 66
Location: Russia, Novosibirsk

PostPosted: Wed Jan 18, 2017 5:43 pm    Post subject: Error start network Reply with quote

After reboot:
Code:

 * Bringing down interface eth0
 *   Stopping netplug on eth0 ...                                                                                                                      [ ok ]
RTNETLINK answers: No such file or directory
Error talking to the kernel
 * Bringing up interface eth0
 *   Starting netplug on eth0 ...                                                                                                                      [ ok ]
 *     Backgrounding ...
 * Error: net.eth0 has not started

Over time - networking started
Idea?
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 2750

PostPosted: Wed Jan 18, 2017 6:58 pm    Post subject: Reply with quote

Are you at all having eth0 or does it get renamed by udev rules?
You could simply test with ls -al /sys/class/net/
Back to top
View user's profile Send private message
Oschtan
n00b
n00b


Joined: 27 Dec 2008
Posts: 66
Location: Russia, Novosibirsk

PostPosted: Wed Jan 18, 2017 7:15 pm    Post subject: Reply with quote

I have two network interfaces. Both run with an error at system start
net.eth0 and net.enp1s6
Code:
lrwxrwxrwx  1 root root 0 янв 19  2017 enp1s6 -> ../../devices/pci0000:00/0000:00:08.0/0000:01:06.0/net/enp1s6
lrwxrwxrwx  1 root root 0 янв 19  2017 eth0 -> ../../devices/pci0000:00/0000:00:0a.0/net/eth0
lrwxrwxrwx  1 root root 0 янв 19  2017 lo -> ../../devices/virtual/net/lo

lspci
Code:

00:0a.0 Ethernet controller: NVIDIA Corporation MCP77 Ethernet (rev a2)
01:06.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8100/8101L/8139 PCI Fast Ethernet Adapter (rev 10)

/etc/conf.d/net
Code:
modules_eth0="netplugd"
config_eth0="XX.XX.XX.XX netmask 255.255.255.240 brd XX.XX.XX.XX" <== secret
routes_eth0="default gw XX.XX.XX.XX"
dns_servers_eth0="193.238.131.93 193.238.131.65"
dns_search_eth0="academ.org"
dns_domain_eth0="academ.org"

modules_enp1s6="netplug"
config_enp1s6="192.168.50.1 netmask 255.255.255.252"
routes_enp1s6="default via 192.168.50.1"

The problem is probably in the course of the year there, and only at rare reboot. Before that 9 years without any problems
Back to top
View user's profile Send private message
hujuice
Apprentice
Apprentice


Joined: 16 Oct 2007
Posts: 278
Location: Rome, Italy

PostPosted: Fri Jan 20, 2017 12:14 pm    Post subject: Reply with quote

Same here, on multiple machines.
It should depend on me (some kernel module that I miss, or so). But I really don't know where to search for.

Regards,
HUjuice
_________________
Who hasn't a spine, should have a method.
Chi non ha carattere, deve pur avere un metodo.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 44050
Location: 56N 3W

PostPosted: Fri Jan 20, 2017 12:37 pm    Post subject: Reply with quote

Oschtan,

Code:
00:0a.0 Ethernet controller: NVIDIA Corporation MCP77 Ethernet (rev a2)

That needs the
Code:
  │ │    [*]   NVIDIA devices                                 │ │ 
  │ │    < >     nForce Ethernet support (NEW)

The kernel symbol is CONFIG_FORCEDETH.

I suspect that its already there as the kernel can see
Code:
lrwxrwxrwx  1 root root 0 янв 19  2017 eth0 -> ../../devices/pci0000:00/0000:00:0a.0/net/eth0


Do you have the net.eth0 -> net.lo symbolic link in /etc/init.d/ ?
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
guitou
Guru
Guru


Joined: 02 Oct 2003
Posts: 414
Location: France

PostPosted: Fri Jan 20, 2017 12:51 pm    Post subject: Reply with quote

Hi.

Just in case, is it possible you simply made a typo?
Code:

modules_eth0="netplugd"
modules_enp1s6="netplug"


++
Gi)
Back to top
View user's profile Send private message
hujuice
Apprentice
Apprentice


Joined: 16 Oct 2007
Posts: 278
Location: Rome, Italy

PostPosted: Sun Jan 22, 2017 11:59 am    Post subject: Reply with quote

NeddySeagoon wrote:
Code:
00:0a.0 Ethernet controller: NVIDIA Corporation MCP77 Ethernet (rev a2)

Not for me.
I've:
lspci | grep Eth:
02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 09)

The card can work with the r8169 kernel module as driver, but many people tell about oddities, so there's a manufacturer provided module net-misc/r8168.
I cannot appreciate differences.

guitou wrote:
Just in case, is it possible you simply made a typo?

Really no. My configuration is very very simple, now:
/etc/conf.d/net:
modules_eth0="dhcpcd"
config_eth0="dhcp"
dhcpcd_eth0="--noipv4ll"


I've the same card in all my four home computer, and everywhere I've the same message when I stop the service, not when I start it (the symlink to net.lo is there).
I don't have the same if I configure the network manually (ip addr... ip link.. or ifconfig... or dhcpcd....), so the issue is related to the openrc service.
Obviously, there's always my hand in the kernel configurations, so I suppose that I systematically miss something.

The message is still there.

Regards,
HUjuice
_________________
Who hasn't a spine, should have a method.
Chi non ha carattere, deve pur avere un metodo.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 44050
Location: 56N 3W

PostPosted: Sun Jan 22, 2017 12:13 pm    Post subject: Reply with quote

hujuice,

Thats a different card with a different problem. You may be missing a firmware patch. Look in dmesg for firmware loading issues if you use the kernel r8169 driver.
If you use out of kernel drivers, you get to keep all the pieces.

We see from Oschtans post
Code:
lrwxrwxrwx  1 root root 0 янв 19  2017 enp1s6 -> ../../devices/pci0000:00/0000:00:08.0/0000:01:06.0/net/enp1s6
lrwxrwxrwx  1 root root 0 янв 19  2017 eth0 -> ../../devices/pci0000:00/0000:00:0a.0/net/eth0
and
Code:
00:0a.0 Ethernet controller: NVIDIA Corporation MCP77 Ethernet (rev a2)
01:06.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8100/8101L/8139 PCI Fast Ethernet Adapter (rev 10)

by matching the PCI addresses that eth0 is 0000:00:0a.0.

I notice now that there is a mix of kernel assigned interface names and udev names. That's probably a bad thing.
We would need to see dmesg to know.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
hujuice
Apprentice
Apprentice


Joined: 16 Oct 2007
Posts: 278
Location: Rome, Italy

PostPosted: Sun Jan 22, 2017 4:35 pm    Post subject: Reply with quote

It looks all right, NeddySeagoon.

Yes, my card is different, I don't have any firmware related message. Note that I have the same card on four computers and I tried the net-misc/r8168 only in one of them, but the error is present everywhere.
Yes, I renamed the card via udev, nothing more than this: https://wiki.gentoo.org/wiki/Handbook:AMD64/Networking/Advanced#Network_interface_naming

My complete dmesg is here: http://pastebin.com/P7DdKh4n

HUjuice
_________________
Who hasn't a spine, should have a method.
Chi non ha carattere, deve pur avere un metodo.
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