Assigning multiple IPs in the same network to an interface
Li, Qing
qing.li at bluecoat.com
Sat Feb 18 05:28:28 UTC 2012
Yes, what you are trying to do is allowed and is supported. In fact several bugs
were fixed to support such configuration properly. For example, see these commits:
http://svnweb.freebsd.org/base?view=revision&revision=225947
http://svnweb.freebsd.org/base?view=revision&revision=225223
I vague remember fixing a bug with this exact description but I am having
a bit difficult locating the patch.
Could you please indicate what version you are running ?
--Qing
> -----Original Message-----
> From: owner-freebsd-net at freebsd.org [mailto:owner-freebsd-
> net at freebsd.org] On Behalf Of M. V.
> Sent: Wednesday, February 15, 2012 11:08 PM
> To: freebsd-net at freebsd.org
> Subject: Assigning multiple IPs in the same network to an interface
>
> hi everybody,
>
> i have a problem with setting multiple IPs in the same network in
> FreeBSD:
>
> - suppose I assign two new IP addresses in the same network to eth0
> with ifconfig:
> #ifconfig eth0 add 192.168.10.1/24
> #ifconfig eth0 add 192.168.10.2/24
>
> - everything works fine and the output of "netstat -r" is like what it
> should be:
> #netstat -r
> ....
> 192.168.10.0 eth0
> 192.168.10.1 lo0
> 192.168.10.2 lo0
> ...
>
> - but now if I delete first IP address, connection to 192.168.10.0
> network will be gone. and in output of "netstat -r" the route to
> 192.168.10.0 (via eth0) is gone:
> #ifconfig eth0 delete 192.168.10.1
>
> #netstat -r
> ....
>
> 192.168.10.2 lo0
> .....
>
> - am i missing something here? shouldn't the route to the network
> remain in routing table (because we still have 192.168.10.2 assigned to
> interface)?
>
> Thanks.
>
> _______________________________________________
> freebsd-net at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-net
> To unsubscribe, send any mail to "freebsd-net-unsubscribe at freebsd.org"
More information about the freebsd-net
mailing list