Hi,
I'm having the following issue. I have two network cards in my box, eth0 and eth1. One is an mobo onboard card and the other addon card.
lspci output
Code:
00:05.0 Bridge: nVidia Corporation CK8S Ethernet Controller (rev a2)
02:07.0 Ethernet controller: ADMtek NC100 Network Everywhere Fast Ethernet 10/100 (rev 11)
The problem is, sometimes the onboard card is assigned eth0, and sometimes the ADMtek card is. I have DHCP to configure my network settigns and I have the following startup script to get around the problem:
Code:
#!/bin/bash
desktopIP=10.0.0.1
nmask=255.255.0.0
for iface in {eth1,eth0}; do
/sbin/dhcpcd $iface -t 5s
if [ -f /etc/dhcpc/dhcpcd-$iface.pid ]; then
echo "dhcp running on $iface";
exit
else
/sbin/ifconfig $iface $desktopIP netmask $nmask up
fi
done
But how do I get around this in an elegant way?