Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Mar 1996 16:46:07 -0500 (EST)
From:      Stephen Hovey <shovey@buffnet.net>
To:        David Brockus <dbrockus@cyberhall.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: IP aliasing
Message-ID:  <Pine.BSD.3.91.960318164439.17673F-100000@buffnet7.buffnet.net>
In-Reply-To: <Pine.BSF.3.91.960318101028.16194F-100000@cyber1.cyberhall.com>

next in thread | previous in thread | raw e-mail | index | archive | help


On Mon, 18 Mar 1996, David Brockus wrote:

> I am trying to assign a second to IP to a network adaptor (for use with a 
> virual host in Apache).
> 
> I can not ping the the second IP number.
> 
> In the sysconfig file I have the following
> 
> network_interfaces="ep0 lo0"
> ifconfig_ep0="inet xxx.xxx.xxx.131 netmask 255.255.255.224"
> ifconfig_lo0="inet localhost"
> ifconfig_ep0="alias xxx.xxx.xxx.132 netmask 255.255.255.224"
> 
> Is this the correct syntax and location to add the alias?

Dont do it in sysconfig.  Make a script file that you execute at the end 
of /etc/rc.local or something with coommands like:

/sbin/ifconfig ep0 xx.xx.xx.132 255.255.255.255 alias

Use the 255's for the netmask and not your normal netmask or it may choke 
as well.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSD.3.91.960318164439.17673F-100000>