ip route doesn't not work with virtual inferfaces

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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ál <rvokal@xxxxxxxxxx>

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
LARTC mailing list
LARTC@xxxxxxxxxxxxxxx
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux