-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Greetings Deepak,

 : Can we create TC rules for an interface alias?

Sadly, no, it is not possible.

 : /sbin/ifconfig eth0 add ip.ad.dr.ss netmask m.a.s.k up
 : 
 : tc qdisc show dev eth0:0

The traffic control structures apply (more or less) to link layer 
devices, since you are changing the queueing mechanism(s) for 
packets/frames just before they get dequeued to the hardware, so 
the only devices available to you (for traffic control) are the 
devices which show up when you type:

  ip link show

It may be instructive for you to also try typing:

  ip address show

This will provide you a more accurate presentation of the separation 
of link layer (L2) devices and network layer (L3) interfaces and 
addresses.  You will then see what a sham ifconfig's aliases are.

 : Last command throws error "can't find device". Is there any way 
 : to define tc rules on alias or is it simply a limitation?

So, basically, if you wish to apply some sort of traffic control to 
a secondary (aliased) address, then you'll need to include the IP in 
your "tc filter" rules.

Best of luck!

- -Martin

- -- 
Martin A. Brown
http://linux-ip.net/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: pgf-0.72 (http://linux-ip.net/sw/pine-gpg-filter/)

iD8DBQFHA7jjHEoZD1iZ+YcRAotYAKCr0VObLEXOx947Gzm0UDNRl4QH3wCglaXu
ejgXnsPAPIfbichEHm9TjFQ=
=cKox
-----END PGP SIGNATURE-----
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

Reply via email to