首页
博客地址
首页
博客地址
  • 设置静态IP

### /etc/rc.local
ifconfig eth0 192.168.1.200
route add default gw 192.168.1.1 eth0
sleep 3


### /etc/network/interfaces
auto eth0
iface eth0 inet static
address 192.168.1.200
netmask 255.255.255.0
Last Updated:
Contributors: 夏立军