Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 25 Aug 2002 18:53:33 +0700
From:      budsz <budsz@kumprang.or.id>
To:        Matthew Seaman <m.seaman@infracaninophile.co.uk>
Cc:        FBSDQ <freebsd-questions@FreeBSD.ORG>
Subject:   Re: How to configure multiple IPs on FreeBSD
Message-ID:  <20020825115333.GB12644@kumprang.kumprang.or.id>
In-Reply-To: <20020825113425.GB3075@happy-idiot-talk.infracaninophi>
References:  <3D67FEA3.81CA0D0B@audiblefaith.com> <20020825113425.GB3075@happy-idiot-talk.infracaninophi>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Aug 25, 2002 at 12:34:25PM +0100, Matthew Seaman wrote:
>To add an alias IP numbers to an already runnning system --- assuming
>the alias IPs belong to the same network as the principal IP number of
>the interface --- run these commands, substituting the correct IP
>numbers for your setup:
>
>    ifconfig fxp0 inet 12.34.56.78 netmask 0xffffffff alias
>    ifconfig fxp0 inet 12.34.56.79 netmask 0xffffffff alias
>
>To make the same configuration persist through reboots, modify
>/etc/rc.conf to add lines:
>
>    ifconfig_fxp0_alias0="inet 12.34.56.78 netmask 0xffffffff"
>    ifconfig_fxp0_alias1="inet 12.34.56.79 netmask 0xffffffff"

0xffffffff = 255.255.255.255 in decimal right..?, I tried with netmask
255.255.255.240 (I get 16 IP address from ISP). the question: it's
possible make aliasing IP without netmask 255.255.255.255. for example:

ifconfig_ed0_alias0="inet 202.143.103.230 netmask 255.255.255.240"
ifconfig_ed0_alias1="inet 202.143.103.231 netmask 255.255.255.240"
ifconfig_ed0_alias2="inet 202.143.103.232 netmask 255.255.255.240"

Or maybe each other different netmask?

-- 
budsz

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?20020825115333.GB12644>