From owner-freebsd-net@FreeBSD.ORG Thu Feb 16 07:21:41 2012 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CE6AD1065670 for ; Thu, 16 Feb 2012 07:21:41 +0000 (UTC) (envelope-from bored_to_death85@yahoo.com) Received: from nm15-vm0.bullet.mail.bf1.yahoo.com (nm15-vm0.bullet.mail.bf1.yahoo.com [98.139.212.254]) by mx1.freebsd.org (Postfix) with SMTP id 76CBA8FC1C for ; Thu, 16 Feb 2012 07:21:41 +0000 (UTC) Received: from [98.139.212.153] by nm15.bullet.mail.bf1.yahoo.com with NNFMP; 16 Feb 2012 07:08:26 -0000 Received: from [98.139.212.240] by tm10.bullet.mail.bf1.yahoo.com with NNFMP; 16 Feb 2012 07:08:26 -0000 Received: from [127.0.0.1] by omp1049.mail.bf1.yahoo.com with NNFMP; 16 Feb 2012 07:08:26 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 565519.535.bm@omp1049.mail.bf1.yahoo.com Received: (qmail 8886 invoked by uid 60001); 16 Feb 2012 07:08:26 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1329376106; bh=Kz/DuasWi/yPxwZviIXoJWxBM+wylJUAbaXOfMJ7NHw=; h=X-YMail-OSG:Received:X-Mailer:Message-ID:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type; b=OR90u/4Cf9yLOJDRY3sUTVrzMMnagUF2MzBBdSBjIV5AGvd36SjSyrh/QqZjkDTNl3Sz9EwQ4hBas3d5qifYDY/GNqde6u1wrvLYTTbyfB7IszFGW9sGMKwVucNyi1A7AzGwjVoS8i3GxXQfLrxSQP45zeh/yTaeCRQ7W2CmP+M= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:Message-ID:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type; b=CFhLZjAGOT73QUtifVXfxuOdxiOLSk1A+p/ss94TtWeQ65hUO9ZDdsHETMAgNROn8TfrFG8v2/wdyzmYh0pqM+4hquJpoRDTA3dATPOquPN2AcCE63tuYTvKajR4jme6ZIHQ1YRIMgA7Z+6J1GvfKqgJhm/5tRY42v6NiGGaHvw=; X-YMail-OSG: XdYR11oVM1n2G.BbbOC0TNe4QnELaSdUpVP9zyuGionjWV1 VA60J8cQo.McI4nX8GRFjZQke9iUCsUfBL8tYNCXmunnFWNL9Qe7vfcNu4Ma iioqA8coVpyZmXvBHyLgygI6q7ZSQLTssNtrC3RXnmt8tThQvPhfsQX8LXhY DBTmcMD0IrdLWW363N.SiZf2wTwnhy9CnHMoicbE6ivhn0AQWJnJYy3dxbZb VucjuEugsrnnODrAJRUEPkVr8_B4SPbAxo0IFr9dk_7ZSNp3O6ZzgR3BgZ.q 5RSqMjZ.iIaMTdoaXEpws4HfSlcy8RiGcd5RLmkXTlMLZQXNITPYa66XHiU9 bwhPDXj2Qi_hDIdAN9uk.VK8PXJ2jTgoNWKGfbXGTpVk9SZCXF8MkjEhCpAG dd0XTBK7koh4weSI.G_RrjvFhBhXfw..W9YRgwRuE_.Nb_r2hDFrEZdKtFtS qJkd1uO5mlbpCJ4O4qUEILu5dg8N1kusiaUuWAcPAyQhQXTHyoVtF0BM1Ezu jZjtPj7B7Mh0NC7jf5T8N9vJ0D_VLh4im3VfpPXIoDhOp02ewUPzxSneE Received: from [89.165.120.140] by web162203.mail.bf1.yahoo.com via HTTP; Wed, 15 Feb 2012 23:08:26 PST X-Mailer: YahooMailWebService/0.8.116.338427 Message-ID: <1329376106.7683.YahooMailNeo@web162203.mail.bf1.yahoo.com> Date: Wed, 15 Feb 2012 23:08:26 -0800 (PST) From: "M. V." To: "freebsd-net@freebsd.org" MIME-Version: 1.0 X-Mailman-Approved-At: Thu, 16 Feb 2012 12:21:54 +0000 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Assigning multiple IPs in the same network to an interface X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: "M. V." List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Feb 2012 07:21:41 -0000 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