From mboxrd@z Thu Jan 1 00:00:00 1970 From: Javier Ramirez Date: Wed, 21 Jan 2004 13:28:12 +0000 Subject: Re: [LARTC] Slightly offtopic: IRC channel archives Message-Id: <1074691691.2072.9.camel@Morocha.bit2NET.com> MIME-Version: 1 Content-Type: multipart/mixed; boundary="=-zmS6jGivvxQCBObvmJI2" List-Id: References: <400E3611.4080000@otaku42.de> In-Reply-To: <400E3611.4080000@otaku42.de> To: lartc@vger.kernel.org --=-zmS6jGivvxQCBObvmJI2 Content-Type: text/plain Content-Transfer-Encoding: 7bit Hi, I have a litle problem with this code I have two virtual ips (50 y 51) and this ips are the gateway ip address add 192.168.0.50 dev eth1 ip address add 192.168.0.51 dev eth1 tc qdisc add dev eth1 root handle 1: cbq bandwidth 512kbit cell 8 avpkt 1000 \ mpu 64 tc class add dev eth1 parent 1:0 classid 1:1 cbq bandwidth 512kbit rate \ 100kBit avpkt 1000 prio 5 bounded isolated allot 1514 weight 1 maxburst 21 tc class add dev eth1 parent 1:0 classid 1:2 cbq bandwidth 512kbit rate \ 100kbit avpkt 1000 prio 5 bounded isolated allot 1514 weight 1 maxburst 21 tc filter add dev eth1 parent 1:0 protocol ip prio 5 handle 1: u32 divisor 1 tc filter add dev eth1 parent 1:0 prio 5 u32 match ip src 192.168.0.50 flowid 1:1 tc filter add dev eth1 parent 1:0 prio 5 u32 match ip src 192.168.0.51 flowid 1:2 and this scrip say: RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument Anybody can help me? Regards Javier --=-zmS6jGivvxQCBObvmJI2 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 7bit Hi, I have a litle problem with this code

I have two virtual ips (50 y 51) and this ips are the gateway

ip address add 192.168.0.50 dev eth1
ip address add 192.168.0.51 dev eth1
tc qdisc add dev eth1 root handle 1: cbq bandwidth 512kbit cell 8 avpkt 1000 \
mpu 64
tc class add dev eth1 parent 1:0 classid 1:1 cbq bandwidth 512kbit rate \
100kBit avpkt 1000 prio 5 bounded isolated allot 1514 weight 1 maxburst 21
tc class add dev eth1 parent 1:0 classid 1:2 cbq bandwidth 512kbit rate \
100kbit avpkt 1000 prio 5 bounded isolated allot 1514 weight 1 maxburst 21
tc filter add dev eth1 parent 1:0 protocol ip prio 5 handle 1: u32 divisor 1
tc filter add dev eth1 parent 1:0 prio 5 u32 match ip src 192.168.0.50 flowid 1:1
tc filter add dev eth1 parent 1:0 prio 5 u32 match ip src 192.168.0.51 flowid 1:2

and this scrip say:


RTNETLINK answers: Invalid argument
RTNETLINK answers: Invalid argument
RTNETLINK answers: Invalid argument

Anybody can help me?
Regards
Javier
--=-zmS6jGivvxQCBObvmJI2-- _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/