Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

No Format
cd /etc/sysconfig/network-scripts
No Format
mv ifcfg-eth0 ifcfg-eth1
vi ifcfg-eth0eth1

Change the settings to the following (do NOT change the HWADDR or UUID)

No Format
# Advanced Micro Devices [AMD] 79c970 [PCnet32 LANCE]
DEVICE=eth0DEVICE=eth1
HWADDR=08:00:27:d8:37:29
TYPE=Ethernet
ONBOOT=yes
BOOTPROTO=none
IPADDR=10.0.2.4
NETMASK=255.255.255.0
GATEWAY=10.0.2.1
NETWORK=10.0.2.0
HWADDR=08:00:27:4D:61:97
TYPE=Ethernet
UUID=c4a351d7-380f-4dd9-a7ad-a92c30cf01c0
NM_CONTROLLED=yes=no
IPV6INIT=no

 

5. Ensure  HWADDR in ifcfg-eth1 above is set to the same value as ATTR{address} in the following file.

No Format
cat /etc/udev/rules.d/70-persistent-net.rules
No Format
# This file was automatically generated by the /lib/udev/write_net_rules
# program, run by the persistent-net-generator.rules rules file.
#
# You can modify it, as long as you keep each rule on a single
# line, and change only the value of the NAME= key.
# PCI device 0x8086:0x100e (e1000)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="08:00:27:d8:37:29", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"

 

5. Restart the network interface

...