tirabytes

CentOS: Interface MAC fix

Jan 12th, 2014
785
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. vi /etc/udev/rules.d/70-persistent-net.rules
  2.  
  3. # PCI device 0x15ad:0x07b0 (vmxnet3)
  4. SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*",
  5. ATTR{address}=="00:50:56:ae:00:1a",
  6. ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
  7.  
  8. # PCI device 0x15ad:0x07b0 (vmxnet3)
  9. SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*",
  10. ATTR{address}=="00:50:56:ae:00:1b",
  11. ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"
  12.  
  13.  
  14. ## Match MAC address in /etc/sysconfig/network-scripts/ifcfg-eth0
  15.  
  16. start_udev
  17.  
  18. service network restart
RAW Paste Data