Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 28 Dec 2003 07:27:09 -0600
From:      =?iso-8859-1?Q?=22J=2ED=2E_Bronson=AE=22?= <jeff_bronson@wixb.com>
To:        niraj kumar <nirajkumar_ait@yahoo.co.in>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: ip addressing in freebsd
Message-ID:  <6.0.1.1.2.20031228072355.00b44178@cheyenne.wixb.com>
In-Reply-To: <20031228132152.56172.qmail@web8310.mail.in.yahoo.com>
References:  <20031228132152.56172.qmail@web8310.mail.in.yahoo.com>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
At 07:21 AM 12/28/2003, you wrote:
>1. in freebsd we can have two ip address for a single host like 2.0.0.1 & 
>17.0.0.1 by using ifconfig but why can't we assign two ip like 2.0.0.1 & 
>2.0.0.2 (i  know that both r in same network)
>2 so where is the problem in resolving the ip addressing of the host
>3 where i can find more about this (links)
>
>4. where is the code of the ip resolution in 
>the    kernel
>                           niraj
>

You can do this. You setup aliases in rc.conf:

ifconfig_bge0="inet 2.0.0.1  netmask 255.255.255.0"
ifconfig_bge0_alias0="inet 2.0.0.2 netmask 255.255.255.255"

( you need a 32bit mask on any aliases especially ones on the same subnet)

then, if you do this you will see ARP complaints. To quiet that up add this 
to your sysctl.conf:

net.link.ether.inet.log_arp_wrong_iface=0


Hope this helps! 



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?6.0.1.1.2.20031228072355.00b44178>