public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] conf.d/net aliases using iproute2
@ 2006-11-06  6:36 3ric Johanson
  0 siblings, 0 replies; only message in thread
From: 3ric Johanson @ 2006-11-06  6:36 UTC (permalink / raw
  To: gentoo-user

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

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-11-06  6:42 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-06  6:36 [gentoo-user] conf.d/net aliases using iproute2 3ric Johanson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox