Multi NIC and Multi IP problem

John L Fjellstad john-ubuntu at fjellstad.org
Sun Oct 29 15:14:24 UTC 2006


"he ccjj" <heccjj1 at gmail.com> writes:

> 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

Only set the gateway for one of the interfaces

-- 
John L. Fjellstad
web: http://www.fjellstad.org/          Quis custodiet ipsos custodes





More information about the ubuntu-users mailing list