Ubuntu网络配置相关相关

更多个人技术分享,请访问http://www.derekchou.com

 

ubuntu:ifconfig

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

posted @ 2010-10-22 15:30  biscuitlife  阅读(206)  评论(0编辑  收藏  举报