Skip to contentSkip to conversation

Traffic shaping and IP aliases

LARTC Remus 3 participants 4 messages Jan 23, 2004

lore
Share & tools
lore

Remus

author
#0 lore raw

Hi folks,

I have the traffic shaping (HTB and IMQ) on my eth0 (of course no problems with it).
And now I would like add some extra IPs on it ( ifconfig eth0:0 xxx.xxx.xxx.xxx and ifconfig eth0:1 xxx.xxx.xxx.xxx).

So do I have to set up a new tc rools ( tc qdisc add dev eth0:0 root handle 1: htb default 20 r2q 5 ...) for the eth0:0 and eth0:1 or can still be only tc rules for the eth0?

Thanks in advance

Remus

#1 lore raw
Quoted 10 lines · Remus

Hi folks,

I have the traffic shaping (HTB and IMQ) on my eth0 (of course no problems with it). And now I would like add some extra IPs on it ( ifconfig eth0:0 xxx.xxx.xxx.xxx and ifconfig eth0:1 xxx.xxx.xxx.xxx).

So do I have to set up a new tc rools ( tc qdisc add dev eth0:0 root handle 1: htb default 20 r2q 5 ...) for the eth0:0 and eth0:1 or can still be only tc rules for the eth0?

I've been wondering about the same thing recently. :-)

As far as I have managed to find, the only way to do this is to set up dummy devices pointed at the real interface, and shape those instead. I haven't had a chance to try it yet, though...

Gordan
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

#2 lore raw
In reply to Remus

Can you even shape on aliases? I thought you could only shape on the actual device. Why not shape on the source or destination IP?

Mike.

Quoted 6 lines

-----Original Message-----
From: Gordan Bobic [mailto:[email protected]]
Sent: Friday, January 23, 2004 5:52 AM
To: [email protected]
Subject: Re: [LARTC] Traffic shaping and IP aliases

Quoted 7 lines
Quoted 6 lines · Remus

Hi folks,

I have the traffic shaping (HTB and IMQ) on my eth0 (of course no problems with it). And now I would like add some extra IPs on it ( ifconfig eth0:0 xxx.xxx.xxx.xxx and ifconfig eth0:1

xxx.xxx.xxx.xxx).

Quoted 9 lines
Quoted 4 lines

So do I have to set up a new tc rools ( tc qdisc add dev eth0:0 root handle 1: htb default 20 r2q 5 ...) for the eth0:0 and eth0:1 or can still be only tc rules for the eth0?

I've been wondering about the same thing recently. :-)

As far as I have managed to find, the only way to do this is to set up dummy devices pointed at the real interface, and shape those instead.

I

Quoted 6 lines

haven't had a chance to try it yet, though...

Gordan
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

#3 lore raw
In reply to Remus

Yes:

http://www.mail-archive.com/[email protected]/msg07410.html

search for the text "alias"

bummer.

Mike.

Quoted 6 lines

-----Original Message-----
From: Gordan Bobic [mailto:[email protected]]
Sent: Friday, January 23, 2004 5:52 AM
To: [email protected]
Subject: Re: [LARTC] Traffic shaping and IP aliases

Quoted 7 lines
Quoted 6 lines · Remus

Hi folks,

I have the traffic shaping (HTB and IMQ) on my eth0 (of course no problems with it). And now I would like add some extra IPs on it ( ifconfig eth0:0 xxx.xxx.xxx.xxx and ifconfig eth0:1

xxx.xxx.xxx.xxx).

Quoted 9 lines
Quoted 4 lines

So do I have to set up a new tc rools ( tc qdisc add dev eth0:0 root handle 1: htb default 20 r2q 5 ...) for the eth0:0 and eth0:1 or can still be only tc rules for the eth0?

I've been wondering about the same thing recently. :-)

As far as I have managed to find, the only way to do this is to set up dummy devices pointed at the real interface, and shape those instead.

I

Quoted 6 lines

haven't had a chance to try it yet, though...

Gordan
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/