您的位置:首页 > 其它

Ubuntu 10.10 单网卡多IP设置

2010-12-24 15:53 441 查看
# The loopback network interface

auto lo

iface lo inet loopback

# The primary network interface

auto eth0 eth0:1 eth0:2

iface eth0 inet static

address 192.168.101.166

netmask 255.255.255.0

network 192.168.101.0

broadcast 192.168.1.255

gateway 192.168.101.1

iface eth0:1 inet static

address 192.168.0.166

netmask 255.255.255.0

network 192.168.0.0

broadcast 192.168.0.255

gateway 192.168.0.254

iface eth0:2 inet static

address 192.168.1.7

netmask 255.255.255.0

network 192.168.1.0

broadcast 192.168.1.255

gateway 192.168.1.1
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: