[2460] in linux-net channel archive

home help back first fref pref prev next nref lref last post

Re: IP Aliasing

daemon@ATHENA.MIT.EDU (Tom Lees)
Thu Apr 11 23:58:31 1996

To: linux-net@vger.rutgers.edu
From: Tom Lees <tom@lpsg.demon.co.uk>
Date: 	11 Apr 1996 10:45:17 +0100

Jeff Sinason (jsinason@itdcomm.com) wrote:
: Is there a production version of the kernel that has the IP aliasing 
: code in it?  I need to be able to do some virtual hosting and 
: understand that this is the only way it can be done.

I think there is a patch for the 1.2.13 kernel for IP aliasing, but before
getting that, consider if you could use the dummy interfaces for the same
job. You should compile the kernel with dummy interfaces as modules, reboot
using the new kernel, then:-

insmod -o dummy0 /lib/modules/1.2.x/net/dummy.o
ifconfig dummy0 <ip address> up
arp -s <local ethernet address> <ip address> netmask <netmask> pub
route add <ip address> dev dummy0

Of course, you can change the 'dummy0' above for various other addresses, or
add other options to the ifconfig/arp, but that's the general gist of how you
do it.

--
Tom Lees <tom@lpsg.demon.co.uk>

Langsam's Laws:
	(1) Everything depends.
	(2) Nothing is always.
	(3) Everything is sometimes.


home help back first fref pref prev next nref lref last post