1.因为公司ip和mac地址是绑定的,所以要修改mac
#关掉网卡 [root@node2 ~]# ifdown eth0 #修改MAC地址 [root@node2 ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0 DEVICE="eth0" BOOTPROTO="static" #HWADDR="00:0C:29:7C:08:AE" MACADDR="00:02:23:45:43:AE" IPV6INIT="yes" NM_CONTROLLED="yes" ONBOOT="yes" TYPE="Ethernet" UUID="79026818-4eb8-4dcd-9abe-3b0fc0ffd21b" IPADDR=192.168.222.11 NETMASK=255.255.255.0 GATEWAY=192.168.222.2 DNS1=114.114.114.114 #启动网卡 [root@node2 ~]# ifup eth0 #验证 [root@node2 ~]# ifconfig eth0 eth0 Link encap:Ethernet HWaddr 00:02:23:45:43:AE inet addr:192.168.222.11 Bcast:192.168.222.255 Mask:255.255.255.0 inet6 addr: fe80::202:23ff:fe45:43ae/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:852 errors:0 dropped:0 overruns:0 frame:0 TX packets:529 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:78255 (76.4 KiB) TX bytes:98733 (96.4 KiB)