Solved

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

Posted on 2006-11-29
6
926 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Enroll in June's Course of the Month

June's Course of the Month is now available! Every 10 seconds, a consumer gets hit with ransomware. Refresh your knowledge of ransomware best practices by enrolling in this month's complimentary course for Premium Members, Team Accounts, and Qualified Experts.

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…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…

717 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