VPS Linux 修改MAC地址

Centos 系统修改mac地址后,丢失网关,需要手动设置网关:

ifconfig eth0 down
ifconfig eth0 hw ether 00:00:00:00:00:00
ifconfig eth0 up
route add default gw 192.168.0.1

原因:

网关上arp缓存未过期,需手动清下网关arp或者等待超时自动刷新

Comments

Leave a Reply