Hi there,

As part of my firewall/shorewall config, I'd like to use aliased interfaces.. this is working fine:

config_eth2=(
        "x.254.18.119/24"
        "x.254.18.120/24"
        "x.254.18.121/24"
        )

 # ip addr show dev eth2
4: eth2: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc cbq qlen 1000
    link/ether 00:x:27:85:11:x brd ff:ff:ff:ff:ff:ff
    inet x.254.18.119/24 brd 216.254.18.255 scope global eth2
    inet x.254.18.120/24 brd 216.254.18.255 scope global secondary eth2
    inet x.254.18.121/24 brd 216.254.18.255 scope global secondary eth2

.. this is great. However, in order for me to setup different rules for these incoming sub-interfaces (aliased).. I need to label them using ip route2 commands, such as:

# ip addr add x.254.18.120/24 brd x.254.18.255 dev eth2 label eth2:1

How can I have the ifup script create these labeled aliases via ip route2?

I guess I could pull down the interfaces and add them back by hand or script.. but that seems really ghetto.

Help?

Cheers,
3ric Johanson

--
[email protected] mailing list

Reply via email to