Results 1 to 1 of 1
Thread: Traffic Shaping problem
Enjoy an ad free experience by logging in. Not a member yet? Register.
- Join Date
- Jun 2005
Traffic Shaping problem
I have a desktop pc running Debian 3.0 (Woody, I think). This pc has 2 NIC's. One NIC is connected to a network, the other is connected to a notebook. I want this linux box to forward all traffic from the network (eth0) to the notebook (eth1) and vica versa and it should be able to participate on the network itself too.
So far I have achieved this by creating a bridge between eth0 and eth1, this was not hard at all.
Now I want to do the following:
The linux box should always prioritize the traffic from the notebook (eth1) to the network (eth0). So if the notebook and the linux box want to send/recieve packets to/from the network, the linux box should always let the notebook's packets go first.
This should be possible with traffic shaping and ebtables, right?
I use the following script/command to set up traffic shaping:
ebtables -A FORWARD -j mark --set-mark 1 tc qdisc add dev eth0 root handle 1: prio tc qdisc add dev eth1 root handle 2: prio tc filter add dev eth0 parent 1: protocol ip handle 1 fw flowid 1:1 tc filter add dev eth1 parent 2: protocol ip handle 1 fw flowid 2:1
What am I doing wrong?
Thx a lot in advance!