Date: Wed, 15 Feb 2012 23:08:26 -0800 (PST) From: "M. V." <bored_to_death85@yahoo.com> To: "freebsd-net@freebsd.org" <freebsd-net@freebsd.org> Subject: Assigning multiple IPs in the same network to an interface Message-ID: <1329376106.7683.YahooMailNeo@web162203.mail.bf1.yahoo.com>
next in thread | raw e-mail | index | archive | help
hi everybody,=0A=0Ai have a problem with setting multiple IPs in the same n= etwork in FreeBSD:=0A=0A- suppose I assign two new IP addresses in the same= network to eth0 with ifconfig:=0A#ifconfig eth0 add 192.168.10.1/24=0A#ifc= onfig eth0 add 192.168.10.2/24=0A=0A- everything works fine and the output = of "netstat -r" is like what it should be:=0A#netstat -r=0A....=0A192.168.1= 0.0=A0=A0 eth0=0A192.168.10.1=A0=A0=A0 lo0=0A192.168.10.2=A0=A0=A0 lo0=0A..= .=0A=0A- but now if I delete first IP address, connection to 192.168.10.0 n= etwork will be gone. and in output of "netstat -r" the route to 192.168.10.= 0 (via eth0) is gone:=0A#ifconfig eth0 delete 192.168.10.1=0A=0A#netstat -r= =0A....=0A=0A192.168.10.2=A0=A0=A0 lo0=0A.....=0A=0A- am i missing somethin= g here? shouldn't the route to the network remain in routing table (because= we still have 192.168.10.2 assigned to interface)?=0A=0AThanks.=0A
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1329376106.7683.YahooMailNeo>