Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Feb 2011 02:54:18 +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:  <4D5488BA.4080808@ukr.net>
In-Reply-To: <AANLkTikQ10rJ5up-idYadytaa3xCJpQCXGYQTe5YaFMF@mail.gmail.com>
References:  <4D547675.60506@ukr.net> <AANLkTikQ10rJ5up-idYadytaa3xCJpQCXGYQTe5YaFMF@mail.gmail.com>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
11.02.2011 1:52, patrick wrote:
> See http://www.freebsd.org/doc/en/books/faq/networking.html#ETHERNET-ALIASES
> for more info. Note that aliases should have a netmask of 0xffffffff
> (255.255.255.255).

Much difference in the appointment of netmask /23 or /32 are not seen.

# ifconfig re0
re0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500

options=389b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_UCAST,WOL_MCAST,WOL_MAGIC>
        ether 90:e6:ba:25:1c:b5
        inet XXX.XXX.XXX.12 netmask 0xfffffe00 broadcast XXX.XXX.XXY.255
        inet6 fe80::92e6:baff:fe25:1cb5%re0 prefixlen 64 scopeid 0x1
        inet XXX.XXX.XXX.18 netmask 0xfffffe00 broadcast XXX.XXX.XXY.255
        inet 192.168.1.201 netmask 0xffffff00 broadcast 192.168.1.255
        inet XXX.XXX.XXX.22 netmask 0xffffffff broadcast XXX.XXX.XXX.22
        nd6 options=3<PERFORMNUD,ACCEPT_RTADV>
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active


# netstat -rn | grep XXX.XXX.XXX
default            XXX.XXX.XXX.1      UGS         0    60026    re0
XXX.XXX.XXX.0/23   link#1             U           0     1605    re0
XXX.XXX.XXX.12     link#1             UHS         0        0    lo0
XXX.XXX.XXX.18     link#1             UHS         0        0    lo0
XXX.XXX.XXX.22     link#1             UHS         0        0    lo0 =>
XXX.XXX.XXX.22/32  link#1             U           0        0    re0

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



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?4D5488BA.4080808>