[CentOS] Bug in initscripts? Problem with ifup-routes and alias device

"T. Eichstädt" abc at digithi.de
Fri Jun 22 20:14:27 UTC 2007


Hello List,

I have one network card and added two IP-Adresses to it:

eth1 192.168.1.1/24
eth1:1 10.1.2.3/24

a want to use static routes on device eth1:1 and added one in 
/etc/sysconfig/network-scripts/route-eth1:1:

GATEWAY0=10.1.2.4
ADDRESS0=10.2.2.0
NETMASK0=255.255.255.0

What the network-script should execute in background is:
ip route add 10.2.2.0/24 via 10.1.2.4 dev eth1

but it executes
ip route add 10.2.2.0/24 via 10.1.2.4 dev eth1:1

BUT: "eth1:1" is in the "ip" command not working, "ip" throws an error 
("Cannot find device eth1:1") and doesn't add the route.

Did I miss something or is it a bug in the ifup-routes script ?

-----------------
Output of ifconfig eth1:1 after "ifup eth1:1":

eth1:1 Link encap:Ethernet HWaddr 00:0E:0E:0E:68:8B
inet addr:10.1.2.3 Bcast:10.1.2.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Base address:0xec00 Memory:dffe0000-e0000000
----------------------

Best regards
T. Eichstädt



More information about the CentOS mailing list