[NTLUG:Discuss] Ubuntu-8.10 [udev] handling of NICs

terry trryhend at gmail.com
Sat Feb 28 10:47:54 CST 2009


I've added another NIC to a Ubuntu 8.10 machine because the on-board
NIC died and was wanting to make sure network settings will stay as I
have set them, (in spite of the network-manager and udev etc...).
(Needs to be static IP.)

I see the following lines in /etc/udev/rules.d/70-persistent-net.rules
=================================
# PCI device 0x10de:0x00df (forcedeth)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*",
ATTR{address}=="00:30:1b:ba:28:f0", ATTR{type}=="1", KERNEL=="eth*",
NAME="eth0"

# PCI device 0x1186:0x1300 (8139too)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*",
ATTR{address}=="00:50:ba:4d:60:d2", ATTR{type}=="1", KERNEL=="eth*",
NAME="eth1"
=================================
Question #1)  Does the above config file assure me that the NICs won't
trade places?

Question #2)  Since this computer will always use static IP, would it
be a good idea to un-install network-manager?  Or, is that not really
necessary?

I edited /etc/network/interfaces and added lines:
============================
auto eth1
iface eth1 inet static
        address 192.xxx.xxx.xxx
        netmask 255.255.255.0
        network 192.xxx.xxx.0
        broadcast 192.xxx.xxx.255
        gateway 192.xxx.xxx.1
======================
And I now see that when you "Edit connections" in the network manager,
you only see "Auto eth0"   That is probably a good thing, [in this
case], (that editing eth1 is no longer an option), but just wondering
if something else should be done to keep it reliable.  (This computer
belongs to a friend that is not very computer savvy and I'm trying to
keep it working reliably for her.)

I also added
/sbin/route add default gw 10.182.110.1
to /etc/rc.local  so that the default gw will stay correct after
reboot. (Probably not the best way, but... it is all I could think of
in a hurry. ?)

(Things seem to have changed since I last dealt with this sort of issue.)

Thanks in advance for any enlightenment / advice on this issue.  (I'm
pretty sure there are better / easier ways to do what I've just done.)






--
<><



More information about the Discuss mailing list