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

Re: Multi NIC and Multi IP problem



Well.Thank you very much.

On 10/25/06, George Borisov <george@dxsolutions.co.uk> wrote:
he ccjj wrote:
>
> thanks,but I have another web site with the other IP a.b.c.e,How to
> solve?Can only use  eth 0's aliase?

Please send future emails to the list (as well), as other people
may benefit from this, or might be able to offer better advice.

An easy way to do what you want is to add both IP addresses onto
the same physical interface. Your /etc/network/interfaces file
should now look like this:

---
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
 address a.b.c.d
 netmask 255.255.255.0
 gateway a.b.c.254

auto eth0:1
iface eth0:1 inet static
 address a.b.c.e
 netmask 255.255.255.0
---


Hope this helps,

--
George Borisov

DXSolutions Ltd




-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFP2IIX8sApcIqwDwRAqpBAJ0YQ/qQMRSTRdcraCnpXBRMZKVX7QCeP6fU
Dpq8DNkjPFrwwRvaJGJnW8c=
=EG4d
-----END PGP SIGNATURE-----


Reply to: