Skip to contentSkip to conversation

New User

LARTC Giuliano Cardozo Medalha 6 participants 11 messages Mar 23, 2002 – Nov 2, 2003

lore
Share & tools
lore
#0 lore raw

Hello,

I am a new user of iproute tool and would like some help to start some experiments !!!

My computer run linux Debian with 2.2.19 kernel and iproute package

I have 2 routers with package queue an shapping by diffserv and rsvp

For now I woul like to install iproute2 + tc in my machine

I have some daults about that:

Can I use the original Debian Package for queue implamantation ?

With iproute 2 +tc I have to recompile the kernel ? Whats the best version to do that ?

What kind of experiments I can do ?

Could I use the linux like a router with QoS implementation ?

I am a kkind of new user of these tools, so I have a lot of questions

Thank you a lot

Giuliano

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

#1 lore raw
Quoted 1 line · Giuliano Cardozo Medalha

Hello,

Hi

Quoted 2 lines

I am a new user of iproute tool and would like some help to start some experiments !!!

Welcome to the club.

Quoted 1 line

My computer run linux Debian with 2.2.19 kernel and iproute package

I'm also running Debian. But I use kernel 2.4.17.

Quoted 1 line

I have 2 routers with package queue an shapping by diffserv and rsvp

Congratulations.

Quoted 1 line

For now I woul like to install iproute2 + tc in my machine

apt-get install iproute2

Quoted 2 lines

I have some daults about that:
Can I use the original Debian Package for queue implamantation ?

Yes

Quoted 2 lines

With iproute 2 +tc I have to recompile the kernel ? Whats the best version to do that ?

There is an excellent kernel-howto.

Quoted 1 line

What kind of experiments I can do ?

A lot.

Quoted 1 line

Could I use the linux like a router with QoS implementation ?

Yes

Quoted 2 lines

I am a kkind of new user of these tools, so I have a lot of questions Thank you a lot

np

Stef

Signature · 7 lines
[email protected]
 "Using Linux as bandwidth manager"
     http://www.docum.org/
     #lartc @ irc.openprojects.net
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
#3 lore raw

Re: [LARTC] new user

In reply to Giuliano Cardozo Medalha

Yes

its possible

Please look following URL's

1. www.lartc.org
2. www.docum.org
3. www.apconnections.net

hare
----- Original Message -----
From: "Ismet Sonmez" <[email protected]>
To: <[email protected]>
Sent: Tuesday, May 13, 2003 11:46 AM
Subject: [LARTC] new user

Quoted 13 lines

Hi,
i have 200 cleint a building network is cat5 cable and switches i want limiting user
can i do with LARTC?

Ismet Sonmez
Bsy Bilgi Sistemleri
Tel : 0090 224 255 77 47
Fax : 0090 224 254 89 24
Mail : [email protected]

Quoted 4 lines

_______________________________________________
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/

#4 lore raw

Re: [LARTC] new user

In reply to Giuliano Cardozo Medalha
Quoted 5 lines · Ismet Sonmez

Hi,
i have 200 cleint a building network is cat5 cable and switches i want limiting user
can i do with LARTC?

Yes.

Stef

Signature · 8 lines
[email protected]
 "Using Linux as bandwidth manager"
     http://www.docum.org/
     #lartc @ irc.oftc.net

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

[LARTC] new user

In reply to Giuliano Cardozo Medalha

Ok.it is possible.

i have 200 client but not in one network. 1 client 1 network for security.
exam.
7.cleint 10.client cant connect p2p. all cleint bandwidth 128 kbps

                              -------client1 10.1.1.1/24
                              |  
internet<----->router<---->switch----client2 10.1.2.1/24
                            | |  
                            |   ------client3 10.1.3.1/24
                            |
                            |---switch  ....
                                   |
                                   |---switch<---->client200 10.1.200.1/24

client1 not connect client200
router eth1 ip 10.1.(1...200).254/24
:)
is it possible?

-----Original Message-----
From: Stef Coene [mailto:[email protected]]
Sent: Tuesday, May 13, 2003 8:06 PM
To: [email protected]; [email protected]
Subject: Re: [LARTC] new user

Quoted 5 lines · Ismet Sonmez

Hi,
i have 200 cleint a building network is cat5 cable and switches i want limiting user
can i do with LARTC?

Yes.

Stef

Signature · 11 lines
[email protected]
 "Using Linux as bandwidth manager"
     http://www.docum.org/
     #lartc @ irc.oftc.net




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

RE: [LARTC] new user

In reply to Giuliano Cardozo Medalha

hi,
eth0 internet
eth1 local
i want 200 ip on eth1
10.1.1.254/24 router 10.1.1.1/24 client1 10.1.2.254/24 router 10.1.2.1/24 client2 .
.
10.1.200.254/24 router 10.1.200.1/24 client200 dummynet

it is possible in LARTC?

