Date: Thu, 7 Jun 2001 17:04:59 -0500 From: Christopher Farley <chris@northernbrewer.com> To: freebsd-questions@freebsd.org Subject: ifconfig aliases Message-ID: <20010607170458.C16752@northernbrewer.com>
next in thread | raw e-mail | index | archive | help
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" # ifconfig xl0 xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 inet 10.0.0.2 netmask 0xffffff00 broadcast 10.0.0.255 inet6 fe80::260:8ff:fea4:e9c3%xl0 prefixlen 64 scopeid 0x1 inet 10.0.0.32 netmask 0xffffffff broadcast 10.0.0.255 ether 00:60:08:a4:e9:c3 media: autoselect (100baseTX) status: active supported media: autoselect 100baseTX <full-duplex> 100baseTX 10baseT/UTP <full-duplex> 10baseT/UTP 100baseTX <hw-loopback> -- Christopher Farley www.northernbrewer.com 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?20010607170458.C16752>