Date: Wed, 26 Jul 2000 17:02:54 +0100 From: Ben Smithurst <ben@FreeBSD.org> To: Q Tuyen <q@crackbaby.org> Cc: freebsd-questions@freebsd.org Subject: Re: Adding more ips to the box Message-ID: <20000726170254.J28657@strontium.scientia.demon.co.uk> In-Reply-To: <000b01bff708$34a08f80$cb3b35d1@bconnected.net> References: <000b01bff708$34a08f80$cb3b35d1@bconnected.net>
next in thread | previous in thread | raw e-mail | index | archive | help
Q Tuyen wrote: > The box im working is running named. with only 1 ip right now. I would like > to add more ips to the box so i can run some vhost. And it would make it > easier to add more host to it. > > i know you can do alias but not sure if that is the correct way of doing it > > any suggestion would b really apprec........ /etc/rc.conf: ifconfig_fxp0_alias0="inet 192.168.1.2 netmask 0xffffffff" ifconfig_fxp0_alias1="inet 192.168.1.3 netmask 0xffffffff" ifconfig_fxp0_alias2="inet 192.168.1.4 netmask 0xffffffff" ifconfig_fxp0_alias3="inet 192.168.1.5 netmask 0xffffffff" Change the interface name and IP address as necessary, the important bit if that you use a netmask of 0xffffffff (or 255.255.255.255) for the aliases. -- Ben Smithurst / ben@FreeBSD.org / PGP: 0x99392F7D FreeBSD Documentation Project / 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?20000726170254.J28657>