Skip site navigation (1)Skip section navigation (2)
Date:        Fri, 08 Jun 2001 10:40:48 +0200
From:      Arjan Knepper <arjan@jak.nl>
To:        Christopher Farley <chris@northernbrewer.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: ifconfig aliases
Message-ID:  <3B208F90.8BF49BFC@jak.nl>
References:  <20010607170458.C16752@northernbrewer.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Christopher Farley wrote:

> A machine's primary IP address on the xl0 interface is 10.0.0.2.
> For the purposes of running a webserver, I have an IP alias on the
> same interface: 10.0.0.32
>
> The machine now advertises itself to my network as 10.0.0.32.
>
> Is there a way to force this machine to advertise itself as it's primary
> IP address, 10.0.0.2?
>
> Attached are the relevant lines from rc.conf, and an ifconfig xl0
>
> # cat /etc/rc.conf | grep xl0
> network_interfaces="xl0 lo0"
> ifconfig_xl0="inet 10.0.0.2 netmask 255.255.255.0"
> ifconfig_xl0_alias0="inet 10.0.0.32 netmask 255.255.255.255 broadcast 10.0.0.255"

Should be:
ifconfig_xl0_alias0="inet 10.0.0.2 netmask 255.255.255.0"
ifconfig_xl0_alias1="inet 10.0.0.32 netmask 255.255.255.255 broadcast 10.0.0.255"

Arjan


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?3B208F90.8BF49BFC>