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

Re: Multi NIC and Multi IP problem

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

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

Hope this helps,

George Borisov

DXSolutions Ltd

Attachment: signature.asc
Description: OpenPGP digital signature

Reply to: