Ubuntu网络配置相关相关
时间:2010-10-22 来源:biscuitlife
win:ipconfig
查看路由:route -n
重启网络:sudo /etc/init.d/networking restart
修改网络方式:
修改/etc/network/interfaces文件:
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
#iface eth0 inet dhcp
iface eth0 inet static
address 192.168.1.73
netmask 255.255.255.0
#gateway 192.168.1.5
auto eth0:1
iface eth0:1 inet static
address 192.168.0.100
netmask 255.255.255.0
gateway 192.168.0.1
相关阅读 更多 +