From: Frank C. <vfc...@go...> - 2009-09-14 14:05:49
|
I installed an ubuntu Gutsy and later upgraded them to Hardy Heron, but it seems that some of the networking settings carried over, and as I have to run them all at the same time I just want to make sure the problems don't happen again. I am afraid to reboot them in case they lose their settings. I have used the info in this link http://colinux.wikia.com/wiki/Wubi#udev:_renamed_network_interface_eth0_to_eth2 to fix the problem temporarily, but I am not sure what mac addresses they will be given if I reboot them. I just want to have a way of ensuring that the interfaces are given unique mac address when they restart. These are the current ifconfig settings and the contents of the /etc/udev/rules.d/70-persistent-net.rules, they are all derived from the same image. gutsy 7.1 - current configuration of ifconfig ============================== eth0 Link encap:Ethernet HWaddr 00:FF:41:48:88:00 eth1 Link encap:Ethernet HWaddr 00:FF:37:1B:2C:00 <pre> # This file maintains persistent names for network interfaces. # See udev(7) for syntax. # # Entries are automatically added by the 75-persistent-net-generator.rules # file; however you are also free to add your own entries. # PCI device 0x1a55:0x0005 (conet) SUBSYSTEM=="net", DRIVERS=="?*", ATTRS{address}=="00:ff:55:1d:81:00", NAME="eth0" # PCI device 0x1a55:0x0005 (conet) SUBSYSTEM=="net", DRIVERS=="?*", ATTRS{address}=="00:ff:9c:6d:40:00", NAME="eth1" # PCI device 0x1a55:0x0005 (conet) SUBSYSTEM=="net", DRIVERS=="?*", ATTRS{address}=="00:ff:23:78:05:00", NAME="eth2" # PCI device 0x1a55:0x0005 (conet) SUBSYSTEM=="net", DRIVERS=="?*", ATTRS{address}=="00:ff:3f:c7:4b:c0", NAME="eth3" # PCI device 0x1a55:0x0005 (conet) SUBSYSTEM=="net", DRIVERS=="?*", ATTRS{address}=="00:ff:37:1b:2c:00", NAME="eth4" # PCI device 0x1a55:0x0005 (conet) SUBSYSTEM=="net", DRIVERS=="?*", ATTRS{address}=="00:ff:41:48:88:00", NAME="eth5" </pre> heron 1 - current configuration from ifconfig ================================= eth0 Link encap:Ethernet HWaddr 00:ff:41:48:88:00 eth1 Link encap:Ethernet HWaddr 00:ff:37:1b:2c:00 <pre> GNU nano 2.0.7 File: /etc/udev/rules.d/70-persistent-net.rules View # This file maintains persistent names for network interfaces. # See udev(7) for syntax. # # Entries are automatically added by the 75-persistent-net-generator.rules # file; however you are also free to add your own entries. # PCI device 0x1a55:0x0005 (conet) SUBSYSTEM=="net", DRIVERS=="?*", ATTRS{address}=="00:ff:41:48:88:00", ATTR{type}=="1", NAME="eth0" # PCI device 0x1a55:0x0005 (conet) SUBSYSTEM=="net", DRIVERS=="?*", ATTRS{address}=="00:ff:37:1b:2c:00", ATTR{type}=="1", NAME="eth1" # PCI device 0x1a55:0x0005 (conet) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:ff:3f:c7:4b:c0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0" # PCI device 0x1a55:0x0005 (conet) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:ff:23:78:05:00", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1" # PCI device 0x1a55:0x0005 (conet) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:ff:41:48:88:00", ATTR{type}=="1", KERNEL=="eth*", NAME="eth2" # PCI device 0x1a55:0x0005 (conet) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:ff:37:1b:2c:00", ATTR{type}=="1", KERNEL=="eth*", NAME="eth3" </pre> heron 2 - working configuration from ifconfig ================================= eth0 Link encap:Ethernet HWaddr 00:ff:55:1d:81:00 eth1 Link encap:Ethernet HWaddr 00:ff:9c:6d:40:00 <pre> # This file maintains persistent names for network interfaces. # See udev(7) for syntax. # # Entries are automatically added by the 75-persistent-net-generator.rules # file; however you are also free to add your own entries. # PCI device 0x1a55:0x0005 (conet) SUBSYSTEM=="net", DRIVERS=="?*", ATTRS{address}=="00:ff:41:48:88:00", ATTR{type}=="1", NAME="eth0" # PCI device 0x1a55:0x0005 (conet) SUBSYSTEM=="net", DRIVERS=="?*", ATTRS{address}=="00:ff:37:1b:2c:00", ATTR{type}=="1", NAME="eth1" # PCI device 0x1a55:0x0005 (conet) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:ff:55:1d:81:00", ATTR{type}=="1", KERNEL=="eth*", NAME="eth2" # PCI device 0x1a55:0x0005 (conet) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:ff:9c:6d:40:00", ATTR{type}=="1", KERNEL=="eth*", NAME="eth3" # PCI device 0x1a55:0x0005 (conet) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:ff:3f:c7:4b:c0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth4" # PCI device 0x1a55:0x0005 (conet) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:ff:23:78:05:00", ATTR{type}=="1", KERNEL=="eth*", NAME="eth5" </pre> -- Frank Church ============================ http://devblog.brahmancreations.com |