interface alias at start-up

John Barbieri tenpin784 at metrocast.net
Sat Aug 27 22:17:25 GMT 2005


ifconfig_xl0="inet xxx.xxx.xxx.xxx  netmask 255.255.255.128"
ifconfig_xl0_alias="inet 172.16.2.138 netmask 255.255.255.0"



yea they are in different networks. i will try the 255.255.255.255 thing
when i get back to work. that seems odd that you have to put a host
netmask on there :/

Glenn Dawson wrote:

> At 02:54 PM 8/27/2005, John Barbieri wrote:
>
>> FWIW:
>>
>> That doesnt work for me :(
>
>
> One other thing.  If the aliases you're trying to create are on a
> different network, the subnet mask of the first one has to be the
> "real" mask, and any further aliases in that same network have to use
> a mask of 255.255.255.255.
>
> Example:
>
> ifconfig_fxp0="inet 10.0.0.1 netmask 255.255.255.0"
> ifconfig_fxp0_alias0="inet 10.0.0.2 netmask 255.255.255.255"
> ifconfig_fxp0_alias1="inet 10.1.1.1 netmask 255.255.255.0"
> ifconfig_fxp0_alias2="inet 10.1.1.2 netmask 255.255.255.255"
>
> -Glenn
>
>
>> any other way?
>>
>> albi at scii.nl wrote:
>>
>> >On Sat, 27 Aug 2005 14:26:32 -0700
>> >Carstea Catalin <carstea.catalin at gmail.com> wrote:
>> >
>> >
>> >
>> >>how tu setting-up interface alias at start-up
>> >>
>> >>
>> >
>> ># example /etc/rc.conf part
>> >
>> >defaultrouter="192.168.2.1"
>> >
>> >ifconfig_rl0="inet 192.168.2.222  netmask 255.255.255.0"
>> >
>> >ifconfig_rl0_alias0="inet 192.168.2.2 netmask 0xffffffff"
>> >ifconfig_rl0_alias1="inet 192.168.2.3 netmask 0xffffffff"
>> >ifconfig_rl0_alias2="inet 192.168.2.4 netmask 0xffffffff"
>> >ifconfig_rl0_alias3="inet 192.168.2.5 netmask 0xffffffff"
>> >ifconfig_rl0_alias4="inet 192.168.2.6 netmask 0xffffffff"
>> >
>> >_______________________________________________
>> >freebsd-questions at freebsd.org mailing list
>> >http://lists.freebsd.org/mailman/listinfo/freebsd-questions
>> >To unsubscribe, send any mail to
>> "freebsd-questions-unsubscribe at freebsd.org"
>> >
>> >
>> >
>> >
>>
>>
>> _______________________________________________
>> freebsd-questions at freebsd.org mailing list
>> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
>> To unsubscribe, send any mail to
>> "freebsd-questions-unsubscribe at freebsd.org"
>
>
>
>




More information about the freebsd-questions mailing list