- the main one is that net.agent reckons that both my network cards are mapped
to eth1. If I turn on debuging (DEBUG=1 in /etc/default/hotplug) then I see:
invoke ifrename for eth0
iface eth0 is remapped to eth1
invoke ifrename for eth1
iface eth1 is remapped to eth1
This obviously causes "ifup eth1=hotplug" to be invoked twice, while my network
card is actually eth0
my /etc/iftab contains:
eth0 mac 00:80:c8:e0:0c:a6
eth1 mac 00:50:8d:4c:40:30
I think the problem is that ifrename is invoked as:
ifrename -t -i eth0 (which maps eth0 to eth1)
and then as
ifrename -t -i eth1 (perhaps this picks up the newly mapped eth1 rather than the
eth1 that needs mapping to eth0)
- The other problem is that there is a huge race condition on bringing up the
interfaces. The net.rc script sleeps waiting for a file to be removed, but by
the time it has reacted, some other init scripts may have been called that
needed the network to be up.
More investigation shows a couple of problems:
- the main one is that net.agent reckons that both my network cards are mapped hotplug) then I see:
to eth1. If I turn on debuging (DEBUG=1 in /etc/default/
invoke ifrename for eth0
iface eth0 is remapped to eth1
invoke ifrename for eth1
iface eth1 is remapped to eth1
This obviously causes "ifup eth1=hotplug" to be invoked twice, while my network
card is actually eth0
my /etc/iftab contains:
eth0 mac 00:80:c8:e0:0c:a6
eth1 mac 00:50:8d:4c:40:30
I think the problem is that ifrename is invoked as:
ifrename -t -i eth0 (which maps eth0 to eth1)
and then as
ifrename -t -i eth1 (perhaps this picks up the newly mapped eth1 rather than the
eth1 that needs mapping to eth0)
- The other problem is that there is a huge race condition on bringing up the
interfaces. The net.rc script sleeps waiting for a file to be removed, but by
the time it has reacted, some other init scripts may have been called that
needed the network to be up.