ip addressing in freebsd

"J.D. Bronson®" jeff_bronson at wixb.com
Sun Dec 28 05:27:17 PST 2003


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! 



More information about the freebsd-questions mailing list