Chinaunix

标题: 单网卡 多ip 网桥设置 [打印本页]

作者: hinetworking    时间: 2013-07-12 13:59
标题: 单网卡 多ip 网桥设置
系统ubuntu  能做到吗?
配置单网卡多ip时:
auto eth0:0
iface eth0:0 inet static
    address 192.168.100.15
    netmask 255.255.128.0
    dns-nameservers 192.168.0.97


auto eth0:1
iface eth0:1 inet static
    address 10.10.100.1
    netmask 255.255.255.0
两个ip都能使用

我一旦配置网桥后:
auto eth0:0
iface eth0:0 inet static
    address 192.168.100.15
    netmask 255.255.128.0
    dns-nameservers 192.168.0.97

auto br1
iface br1 inet static
    bridge_ports eth0:1
    address 10.10.100.1
    netmask 255.255.255.0
服务器就不能ping通同网段的192.168.100.16了,
求教,单网卡如何配置多ip,如何配置网桥




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2