Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 27 Aug 2005 15:05:27 -0700
From:      Glenn Dawson <glenn@antimatter.net>
To:        John Barbieri <tenpin784@metrocast.net>, "albi@scii.nl" <albi@scii.nl>
Cc:        freebsd-questions@freebsd.org, Carstea Catalin <carstea.catalin@gmail.com>
Subject:   Re: interface alias at start-up
Message-ID:  <6.2.3.4.2.20050827150200.038c08a0@cobalt.antimatter.net>
In-Reply-To: <4310E0FC.2050108@metrocast.net>
References:  <dc6701ba05082714265623d18f@mail.gmail.com> <20050827234044.221a929e.albi@scii.nl> <4310E0FC.2050108@metrocast.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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@scii.nl wrote:
>
> >On Sat, 27 Aug 2005 14:26:32 -0700
> >Carstea Catalin <carstea.catalin@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@freebsd.org mailing list
> >http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> >To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
> >
> >
> >
> >
>
>
>_______________________________________________
>freebsd-questions@freebsd.org mailing list
>http://lists.freebsd.org/mailman/listinfo/freebsd-questions
>To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"




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