[Email protected] network-scripts]# ifconfig-a
eth1 Link encap:ethernet HWaddr 00:0c:29:4a:b4:06
inet addr:192.168.0.24 bcast:192.168.0.255 mask:255.255.255.0
Inet6 ADDR:FE80::20C:29FF:FE4A:B406/64 Scope:link
Up broadcast RUNNING multicast mtu:1500 metric:1
RX packets:264794 errors:0 dropped:0 overruns:0 frame:0
TX packets:3962 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:19166586 (18.2 MiB) TX bytes:703299 (686.8 KiB)
cd/etc/sysconfig/network-scripts/
Vim Ifcfg-eth1--If only eth0
Vim/etc/udev/rules.d/70-persistent-net.rules--View network card address
# PCI Device 0x8086:0x100f (e1000)
subsystem== "NET", action== "Add", drivers== "? *", attr{address}== "00:0c:29:9d:f2:e6", attr{type}== "1", kernel== "eth*" , name= "Eth0"
# PCI Device 0x8086:0x100f (e1000)
subsystem== "NET", action== "Add", drivers== "? *", attr{address}== "00:0c:29:4a:b4:06", attr{type}== "1", kernel== "eth*" , name= "Eth1"
cd/etc/sysconfig/network-scripts/
Cp-a Ifcfg-eth0 ifcfg-eth1
Rm-f Ifcfg-eth0
Vim Ifcfg-eth1
Note that the ipaddr must be in the same network segment as the IP address under Windows. The IP of my WIN7 is 192.168.0.43
Service Network restart
CentOS Modify IP Address