您的位置:首页 > 理论基础 > 计算机网络

Ubuntu网络配置相关相关

2010-10-22 15:30 483 查看
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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: