Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 8 May 2002 12:08:14 -0400
From:      Chad Leigh -- Shire.Net LLC <chad@shire.net>
To:        freebsd-questions@freebsd.org
Cc:        chad@shire.net
Subject:   setting up IP aliases in rc.conf
Message-ID:  <CD72AEDD-629D-11D6-84FE-000502E29155@shire.net>

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

I read the handbook and am trying to set up some ip aliases (I used to 
do it by hand in rc.local type file).  I am doing this ion 4.5R-p4

According to the handbook I should be able to do:

ifconfig_dc0="inet 192.168.99.136  netmask 255.255.255.0"
ifconfig_dc0_alias1="inet 192.168.99.137  netmask 255.255.255.255"
ifconfig_dc0_alias2="inet 204.228.145.250 netmask 255.255.255.240"


Doing this only gets me the first address... Here is a full ifconfig 
after booting:

frog1# ifconfig -a
dc0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
         inet 192.168.99.136 netmask 0xffffff00 broadcast 192.168.99.255
         inet6 fe80::2c0:f0ff:fe4a:75c%dc0 prefixlen 64 scopeid 0x1
         ether 00:c0:f0:4a:07:5c
         media: Ethernet autoselect (10baseT/UTP)
         status: active

What am I doing wrong?  How is the correct way to set these up?  This 
looks OK to me according to the handbook at 
<http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/configtuning-virtual-hosts.
html>

Thanks
Chad


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?CD72AEDD-629D-11D6-84FE-000502E29155>