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

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



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
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux