Multi NIC and Multi IP problem
I have tow NIC eth0 and eth1,and two ip: a.b.c.d and a.b.c.e,with the
same gateway a.b.c.254
in my /etc/network/interfaces:
auto lo
iface lo inet loopback
iface eth0 inet static
address a.b.c.d
netmask 255.255.255.0
gateway a.b.c.254
auto eth1
iface eth1 inet static
address a.b.c.e
netmask 255.255.255.0
gateway a.b.c.254
After reboot,It does'n work,
#route -n
Destination Gateway Genmask Flags Metric Ref Use Iface
202.114.71.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
202.114.71.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
0.0.0.0 202.114.71.254 0.0.0.0 UG 0 0 0 eth0
0.0.0.0 202.114.71.254 0.0.0.0 UG 0 0 0 eth1
I can't visit the internet and internet can't visit me!Why?How should
I write my /etc/network/interfaces?
Reply to: