CentOS 6.5 安装系统后添加网卡
1、查看网卡信息
cat /etc/udev/rules.d/70-persistent-net.rules
# 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 0x15ad:0x07b0 (vmxnet3)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0c:29:56:9e:1d", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
# PCI device 0x15ad:0x07b0 (vmxnet3)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0c:29:56:9e:27", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"
2、复制第一个网卡的信息
cp /etc/sysconfig/network-scripts/ifcfg-eth0 /etc/sysconfig/network-scripts/ifcfg-eth1
#修改 DEVICE:eth0 -> DEVICE:eth1
#修改 HWADDR:00:0c:29:56:9e:1d -> HWADDR:00:0c:29:56:9e:27
#修改IP信息
3、重启网络
service network restart
完毕
定,精,简,俭