-----Original Message-----
From: hare ram [mailto:[email protected]]
Sent: Wednesday, May 14, 2003 5:44 PM
To: [email protected]
Subject: Re: [LARTC] new user

your Question really confusing
what you want to achive

hare
----- Original Message -----
From: "Ismet Sonmez" <[email protected]>
To: <[email protected]>
Sent: Wednesday, May 14, 2003 12:27 PM
Subject: [LARTC] new user

Quoted 51 lines

Ok.it is possible.

i have 200 client but not in one network. 1 client 1 network for security.
exam.
7.cleint 10.client cant connect p2p. all cleint bandwidth 128 kbps

                              -------client1 10.1.1.1/24
                              |
internet<----->router<---->switch----client2 10.1.2.1/24
                            | |
                            |   ------client3 10.1.3.1/24
                            |
                            |---switch  ....
                                   |
                                   |---switch<---->client200 10.1.200.1/24

client1 not connect client200
router eth1 ip 10.1.(1...200).254/24
:)
is it possible?

-----Original Message-----
From: Stef Coene [mailto:[email protected]]
Sent: Tuesday, May 13, 2003 8:06 PM
To: [email protected]; [email protected]
Subject: Re: [LARTC] new user

Quoted 5 lines · Ismet Sonmez

Hi,
i have 200 cleint a building network is cat5 cable and switches i want limiting user
can i do with LARTC?

Yes.

Stef

--

[email protected]
"Using Linux as bandwidth manager"
http://www.docum.org/
#lartc @ irc.oftc.net

Quoted 4 lines

_______________________________________________
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/

#7 lore raw

Re: [LARTC] new user

In reply to Giuliano Cardozo Medalha
Quoted 11 lines · Ismet Sonmez

hi,
eth0 internet
eth1 local
i want 200 ip on eth1
10.1.1.254/24 router 10.1.1.1/24 client1
10.1.2.254/24 router 10.1.2.1/24 client2
.
.
10.1.200.254/24 router 10.1.200.1/24 client200
dummynet

Quoted 1 line

it is possible in LARTC?

This question is not easy to answer because it's not clear what you want to do. But as fas I understand, it's possible.

Stef

Signature · 8 lines
[email protected]
 "Using Linux as bandwidth manager"
     http://www.docum.org/
     #lartc @ irc.oftc.net

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

RE: [LARTC] new user

In reply to Giuliano Cardozo Medalha

Ismet,

As you may have noticed we don't really understand exactly what you wish to do. We understand that you have a number of "client" networks behind your router, and that you wish to use linux (LARTC), but we are not sure about the nature of your question.

: it is possible in LARTC?

Quite probably. I understand that there may be a linguistic barrier for you in communicating your question to the list, but we need to know more in order to engage your question. So please ask better questions in the future. With that said, here are some answers to the questions I thought you were asking:

Are you asking

1. if you can limit bandwidth for each client?

Yes. You'll want to learn about HTB. You will probably wish to create a top-level class to limit the total bandwidth to the available bandwidth for all of your clients, and then create child classes alloting 128k for each client, e.g.,

1:1 (77mbit) +--------+ 1:1001 (128kbit)
+--------+ 1:1002 (128kbit)
+--------+ 1:1003 (128kbit)
...
+--------+ 1:1200 (128kbit)

Your clients will still be "fighting" over any bandwidth left in class 1:1, but at least you can limit the total bandwidth that all of them will be able to consume. You can also cap each individual class by using the rate and ceil parameters for the child classes.

There is a metric boatload of documentation on HTB by the author [1] and by Stef Coene [2].

OR

: eth0 internet
: eth1 local
: i want 200 ip on eth1

2. if you can use a single router with multiple IPs on a single ethernet interface?

Yes. You can trivially host multiple IPs on the same interface by making use of the "ip address add" command. I have not completed writing my documentation [3] and examples for this command, but the ip-cref manual [4] which comes with the iproute2 package will provide the necessary clues.

In short, the machine can host many IPs on a single interface, and according to the rules for source address selection [5], should even generate ICMP messages from the correct IPs for your client networks.

OR

: > client1 not connect client200

3. if you can prevent the different client networks from communicating with each other?

Yes. You can do so by using iptables. I would suggest the iptables tutorial [6] for an introduction to the capabilities of packet filtering with kernel 2.4 and iptables.

You can also prevent different client networks from connecting to each other by using clever policy routing. See a discussion between me and Tomas Bonnedahl from earlier this year [7]. I would suggest using policy routing in addition to (not as a replacement for) correctly configured packet filters (see next answer).

OR

: > 7.client 10.client cant connect p2p.

4. if you can configure different packet filters for each client?

Yes. You can do so by using iptables. I would suggest the iptables tutorial [6] for an introduction to the capabilities of packet filtering with kernel 2.4 and iptables.

There are a large number of tools for automating the writing of packet filters. These tools can be found on freshmeat.net [8]. I would suggest choosing one of these after you understand how iptables can help you solve your problem.

