From: "Andreas Unterkircher" Date: Mon, 05 Dec 2005 09:22:36 +0000 Subject: Re: =?iso-8859-1?Q?=5BLARTC=5D?= ip route =?iso-8859-1?Q?doesn=27t?= Message-Id: <20051205.mYc.05166200@egroupware.netshadow.at> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: lartc@vger.kernel.org You can specify the source address ip route add 192.168.66.0/24 via 192.168.1.2 src {The_Source_IP_of_interfac= e} Radek Vok=E1l (rvokal@redhat.com) schrieb: > > I have two IP for eth0 which correspond to eth0 and eth0:1 > I want to create a route > to 192.168.66.0/24 via 192.168.0.50 from eth0:1 > > so I add the route with > > ip route add 192.168.66.0/24 via 192.168.1.2 dev eth0:1 > > but when I connect to 192.168.66.0/24 network in connects still using > the IP of eth0, not the IP of eth0:1 as one would expect. > > What's strange to me is that ip route list dev eth0:1 shows same output > as ip route list dev eth0 > > is this expected behavior or is there a bug? > > Radek > > > -- > Radek Vok=E1l > _______________________________________________ LARTC mailing list LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc