Linux set IP config
ifconfig eth0 192.168.20.20/24 //设置IP route add default gw 192.168.20.253 eth0 //设置网关 ifconfig eth0 hw ether 00:1C:25:A1:60:BB //设置mac vi /etc/resolv.conf nameserver 114.114.114.114 //设置DNS ifconfig eth0 [down/up/restart] //重启接口
ifconfig eth0 192.168.20.20/24 //设置IP route add default gw 192.168.20.253 eth0 //设置网关 ifconfig eth0 hw ether 00:1C:25:A1:60:BB //设置mac vi /etc/resolv.conf nameserver 114.114.114.114 //设置DNS ifconfig eth0 [down/up/restart] //重启接口