[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

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
gateway a.b.c.254

auto eth1
iface eth1 inet static
address a.b.c.e
gateway a.b.c.254

After reboot,It does'n work,

#route -n
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface   U     0      0        0 eth0   U     0      0        0 eth1         UG    0      0        0 eth0         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: