Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 Apr 1998 14:24:48 -0700
From:      Dima Dorfman <dima@apc.net>
To:        jmire@lsumc.edu (Mire, John)
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   RE: IP Aliasing supported?
Message-ID:  <3.0.5.32.19980421142448.00917dc0@mail.apc.net>
In-Reply-To: <F17CAD5363F1D01184F300A0246203121BF2AF@SH-EXCH1.COMPSERV.L SUMC.EDU>

next in thread | previous in thread | raw e-mail | index | archive | help
try

ifconfig_ed0_alias0="inet AAA.BB.CC.2 netmask 0xffffff00"
ifconfig_ed0_alias1="inet AAA.BB.CC.3 netmask 0xffffff00"

Someone will correct me if I'm wrong, but it works for me :-)

At 04:14 PM 4/21/98 -0500, you wrote:
>speaking of IP aliasing on an interface, currently I'm using the
>following rc.local entry to set ip aliases
>on the ep0 interface:
>
>/bin/echo -n 'setting alias for ep0 interface:'
>/sbin/ifconfig ep0 inet AAA.BB.CCC.2 netmask 255.255.255.0 alias
>/sbin/ifconfig ep0 inet AAA.BB.CCC.3 netmask 255.255.255.0 alias
>/bin/echo ' done.'
>
>is there any way to accomplish this with an entry in rc.conf, i.e.,
>
>for primary interface:
>ifconfig_ep0="inet AAA.BB.CCC.1	netmask 255.255.255.0"
>
>then for the aliases:
>ifconfig_ep0="inet AAA.BB.CCC.2	netmask 255.255.255.0 alias"
>ifconfig_ep0="inet AAA.BB.CCC.3	netmask 255.255.255.0 alias"
>
>
>\john
>
>--
>John Mire: jmire@lsumc.edu
>LSUMC Shreveport Computer Services
>pgpkey: <http://pgp.ai.mit.edu:11371/pks/lookup?op=index&search=jmire>;
>voice: 318.675.5443
>fax: 318.675.4641
>
>
>
>> ----------
>> From: 	Doug White[SMTP:dwhite@gdi.uoregon.edu]
>> Reply To: 	Doug White
>> Sent: 	Monday, April 20, 1998 4:01 PM
>> To: 	Francis Vidal
>> Cc: 	FreeBSD Questions
>> Subject: 	Re: IP Aliasing supported?
>> 
>> On Mon, 20 Apr 1998, Francis Vidal wrote:
>> 
>> > is IP aliasing supported in FreeBSD?
>> 
>> Yes.
>> 
>> (This covers both types -- IP address aliasing on interfaces and what
>> Linux calls ``IP Masquerading''.)
>> 
>> Doug White                              | University of Oregon  
>> Internet:  dwhite@resnet.uoregon.edu    | Residence Networking
>> Assistant
>> http://gladstone.uoregon.edu/~dwhite    | Computer Science Major
>> 
>> 
>> 
>> To Unsubscribe: send mail to majordomo@FreeBSD.org
>> with "unsubscribe freebsd-questions" in the body of the message
>> 
>
>To Unsubscribe: send mail to majordomo@FreeBSD.org
>with "unsubscribe freebsd-questions" in the body of the message
>


---
Dima Dorfman (dima@apc.net)

"640k ought to be enough for anybody." - Bill Gates, 1981
Micro$oft $ucks!  FreeBSD Rules!  http://www.freebsd.org/

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3.0.5.32.19980421142448.00917dc0>