Date: Wed, 11 Aug 1999 19:48:58 +0100 From: Ben Smithurst <ben@scientia.demon.co.uk> To: Marc Tardif <intmktg@CAM.ORG> Cc: freebsd-questions@freebsd.org Subject: Re: virtual ip's in rc.conf Message-ID: <19990811194858.B6274@lithium.scientia.demon.co.uk> In-Reply-To: <Pine.SOL.4.10.9908111411100.11496-100000@Stratus.CAM.ORG> References: <Pine.SOL.4.10.9908111411100.11496-100000@Stratus.CAM.ORG>
next in thread | previous in thread | raw e-mail | index | archive | help
Marc Tardif wrote:
> Is there a way to set virtual ip's directly in the rc.conf file instead of
> having to type "ifconfig ed0 alias 192.168.0.2 netmask 0xffffffff". This
> is what I have:
> ifconfig_ed0="inet 192.168.0.1 netmask 255.255.255.0"
> ifconfig_ed0="alias 192.168.0.2 netmask 255.255.255.0"
> I looked all over the handbook and all over the mailing list but couldn't
> find anything. If anyone could help, I'd appreciate.
Have you looked in /etc/defaults/rc.conf? If you had, you would see:
#ifconfig_lo0_alias0="inet 127.0.0.254 netmask 0xffffffff" # Sample alias entry.
I'm sure you can work it out from there. Alternatively, you could have
RTFM (rc.conf(5)) which explains ifconfig_${interface}_alias${n}.
--
Ben Smithurst | PGP: 0x99392F7D
ben@scientia.demon.co.uk | key available from keyservers and
| ben+pgp@scientia.demon.co.uk
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?19990811194858.B6274>
