- 论坛徽章:
- 0
|
debian系统,两个网卡,两个ip:
eth0:192.168.11.2
eth1:192.168.11.3
两个ip在同一个网段,同一个网关,网关作了ip,mac绑定,现在网关外只能访问一个ip
请问应该怎么设置才能两个ip都能被访问?
interface文件如下:
auto lo
iface lo inet loopback
auto eth1
iface eth1 inet static
address 192.168.11.3
netmask 255.255.255.0
network 192.168.11.0
broadcast 192.168.11.255
gateway 192.168.11.1
dns-nameservers 192.168.11.1
auto eth0
iface eth0 inet static
address 192.168.11.2
netmask 255.255.255.0
network 192.168.11.0
broadcast 192.168.11.255
gateway 192.168.11.1
dns-nameservers 192.168.11.1
route如下:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
localnet * 255.255.255.0 U 0 0 0 eth1
default 192.168.11.1 0.0.0.0 UG 0 0 0 eth1
localnet * 255.255.255.0 U 0 0 0 eth0
default 192.168.11.1 0.0.0.0 UG 0 0 0 eth0
[ 本帖最后由 k_35 于 2005-10-30 20:20 编辑 ] |
|