Solved

How to use tc (Trafic Controller) with IP Aliasing ?

Posted on 2006-11-29
6
908 Views
Last Modified: 2008-01-09
I want to control my traffic on the IP which is aliased to my NIC

When we issue the following command i am getting the out as

#tc qdisk add dev eth0:1 root handle 1
Can not find device  "eth0:1"

I am running this in RHEL 4 (2.6.9-5) and the package which has provided me this command is iproute-2.6.9-3
Please help ASAP.
0
Comment
Question by:raghuni
  • 2
6 Comments
 
LVL 14

Accepted Solution

by:
pablouruguay earned 63 total points
ID: 18036674
i think tc is a Interface traffic control. is not possible to work with ip aliases
0
 
LVL 43

Expert Comment

by:ravenpl
ID: 18038306
qdisc may be applied only on physical iface. Note that eth0 may have many IPs without any aliases like eth0:0...
attach class based qdisc to main device(like htb), then use 'tc filter' to forward IPs to classes.
0
 

Author Comment

by:raghuni
ID: 18043000
Hi, ravenpl

Your answer is not clear to me. Can you please give me a detailed information.

Thanks once again
RaghuNi
0
 
LVL 43

Assisted Solution

by:ravenpl
ravenpl earned 62 total points
ID: 18043421
line 1:
ip addr add 10.10.10.1/24 dev eth0 # will add new IP with no eth0:0 alias. So attaching to aliases is pointless, especially that outgoing traffic flies through eth0 anyway. In other words, You can attach qdisc only to net devices, not it's aliases.
line 2: read some faqs like http://www.linux.com/howtos/Traffic-Control-tcng-HTB-HOWTO/index.shtml
0

Featured Post

Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
Delivering innovative fully-managed cloud services for mission-critical applications requires expertise in multiple areas plus vision and commitment. Meet a few of the people behind the quality services of Concerto.

929 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now