auto lo
iface lo inet loopback auto eth0 iface eth0 inet staticaddress 10.8.21.16netmask 255.255.255.0gateway 10.8.21.254
备注:gateway为默认网关
iface eth0 inet static的意思为IP为静态IP,即固定IP
address为IP地址,
netmask网络掩码
本文共 257 字,大约阅读时间需要 1 分钟。
auto lo
iface lo inet loopback auto eth0 iface eth0 inet staticaddress 10.8.21.16netmask 255.255.255.0gateway 10.8.21.254
备注:gateway为默认网关
iface eth0 inet static的意思为IP为静态IP,即固定IP
address为IP地址,
netmask网络掩码
转载于:https://my.oschina.net/infowangxin/blog/671560