1. 因为公司 ip 和 Mac 地址是绑定的, 所以要修改 Mac
- # 关掉网卡
- [[email protected] ~]# ifdown eth0
- # 修改 Mac 地址
- [[email protected] ~]# 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
- # 启动网卡
- [[email protected] ~]# ifup eth0
- # 验证
- [[email protected] ~]# ifconfig eth0
- eth0 Link encap:Ethernet HWaddr 00:02:23:45:43:AE
- .NET 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)
来源: http://www.bubuko.com/infodetail-3090422.html