Upon conversation with Mr. Bauer, it appears that udev works differently for IBM Virtual machines, as there are no mac's in the file. In which case, the only other way is how he describes.
Stanley V. Hornyak Unix Systems Administrator CIT Hosting Services Branch Building 12B, Room 2N207 12 South Dr Bethesda, MD 20892 Phone (301) 402-2627 Cell (240) 205-9474 From: Hornyak, Stanley (NIH/CIT) [E] Sent: Tuesday, July 09, 2013 10:15 AM To: Bauer, Bobby (NIH/CIT) [E]; 'Linux on 390 Port' Cc: Dickinson, Eric (NIH/CIT) [E]; Dussault, John (NIH/CIT) [E] Subject: RE: Some interesting bits about eth0:n You will need to remove the mac entries in /etc/udev/rules.d/70-persistent-net.rules When udev sees the new mac entry it automatically assigns a new eth device The alternative is to edit the file to match the mac address. Hope this helps Stanley V. Hornyak Unix Systems Administrator CIT Hosting Services Branch Building 12B, Room 2N207 12 South Dr Bethesda, MD 20892 Phone (301) 402-2627 Cell (240) 205-9474 From: Bauer, Bobby (NIH/CIT) [E] Sent: Tuesday, July 09, 2013 10:10 AM To: 'Linux on 390 Port' Cc: Dickinson, Eric (NIH/CIT) [E]; Dussault, John (NIH/CIT) [E]; Hornyak, Stanley (NIH/CIT) [E] Subject: Some interesting bits about eth0:n This may be old news to some but it has cost us several hours so I thought I'd pass it on. We run multiple blog sites on single RHEL6 servers (multiple servers with similar configurations), each blog has an IP address defined with a ifcfg-eth0:n interface. Works fine except when we recently changed lpars and the mac address changed and the switches keep their ARP cache for 4 hours. The blogs defined with eth0:n were not available via http or even a ping. We had to do an arping to make them available. Of course it took a couple of tries at midnight to discover this. Turns out the eth0:n interfaces don't send a gratuitous ARP to tell folks 'here I am'. Haven't found that documented anywhere yet. The 'correct' method is to add IPADDRn and NETMASKn to ifcfg-eth0. That way a gratuitous ARP is sent both at IPL and ifup time. Of course now if you issue an 'ifconfig' command to check on your interfaces you only see the main IP address for eth0. You need to issue an 'ip addr' command to see secondary addresses. To take an IP address down or to delete it use 'ip addr del <ip>/<netmask> dev eth0 To add an IP address just add it to ifcfg-eth0 and do an 'ifup' Bobby Bauer Center for Information Technology National Institutes of Health Bethesda, MD 20892-5628 301-594-7474 ---------------------------------------------------------------------- For LINUX-390 subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390 ---------------------------------------------------------------------- For more information on Linux on System z, visit http://wiki.linuxvm.org/
