Bug 174935 - iproute does not work on aliase
Summary: iproute does not work on aliase
Alias: None
Product: Fedora
Classification: Fedora
Component: iproute
Version: 4
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Radek Vokal
QA Contact: Brock Organ
Depends On:
TreeView+ depends on / blocked
Reported: 2005-12-04 15:15 UTC by Need Real Name
Modified: 2007-11-30 22:11 UTC (History)
0 users

Clone Of:
Last Closed: 2005-12-05 07:49:18 UTC

Attachments (Terms of Use)

Description Need Real Name 2005-12-04 15:15:02 UTC
I have two IP for eth0 which correspond to eth0 and eth0:1
I want to create a route 
to via from eth0:1 
system-config-network allows this to do just fine.
But when ifup-routes is exacuted I get this error from /sbin/ip for eth0:1

 /sbin/ip route add via   dev eth0:1
Cannot find device "eth0:1"

Putting exectly the samne settings to eth0 (using same tool system-network-config)
everything is OK 
 /sbin/ip route add via   dev eth0

There should be no difference between eth0 and eth0:1
as both are an interface.
This look like /sbin/ip limitation.

Comment 1 Radek Vokal 2005-12-05 07:49:18 UTC
Tested with rawhide iproute-2.6.14-8

root@garfield ~# ifup eth0:1
root@garfield ~# echo $?

root@garfield ~# ip route add via   dev eth0:1
root@garfield ~# echo $?

root@garfield ~# ip route list dev eth0:1
.. via

Seems to me it's already fixed.

Comment 2 Need Real Name 2005-12-05 08:44:56 UTC
Yes. Upgrade to iproute-2.6.14-9 fixed the problem

Comment 3 Need Real Name 2005-12-05 08:56:09 UTC
The only thing which seems does not work right - when I connect 
to network in connects still using the IP of eth0 ,
not the IP of eth0:1 as one would expect from 
ip route add via   dev eth0:1
This looks like a bug to me.

Comment 4 Radek Vokal 2005-12-05 10:00:22 UTC
hmm, I'm right now not sure what's the correct behavior here
also ip route list dev eth0 and dev eth0:1 show same output which is really
misleading to me ..

Anyway, you can specify the source adress with

ip route add via src {The_Source_IP_of_interface}

Note You need to log in before you can comment on or make changes to this bug.