Interfaces basic question
I have a router with only one physical ethernet cable. I know it's stupid, but it is the network I have to use for a demo.
I have in mind to construct an HTB class tree for some network limitations for the outgoing traffic.
The question is: can i use the HTB class mechanism on 2 subinterfaces of the same physical network card without any interference?
Please let me know as soon as possible. I need to know if I start working on this or I have to change the hardware.
Thank you,
Marius
_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
Quoted 2 lines · Marius Corici
The question is: can i use the HTB class mechanism on 2 subinterfaces of the same physical network card without any interference?
If you're talking about aliases like eth0:0 and eth0:1, I don't know, because I've never used them. It does work for other virtual interfaces like pppX (when it's really PPPoE going over some ethX interface).
Quoted 2 lines
Please let me know as soon as possible. I need to know if I start working on this or I have to change the hardware.
If it doesn't work, why not just represent this structure in a single tree? Like this:
HTB Qdisc eth0
|
\--- HTB root class (100mbit)
|
\--- HTB eth0:0 class (50mbit | 100mbit)
| |
| \--- The tree you wanted to put on eth0:0 goes here
\--- HTB eth0:1 class (50mbit | 100mbit)
|
\--- The tree you wanted to put on eth0:1 goes hereHTH
Andreas
_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
Hey Marius,
u can only run the qdisc per interface, so if u have "tc qdisc add dev eth0 root handle 1: htb default 30" it will be applied to eth0:0 , eth0:1 aliases as well
U can shape on the one interface, your iptables commands must just be very specific.
hope it helps
J
Quoted 23 lines · Marius Corici
I have a router with only one physical ethernet cable. I know it's stupid, but it is the network I have to use for a demo. I have in mind to construct an HTB class tree for some network limitations for the outgoing traffic.
The question is: can i use the HTB class mechanism on 2 subinterfaces of the same physical network card without any interference?
Please let me know as soon as possible. I need to know if I start working on this or I have to change the hardware.
Thank you,
Marius
------------------------------------------------------------------------
_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
Signature · 12 lines
Regards Jandre "One man's irritation is anothers bread and butter." _____________________________________________________________________ _______________________________________________ LARTC mailing list [email protected] http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc