Solved

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

Posted on 2006-11-29
6
903 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

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…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

747 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

12 Experts available now in Live!

Get 1:1 Help Now