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

Re: ifconfig alias option



Markus Diesmann wrote:
> 
> Hi,
> 
> floowing O'Reilly's Apache book I treid to set up second IP adress for a 
> debian linux system.
> It seems that debian's implementation of ifconfig does not support the
> alias option.
> Is this true?
> Does anybody know how I can make system with one ethernet board listen
> to
> two IP addresses in the same domain?

First, you have to compile your kernel with ip aliasing in it. Reboot
with your shiny new kernel.

Then run something like this:

/sbin/ifconfig eth0:1 yourdomain.com
/sbin/route add -host yourdomain.com dev eth0:1

Tim

PS: I'll be adding this to my ISP page, along with ip_accounting for
the virtual interfaces.

-- 
 (work) sailer@bnl.gov / (home) tps@buoy.com - http://www.buoy.com/~tps
                      "Everything's better when wet."
   Steve Miller - "Jungle Love"
** Disclaimer: My views/comments/beliefs, as strange as they are, are my own.**


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-user-request@lists.debian.org . 
Trouble?  e-mail to templin@bucknell.edu .


Reply to: