Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Feb 2011 16:31:59 +0200
From:      "Vladislav V. Prodan" <universite@ukr.net>
To:        freebsd-questions@freebsd.org
Subject:   Re: how to add a few hundred ip on one interface?
Message-ID:  <4D55485F.5050301@ukr.net>
In-Reply-To: <4D5538DF.2050309@gmail.com>
References:  <4D547675.60506@ukr.net>	<AANLkTikQ10rJ5up-idYadytaa3xCJpQCXGYQTe5YaFMF@mail.gmail.com>	<4D54D22F.2060607@infracaninophile.co.uk>	<4D5531D3.8040906@ukr.net> <4D5538DF.2050309@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
11.02.2011 15:25, Guillermo Fernando Cotone wrote:
> On 02/11/2011 09:55 AM, Vladislav V. Prodan wrote:
>> And this construction work?
>>
>>       ipv4_addrs_ed0="192.0.2.129/27 192.0.2.1-2/28 192.0.2.4-5/28"
>>   
> It would work only if all the IPs were on the same subnet. If you want
> to use different subnets you need to implement vlans on that interface
> first.
> 

man rc.conf
...
	One can configure more than one IPv4 address with the
	ipv4_addrs_<interface> variable.  One or more IP addresses
	must be provided in Classless Inter-Domain Routing (CIDR)
	address notation, whose last byte can be a range like
	192.0.2.5-23/24.  In this case the address 192.0.2.5 will be
	configured with the netmask /24 and the addresses 192.0.2.6
	to 192.0.2.23 with the non-conflicting netmask /32 as
	explained in the ifconfig(8) alias section.  With the inter-
	face in question being ed0, an example could look like:

        ipv4_addrs_ed0="192.0.2.129/27 192.0.2.1-5/28"
...

-- 
Vladislav V. Prodan
VVP24-UANIC
+38[067]4584408
+38[099]4060508
vlad11@jabber.ru



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