Teql and NetEm can't work together

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thanks in advance!
 
 
Summary: when I load netem and teql together, teql doesn't work correctly. (If I load teql only, everything is fine)
 
I loaded both netem and teql. Netem is associated with eth0, and teql is associated with both eth0 and eth1. But traffic only goes out of eth1.
Attached are the commands that I used to configure teql and netem (on machine 1), and commands to configure teql only (on machien 2), their routing tables and "tc qdisc ls" results. What's wrong with my configuration? (I tried loading teql only without netem, and teql works as
expected: ping traffic goes to both interfaces. )
 

========= Machine 1 with NetEm ============
Commands to install NetEm and TEQL together:
 
# modprobe sch_teql
# tc qdisc add dev eth0 root handle 1: netem delay 10ms
# tc qdisc add dev eth0 parent 1:1 handle 10: teql0
# tc qdisc add dev eth1 root teql0
# ip link set dev teql0 up
# ip addr add dev eth0 10.0.0.1/30
# ip addr add dev eth1 10.0.0.5/30
# ip addr add dev teql0 10.0.0.9/30
# echo 0 > /proc/sys/net/ipv4/conf/eth0/rp_filter
# echo 0 > /proc/sys/net/ipv4/conf/eth1/rp_filter
 
[root@machine1]# tc qdisc ls
qdisc netem 1: dev eth0 limit 1000 delay 100.0ms
qdisc teql0 10: dev eth0 parent 1:1
qdisc teql0 8001: dev eth1
qdisc pfifo_fast 0: dev teql0 bands 3 priomap  1 2 2 2 1 2 0 0 1 1 1 1 1 1 1 1
 
Destination  Gateway  Genmask         Flags Metric Ref  Use  Iface
10.0.0.8     0.0.0.0  255.255.255.252 U     0      0    0    teql0
10.0.0.0     0.0.0.0  255.255.255.252 U     0      0    0    eth0
10.0.0.4     0.0.0.0  255.255.255.252 U     0      0    0    eth1
 

============== Machine 2 without NetEm ==============
Commands to install TEQL:
 
# modprobe sch_teql
# tc qdisc add dev eth0 root teql0
# tc qdisc add dev eth1 root teql0
# ip link set dev teql0 up
# ip addr add dev eth0 10.0.0.2/30
# ip addr add dev eth1 10.0.0.6/30
# ip addr add dev teql0 10.0.0.10/30
# echo 0 > /proc/sys/net/ipv4/conf/eth0/rp_filter
# echo 0 > /proc/sys/net/ipv4/conf/eth1/rp_filter
 
[root@machine2]# tc qdisc ls
qdisc teql0 8001: dev eth0
qdisc teql0 8002: dev eth1
qdisc pfifo_fast 0: dev teql0 bands 3 priomap  1 2 2 2 1 2 0 0 1 1 1 1 1 1
1 1
 
Destination  Gateway  Genmask         Flags Metric Ref  Use  Iface
10.0.0.8     0.0.0.0  255.255.255.252 U     0      0    0    teql0
10.0.0.0     0.0.0.0  255.255.255.252 U     0      0    0    eth0
10.0.0.4     0.0.0.0  255.255.255.252 U     0      0    0    eth1
 

Best,
-Ji
_______________________________________________
LARTC mailing list
LARTC@xxxxxxxxxxxxxxx
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux