View previous topic :: View next topic |
Author |
Message |
Kollin Veteran
Joined: 25 Feb 2006 Posts: 1139 Location: Sofia/Bulgaria
|
Posted: Tue Jul 09, 2013 7:03 pm Post subject: [SOLVED] =net-misc/dhcpcd-6.0.2 |
|
|
net-misc/dhcpcd-6.0.2 spits this message when i try to connect to the internet:
Code: | Jul 09 19:42:04 [dhcpcd] version 6.0.2 starting
Jul 09 19:42:04 [dhcpcd] eth0: interface not found or invalid
Jul 09 19:42:04 [dhcpcd] forked to background, child pid 3041 |
Same with eth1.
I'm using forcedeth driver.
Masking dhcpcd-6.0.2 and downgrading to net-misc/dhcpcd-5.99.7-r1 solves the issue.
Just to let you know guys, if you see it coming be careful ! _________________ "Dear Enemy: may the Lord hate you and all your kind, may you be turned orange in hue, and may your head fall off at an awkward moment."
"Linux is like a wigwam - no windows, no gates, apache inside..."
Last edited by Kollin on Sat Jul 20, 2013 5:50 am; edited 1 time in total |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54234 Location: 56N 3W
|
Posted: Tue Jul 09, 2013 7:17 pm Post subject: |
|
|
Kollin,
Are you sure you are not suffering from udev 'permanent' device names ? _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
Kollin Veteran
Joined: 25 Feb 2006 Posts: 1139 Location: Sofia/Bulgaria
|
Posted: Tue Jul 09, 2013 9:08 pm Post subject: |
|
|
NeddySeagoon wrote: | Kollin,
Are you sure you are not suffering from udev 'permanent' device names ? |
Yes!
That was my first thought when i lost my network. _________________ "Dear Enemy: may the Lord hate you and all your kind, may you be turned orange in hue, and may your head fall off at an awkward moment."
"Linux is like a wigwam - no windows, no gates, apache inside..." |
|
Back to top |
|
|
UberLord Retired Dev
Joined: 18 Sep 2003 Posts: 6835 Location: Blighty
|
|
Back to top |
|
|
Kollin Veteran
Joined: 25 Feb 2006 Posts: 1139 Location: Sofia/Bulgaria
|
Posted: Tue Jul 09, 2013 10:07 pm Post subject: |
|
|
net-misc/dhcpcd-6.0.2
ifconfig
Code: |
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
ether 00:18:f3:29:c7:ae txqueuelen 1000 (Ethernet)
RX packets 112093 bytes 90037035 (85.8 MiB)
RX errors 0 dropped 13595 overruns 0 frame 0
TX packets 77385 bytes 19721302 (18.8 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
eth1: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
inet 192.168.0.255 netmask 255.255.255.0 broadcast 192.168.0.255
ether 00:18:f3:29:cc:68 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
loop txqueuelen 0 (Local Loopback)
RX packets 102701 bytes 41392005 (39.4 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 102701 bytes 41392005 (39.4 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.0.1 netmask 255.255.255.0 broadcast 192.168.0.255
ether 00:22:b0:62:62:0d txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 183 bytes 9150 (8.9 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 |
ip a
Code: | 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN.
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether 00:18:f3:29:c7:ae brd ff:ff:ff:ff:ff:ff
3: eth1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN qlen 1000
link/ether 00:18:f3:29:cc:68 brd ff:ff:ff:ff:ff:ff
inet 192.168.0.255/24 brd 192.168.0.255 scope global eth1
valid_lft forever preferred_lft forever
4: tunl0: <NOARP> mtu 1480 qdisc noop state DOWN.
link/ipip 0.0.0.0 brd 0.0.0.0
5: gre0: <NOARP> mtu 1476 qdisc noop state DOWN.
link/gre 0.0.0.0 brd 0.0.0.0
6: firewire0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 20
link/ieee1394 00:11:d8:00:00:c7:d7:fe brd ff:ff:ff:ff:ff:ff:ff:ff
7: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen 1000
link/ether 00:22:b0:62:62:0d brd ff:ff:ff:ff:ff:ff
inet 192.168.0.1/24 brd 192.168.0.255 scope global wlan0
valid_lft forever preferred_lft forever |
net-misc/dhcpcd-5.99.7-r1
Code: |
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 78.83.x.x netmask 255.255.240.0 broadcast 78.83.x.x
ether 00:18:f3:29:c7:ae txqueuelen 1000 (Ethernet)
RX packets 114308 bytes 90469285 (86.2 MiB)
RX errors 0 dropped 14161 overruns 0 frame 0
TX packets 78869 bytes 20270586 (19.3 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
eth1: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
inet 192.168.0.255 netmask 255.255.255.0 broadcast 192.168.0.255
ether 00:18:f3:29:cc:68 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
loop txqueuelen 0 (Local Loopback)
RX packets 105766 bytes 41622218 (39.6 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 105766 bytes 41622218 (39.6 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.0.1 netmask 255.255.255.0 broadcast 192.168.0.255
ether 00:22:b0:62:62:0d txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 191 bytes 9550 (9.3 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
|
ip a
Code: | 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether 00:18:f3:29:c7:ae brd ff:ff:ff:ff:ff:ff
inet 78.83.110.180/20 brd 78.83.111.255 scope global eth0
valid_lft forever preferred_lft forever
3: eth1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN qlen 1000
link/ether 00:18:f3:29:cc:68 brd ff:ff:ff:ff:ff:ff
inet 192.168.0.255/24 brd 192.168.0.255 scope global eth1
valid_lft forever preferred_lft forever
4: tunl0: <NOARP> mtu 1480 qdisc noop state DOWN
link/ipip 0.0.0.0 brd 0.0.0.0
5: gre0: <NOARP> mtu 1476 qdisc noop state DOWN
link/gre 0.0.0.0 brd 0.0.0.0
6: firewire0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 20
link/ieee1394 00:11:d8:00:00:c7:d7:fe brd ff:ff:ff:ff:ff:ff:ff:ff
7: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen 1000
link/ether 00:22:b0:62:62:0d brd ff:ff:ff:ff:ff:ff
inet 192.168.0.1/24 brd 192.168.0.255 scope global wlan0
valid_lft forever preferred_lft forever
|
eth1 and wlan0 are static
eth0 uses dhcpcd _________________ "Dear Enemy: may the Lord hate you and all your kind, may you be turned orange in hue, and may your head fall off at an awkward moment."
"Linux is like a wigwam - no windows, no gates, apache inside..." |
|
Back to top |
|
|
UberLord Retired Dev
Joined: 18 Sep 2003 Posts: 6835 Location: Blighty
|
|
Back to top |
|
|
Kollin Veteran
Joined: 25 Feb 2006 Posts: 1139 Location: Sofia/Bulgaria
|
Posted: Wed Jul 10, 2013 4:26 am Post subject: |
|
|
Code: | dhcpcd -x eth0
dhcpcd[11037]: sending commands to master dhcpcd process
felis package.mask # dhcpcd -dBf eth0
dhcpcd[11123]: fopen `eth0': No such file or directory
dhcpcd[11123]: dhcpcd already running on pid 10378 (/var/run/dhcpcd.pid) |
The result is the same for both dhcpcds net-misc/dhcpcd-6.0.2 and net-misc/dhcpcd-5.99.7-r1 _________________ "Dear Enemy: may the Lord hate you and all your kind, may you be turned orange in hue, and may your head fall off at an awkward moment."
"Linux is like a wigwam - no windows, no gates, apache inside..." |
|
Back to top |
|
|
gerard27 Advocate
Joined: 04 Jan 2004 Posts: 2377 Location: Netherlands
|
Posted: Wed Jul 10, 2013 11:25 am Post subject: |
|
|
Just checked /var/db/pkg/net-misc/ and it appears I'm running 6.0.2 since July 7.
No problem whatsoever.
This is on a desktop with wired connection.(eth0)
I don't use udev net-name-slot.rules.
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 |
|
|
UberLord Retired Dev
Joined: 18 Sep 2003 Posts: 6835 Location: Blighty
|
Posted: Wed Jul 10, 2013 1:08 pm Post subject: |
|
|
Kollin wrote: | Code: | dhcpcd -x eth0
dhcpcd[11037]: sending commands to master dhcpcd process
felis package.mask # dhcpcd -dBf eth0
dhcpcd[11123]: fopen `eth0': No such file or directory
dhcpcd[11123]: dhcpcd already running on pid 10378 (/var/run/dhcpcd.pid) |
The result is the same for both dhcpcds net-misc/dhcpcd-6.0.2 and net-misc/dhcpcd-5.99.7-r1 |
OK, that's good.
However this shows that you're running dhcpcd in master mode (ie controlling all interfaces).
This is good, but I think your network config in /etc/conf.d/net is trying to run dhcpcd per interface, which is bad.
You should generally do one or the other.
For sake of completeness, now do this
Code: |
pkill dhcpcd
sleep 10
dhcpcd -dBf
|
Should show the full dhcpcd output and you getting some IP addresses. _________________ Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool |
|
Back to top |
|
|
Kollin Veteran
Joined: 25 Feb 2006 Posts: 1139 Location: Sofia/Bulgaria
|
Posted: Wed Jul 10, 2013 4:09 pm Post subject: |
|
|
UberLord wrote: |
For sake of completeness, now do this
Code: |
pkill dhcpcd
sleep 10
dhcpcd -dBf
|
Should show the full dhcpcd output and you getting some IP addresses. |
net-misc/dhcpcd-6.0.2
Quote: | felis package.mask # pkill dhcpcd
felis package.mask # sleep 10
felis package.mask # dhcpcd -dBf
dhcpcd: option requires an argument -- 'f'
usage: dhcpcd [-46ABbDdEGgHJKkLnpqTVw]
[-C, --nohook hook] [-c, --script script]
[-e, --env value] [-F, --fqdn FQDN] [-f, --config file]
[-h, --hostname hostname] [-I, --clientid clientid]
[-i, --vendorclassid vendorclassid] [-l, --leasetime seconds]
[-m, --metric metric] [-O, --nooption option]
[-o, --option option] [-Q, --require option]
[-r, --request address] [-S, --static value]
[-s, --inform address[/cidr]] [-t, --timeout seconds]
[-u, --userclass class] [-v, --vendor code, value]
[-W, --whitelist address[/cidr]] [-y, --reboot seconds]
[-X, --blacklist address[/cidr]] [-Z, --denyinterfaces pattern]
[-z, --allowinterfaces pattern] [interface] [...]
dhcpcd -k, --release [interface]
dhcpcd -U, --dumplease interface
dhcpcd --version
dhcpcd -x, --exit [interface]
felis package.mask # dhcpcd -dB
dhcpcd[10506]: version 6.0.2 starting
^Cdhcpcd[10506]: received SIGINT from PID 0, stopping
dhcpcd[10506]: exited
felis package.mask # dhcpcd -dB eth0
dhcpcd[10539]: version 6.0.2 starting
dhcpcd[10539]: eth0: interface not found or invalid
^Cdhcpcd[10539]: received SIGINT from PID 0, stopping
dhcpcd[10539]: exited
|
_________________ "Dear Enemy: may the Lord hate you and all your kind, may you be turned orange in hue, and may your head fall off at an awkward moment."
"Linux is like a wigwam - no windows, no gates, apache inside..." |
|
Back to top |
|
|
UberLord Retired Dev
Joined: 18 Sep 2003 Posts: 6835 Location: Blighty
|
|
Back to top |
|
|
Kollin Veteran
Joined: 25 Feb 2006 Posts: 1139 Location: Sofia/Bulgaria
|
Posted: Wed Jul 10, 2013 4:58 pm Post subject: |
|
|
Quote: | felis package.mask # dhcpcd -dB eth0
dhcpcd[10539]: version 6.0.2 starting
dhcpcd[10539]: eth0: interface not found or invalid
^Cdhcpcd[10539]: received SIGINT from PID 0, stopping
dhcpcd[10539]: exited |
_________________ "Dear Enemy: may the Lord hate you and all your kind, may you be turned orange in hue, and may your head fall off at an awkward moment."
"Linux is like a wigwam - no windows, no gates, apache inside..." |
|
Back to top |
|
|
Kollin Veteran
Joined: 25 Feb 2006 Posts: 1139 Location: Sofia/Bulgaria
|
Posted: Fri Jul 19, 2013 9:55 pm Post subject: |
|
|
It's the same with net-misc/dhcpcd-6.0.3:
Code: | * Bringing up interface eth0
* dhcp ...
* Running dhcpcd ...
dhcpcd[3553]: version 6.0.3 starting
dhcpcd[3553]: eth0: interface not found or invalid
dhcpcd[3553]: forked to background, child pid 3554 |
_________________ "Dear Enemy: may the Lord hate you and all your kind, may you be turned orange in hue, and may your head fall off at an awkward moment."
"Linux is like a wigwam - no windows, no gates, apache inside..." |
|
Back to top |
|
|
UberLord Retired Dev
Joined: 18 Sep 2003 Posts: 6835 Location: Blighty
|
|
Back to top |
|
|
Kollin Veteran
Joined: 25 Feb 2006 Posts: 1139 Location: Sofia/Bulgaria
|
Posted: Fri Jul 19, 2013 10:51 pm Post subject: |
|
|
/etc/dhcpcd.conf
Code: | # A sample configuration for dhcpcd.
# See dhcpcd.conf(5) for details.
#nohook resolv.conf
background
# Inform the DHCP server of our hostname for DDNS.
hostname
# To share the DHCP lease across OSX and Windows a ClientID is needed.
# Enabling this may get a different lease than the kernel DHCP client.
# Some upstream DHCP servers may also require a ClientID, such as FRITZ!Box.
#clientid
allowinterfaces br0
#denyinterfaces eth0
#denyinterfaces eth1
#interface eth0 static ip_address=0.0.0.0
#interface eth1 static ip_address=0.0.0.0
# A list of options to request from the DHCP server.
option domain_name_servers, domain_name, domain_search, host_name
option classless_static_routes
# Most distributions have NTP support.
option ntp_servers
# Respect the network MTU.
option interface_mtu
# A ServerID is required by RFC2131.
require dhcp_server_identifier
# A hook script is provided to lookup the hostname if not set by the DHCP
# server, but it should not be run by default.
nohook lookup-hostname
#nohook resolv.conf |
This config worked just fine untill dhcpcd-6* _________________ "Dear Enemy: may the Lord hate you and all your kind, may you be turned orange in hue, and may your head fall off at an awkward moment."
"Linux is like a wigwam - no windows, no gates, apache inside..." |
|
Back to top |
|
|
UberLord Retired Dev
Joined: 18 Sep 2003 Posts: 6835 Location: Blighty
|
Posted: Sat Jul 20, 2013 2:32 am Post subject: |
|
|
Kollin wrote: | /etc/dhcpcd.conf
Code: | # A sample configuration for dhcpcd.
# See dhcpcd.conf(5) for details.
#nohook resolv.conf
background
# Inform the DHCP server of our hostname for DDNS.
hostname
# To share the DHCP lease across OSX and Windows a ClientID is needed.
# Enabling this may get a different lease than the kernel DHCP client.
# Some upstream DHCP servers may also require a ClientID, such as FRITZ!Box.
#clientid
allowinterfaces br0
#denyinterfaces eth0
#denyinterfaces eth1
#interface eth0 static ip_address=0.0.0.0
#interface eth1 static ip_address=0.0.0.0
# A list of options to request from the DHCP server.
option domain_name_servers, domain_name, domain_search, host_name
option classless_static_routes
# Most distributions have NTP support.
option ntp_servers
# Respect the network MTU.
option interface_mtu
# A ServerID is required by RFC2131.
require dhcp_server_identifier
# A hook script is provided to lookup the hostname if not set by the DHCP
# server, but it should not be run by default.
nohook lookup-hostname
#nohook resolv.conf |
This config worked just fine untill dhcpcd-6* |
Code: | allowinterfaces br0 |
DING!
So you're only allowing the br0 interface to work.
dhpcd-6 fixed the allow/deny interface rules _________________ Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool |
|
Back to top |
|
|
Kollin Veteran
Joined: 25 Feb 2006 Posts: 1139 Location: Sofia/Bulgaria
|
Posted: Sat Jul 20, 2013 5:49 am Post subject: |
|
|
UberLord wrote: |
Code: | allowinterfaces br0 |
DING!
So you're only allowing the br0 interface to work.
dhpcd-6 fixed the allow/deny interface rules |
Thank you, that was it! _________________ "Dear Enemy: may the Lord hate you and all your kind, may you be turned orange in hue, and may your head fall off at an awkward moment."
"Linux is like a wigwam - no windows, no gates, apache inside..." |
|
Back to top |
|
|
|
|
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
|
|