So, in short, Ismet, linux-2.4 can probably do what you want. Please feel free to ask more specific questions after you have familiarized yourself with the wealth of options.

-Martin

 [1]  http://luxik.cdi.cz/~devik/qos/htb/
 [2]  http://www.docum.org/
 [3]  http://linux-ip.net/html/tools-ip-address.html
 [4]  http://linux-ip.net/gl/ip-cref/node22.html
 [5]  http://linux-ip.net/html/routing-saddr-selection.html
      http://linux-ip.net/gl/ip-cref/node155.html
 [6]  http://iptables-tutorial.frozentux.net/
 [7]  http://mailman.ds9a.nl/pipermail/lartc/2003q1/007174.html
 [8]  http://freshmeat.net/search/?q=iptables&section=projects&x=0&y=0
Signature · 5 lines
Martin A. Brown --- SecurePipe, Inc. --- [email protected]

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

RE: [LARTC] new user

In reply to Giuliano Cardozo Medalha

Hi Martin,
so sorry my english.i am only read but dont write and talk.

1. if you can limit bandwidth for each client? YES
2. if you can use a single router with multiple IPs on a single ethernet interface? YES
3.if you can prevent the different client networks from communicating
with each other? YES

ok.understand all.

-----Original Message-----
From: Martin A. Brown [mailto:[email protected]]
Sent: Wednesday, May 14, 2003 9:23 PM
To: Ismet Sonmez
Cc: [email protected]
Subject: RE: [LARTC] new user

Ismet,

As you may have noticed we don't really understand exactly what you wish to do. We understand that you have a number of "client" networks behind your router, and that you wish to use linux (LARTC), but we are not sure about the nature of your question.

: it is possible in LARTC?

Quite probably. I understand that there may be a linguistic barrier for you in communicating your question to the list, but we need to know more in order to engage your question. So please ask better questions in the future. With that said, here are some answers to the questions I thought you were asking:

Are you asking

1. if you can limit bandwidth for each client?

Yes. You'll want to learn about HTB. You will probably wish to create a top-level class to limit the total bandwidth to the available bandwidth for all of your clients, and then create child classes alloting 128k for each client, e.g.,

1:1 (77mbit) +--------+ 1:1001 (128kbit)
+--------+ 1:1002 (128kbit)
+--------+ 1:1003 (128kbit)
...
+--------+ 1:1200 (128kbit)

Your clients will still be "fighting" over any bandwidth left in class 1:1, but at least you can limit the total bandwidth that all of them will be able to consume. You can also cap each individual class by using the rate and ceil parameters for the child classes.

There is a metric boatload of documentation on HTB by the author [1] and by Stef Coene [2].

OR

: eth0 internet
: eth1 local
: i want 200 ip on eth1

2. if you can use a single router with multiple IPs on a single ethernet interface?

Yes. You can trivially host multiple IPs on the same interface by making use of the "ip address add" command. I have not completed writing my documentation [3] and examples for this command, but the ip-cref manual [4] which comes with the iproute2 package will provide the necessary clues.

In short, the machine can host many IPs on a single interface, and according to the rules for source address selection [5], should even generate ICMP messages from the correct IPs for your client networks.

OR

: > client1 not connect client200

3. if you can prevent the different client networks from communicating with each other?

Yes. You can do so by using iptables. I would suggest the iptables tutorial [6] for an introduction to the capabilities of packet filtering with kernel 2.4 and iptables.

You can also prevent different client networks from connecting to each other by using clever policy routing. See a discussion between me and Tomas Bonnedahl from earlier this year [7]. I would suggest using policy routing in addition to (not as a replacement for) correctly configured packet filters (see next answer).

OR

: > 7.client 10.client cant connect p2p.

4. if you can configure different packet filters for each client?

Yes. You can do so by using iptables. I would suggest the iptables tutorial [6] for an introduction to the capabilities of packet filtering with kernel 2.4 and iptables.

There are a large number of tools for automating the writing of packet filters. These tools can be found on freshmeat.net [8]. I would suggest choosing one of these after you understand how iptables can help you solve your problem.

So, in short, Ismet, linux-2.4 can probably do what you want. Please feel free to ask more specific questions after you have familiarized yourself with the wealth of options.

-Martin

 [1]  http://luxik.cdi.cz/~devik/qos/htb/
 [2]  http://www.docum.org/
 [3]  http://linux-ip.net/html/tools-ip-address.html
 [4]  http://linux-ip.net/gl/ip-cref/node22.html
 [5]  http://linux-ip.net/html/routing-saddr-selection.html
      http://linux-ip.net/gl/ip-cref/node155.html
 [6]  http://iptables-tutorial.frozentux.net/
 [7]  http://mailman.ds9a.nl/pipermail/lartc/2003q1/007174.html
 [8]  http://freshmeat.net/search/?q=iptables&section=projects&x=0&y=0
Signature · 8 lines
Martin A. Brown --- SecurePipe, Inc. --- [email protected]




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