Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Mar 1996 12:44:20 -0800 (PST)
From:      Robert Du Gaue <rdugaue@calweb.com>
To:        David Brockus <dbrockus@cyberhall.com>
Cc:        FreeBSD questions <questions@FreeBSD.org>
Subject:   Re: IP aliasing
Message-ID:  <Pine.BSF.3.91.960318124202.10932B-100000@web1.calweb.com>
In-Reply-To: <Pine.BSF.3.91.960318101028.16194F-100000@cyber1.cyberhall.com>

next in thread | previous in thread | raw e-mail | index | archive | help
> network_interfaces="ep0 lo0"
> ifconfig_ep0="inet xxx.xxx.xxx.131 netmask 255.255.255.224"
> ifconfig_lo0="inet localhost"
> ifconfig_ep0="alias xxx.xxx.xxx.132 netmask 255.255.255.224"
> 
> Is this the correct syntax and location to add the alias?
> 
> And where do I need to add a route to the second IP number?

You also need to add a default route of that IP to localhost.

route add -host xxx.xxx.xxx.132 127.0.0.1

should do the trick.

Here's sample on how we do it:

echo -n 'starting ftp spoofs:'

echo -n 'ftp.gigo.com '
/sbin/ifconfig de0 inet 165.90.138.208 alias 255.255.255.0
/sbin/route add 165.90.138.208 127.0.0.1




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.91.960318124202.10932B-100000>