Created
November 1, 2013 23:52
-
-
Save jvalleroy/7273729 to your computer and use it in GitHub Desktop.
[fbx] Dreamplug ethernet ports are assigned randomly at boot as eth0 and eth1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### These are annotations that I added. | |
### My setup is: Top ethernet port is disconnected. Bottom port is connected to router. | |
### /etc/network/interfaces assigns eth0 to 192.168.1.1, and uses dhcp for eth1. | |
### So I am hoping that eth1 will be assigned an address by my router. This means that I want the connected port to be interface eth1, not eth0. | |
################################################## | |
### First boot - I didn't see any logs related to the network interfaces. | |
################################################## | |
### Second boot - eth1 was assigned 192.168.1.133 by DHCP. | |
[....] Configuring network interfaces...[ 41.023393] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready | |
Internet Systems Consortium DHCP Client 4.2.4 | |
Copyright 2004-2012 Internet Systems Consortium. | |
All rights reserved. | |
For info, please visit https://www.isc.org/software/dhcp/ | |
[ 41.348339] mv643xx_eth_port mv643xx_eth_port.1 eth1: link down | |
[ 41.354416] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready | |
Listening on LPF/eth1/f0:ad:4e:02:35:da | |
Sending on LPF/eth1/f0:ad:4e:02:35:da | |
Sending on Socket/fallback | |
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 4 | |
[ 44.448912] mv643xx_eth_port mv643xx_eth_port.1 eth1: link up, 1000 Mb/s, full duplex, flow control disabled | |
[ 44.458825] IPv6: ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready | |
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 10 | |
DHCPREQUEST on eth1 to 255.255.255.255 port 67 | |
DHCPOFFER from 192.168.1.1 | |
DHCPACK from 192.168.1.1 | |
bound to 192.168.1.133 -- renewal in 41626 seconds. | |
done. | |
root@freedombox:~# ifconfig | |
eth0 Link encap:Ethernet HWaddr f0:ad:4e:02:35:d9 | |
inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0 | |
UP BROADCAST MULTICAST MTU:1500 Metric:1 | |
RX packets:0 errors:0 dropped:0 overruns:0 frame:0 | |
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 | |
collisions:0 txqueuelen:1000 | |
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) | |
Interrupt:11 | |
eth1 Link encap:Ethernet HWaddr f0:ad:4e:02:35:da | |
inet addr:192.168.1.133 Bcast:192.168.1.255 Mask:255.255.255.0 | |
inet6 addr: fe80::f2ad:4eff:fe02:35da/64 Scope:Link | |
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 | |
RX packets:42 errors:0 dropped:0 overruns:0 frame:0 | |
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0 | |
collisions:0 txqueuelen:1000 | |
RX bytes:4028 (3.9 KiB) TX bytes:1216 (1.1 KiB) | |
Interrupt:15 | |
lo Link encap:Local Loopback | |
inet addr:127.0.0.1 Mask:255.0.0.0 | |
inet6 addr: ::1/128 Scope:Host | |
UP LOOPBACK RUNNING MTU:65536 Metric:1 | |
RX packets:100 errors:0 dropped:0 overruns:0 frame:0 | |
TX packets:100 errors:0 dropped:0 overruns:0 carrier:0 | |
collisions:0 txqueuelen:0 | |
RX bytes:7624 (7.4 KiB) TX bytes:7624 (7.4 KiB) | |
[....] Deconfiguring network interfaces...Internet Systems Consortium DHCP Client 4.2.4 | |
Copyright 2004-2012 Internet Systems Consortium. | |
All rights reserved. | |
For info, please visit https://www.isc.org/software/dhcp/ | |
Listening on LPF/eth1/f0:ad:4e:02:35:da | |
Sending on LPF/eth1/f0:ad:4e:02:35:da | |
Sending on Socket/fallback | |
DHCPRELEASE on eth1 to 192.168.1.1 port 67 | |
done. | |
################################################## | |
### Third boot - eth1 was not assigned an address. | |
[....] Configuring network interfaces...[ 40.999080] mv643xx_eth_port mv643xx_eth_port.1 eth0: link down | |
[ 41.005255] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready | |
Internet Systems Consortium DHCP Client 4.2.4 | |
Copyright 2004-2012 Internet Systems Consortium. | |
All rights reserved. | |
For info, please visit https://www.isc.org/software/dhcp/ | |
[ 41.319504] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready | |
Listening on LPF/eth1/f0:ad:4e:02:35:d9 | |
Sending on LPF/eth1/f0:ad:4e:02:35:d9 | |
Sending on Socket/fallback | |
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 8 | |
[ 44.092508] mv643xx_eth_port mv643xx_eth_port.1 eth0: link up, 1000 Mb/s, full duplex, flow control disabled | |
[ 44.102417] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready | |
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 9 | |
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 10 | |
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 11 | |
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 13 | |
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 10 | |
No DHCPOFFERS received. | |
No working leases in persistent database - sleeping. | |
done. | |
root@freedombox:~# ifconfig | |
eth0 Link encap:Ethernet HWaddr f0:ad:4e:02:35:da | |
inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0 | |
inet6 addr: fe80::f2ad:4eff:fe02:35da/64 Scope:Link | |
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 | |
RX packets:20 errors:0 dropped:0 overruns:0 frame:0 | |
TX packets:4 errors:0 dropped:0 overruns:0 carrier:0 | |
collisions:0 txqueuelen:1000 | |
RX bytes:1312 (1.2 KiB) TX bytes:448 (448.0 B) | |
Interrupt:15 | |
eth1 Link encap:Ethernet HWaddr f0:ad:4e:02:35:d9 | |
UP BROADCAST MULTICAST MTU:1500 Metric:1 | |
RX packets:0 errors:0 dropped:0 overruns:0 frame:0 | |
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 | |
collisions:0 txqueuelen:1000 | |
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) | |
Interrupt:11 | |
lo Link encap:Local Loopback | |
inet addr:127.0.0.1 Mask:255.0.0.0 | |
inet6 addr: ::1/128 Scope:Host | |
UP LOOPBACK RUNNING MTU:65536 Metric:1 | |
RX packets:80 errors:0 dropped:0 overruns:0 frame:0 | |
TX packets:80 errors:0 dropped:0 overruns:0 carrier:0 | |
collisions:0 txqueuelen:0 | |
RX bytes:5904 (5.7 KiB) TX bytes:5904 (5.7 KiB) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment