Skip to contentSkip to conversation

Scenario Issue

LARTC Osgaldo Suanzes 3 participants 3 messages Apr 3, 2003

lore
Share & tools
lore
#0 lore raw

Hi there, this is my first post, so please excuse me Im still new to this one,

Problem description

I have a linux router with 3 interfaces 1 goes to the internet 2MB Bandwidth, 2 Lan FastEthernet
On the first Lan Interface I need to assign 1Meg of traffic to my 15 people on that Lan.
So that if only 1 person is online can use the whole bandwidth, and if someones add it shares
50/50 of the Bandwith, a third person would 33/33/33 and so on. On my Second Lan I need to assign 768 kb to 1 user (ip adress) and the rest 256 kb to 3 Users,
Prioritizing ssh/telnet over www,smtp.
So far so good, this scenario Im still trying to setup on Lan 1 with no
success. If someone
can help me out with some example scripts I would appreciate very much,
The problem arrives next month, where I will have different scenarios on
each LAN during NightShifts.
On Lan 1 There are going to be about 24 users prioritizing ssh/telnet traffic over the rest of
possible traffics. They are asking me to setup a DHCP Server on both Lans, How could I Shape or prioritize
certain traffic to a users unknown Ip Address given by DHCP Sever? (using MAC Address maybe?but sometimes I
wont have this info) other way?.

Scenario:

           2 Meg
           Internet
                |
                |
               / \
              /   \
             /     \
   Lan1         Lan2
 1Meg for     \
 15 users         \
                          \
                         / \
                        /   \
                       /     \
         768kb             256kb
        1 User             3 users ssh/telnet prio

Whats easiest way to set up? Any example scripts?
What to do in future if you dont know the Ip Adress of Source because of
DHCP Server?

Thanks for your time

Osgaldo

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

#1 lore raw
Quoted 5 lines · Osgaldo Suanzes

Hi there, this is my first post, so please excuse me Im still new to this one,

Problem description

Quoted 7 lines

I have a linux router with 3 interfaces 1 goes to the internet 2MB Bandwidth, 2 Lan FastEthernet
On the first Lan Interface I need to assign 1Meg of traffic to my 15 people on that Lan.
So that if only 1 person is online can use the whole bandwidth, and if someones add it shares
50/50 of the Bandwith, a third person would 33/33/33 and so on.

You can use the esfq qdisc to do it automatically for you. Or you can create 15 classes. I think the latter is better because you will have more control.

Quoted 6 lines

On my Second Lan I need to assign 768 kb to 1 user (ip adress) and the rest 256 kb to 3 Users,
Prioritizing ssh/telnet over www,smtp.
So far so good, this scenario Im still trying to setup on Lan 1 with no
success. If someone
can help me out with some example scripts I would appreciate very much,

Maybe you can post the script or the commands you tried so far.

Quoted 27 lines

The problem arrives next month, where I will have different scenarios on
each LAN during NightShifts.
On Lan 1 There are going to be about 24 users prioritizing ssh/telnet traffic over the rest of
possible traffics. They are asking me to setup a DHCP Server on both Lans, How could I Shape or prioritize
certain traffic to a users unknown Ip Address given by DHCP Sever? (using MAC Address maybe?but sometimes I
wont have this info) other way?.

Scenario:

           2 Meg
           Internet
               / \
              /   \
             /     \
   Lan1         Lan2
 1Meg for     \
 15 users         \
                          \
                         / \
                        /   \
                       /     \
         768kb             256kb
        1 User             3 users ssh/telnet prio
Quoted 1 line

Whats easiest way to set up? Any example scripts?

I don't have examples that fit your needs, but I have some scripts on www.docum.org. You have to translate the tree in a htb setup and that's easy to do.

Quoted 2 lines

What to do in future if you dont know the Ip Adress of Source because of
DHCP Server?

That's an other problem. Maybe you can use the dhcp configuration so each time an ip-address is given to a pc, the tc scripts are updated. And you can use the hardware address to identify the client who requested an ip.

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/
#2 lore raw
In reply to Osgaldo Suanzes
Quoted 1 line
Quoted 1 line

What to do in future if you dont know the Ip Adress of Source

because of

Quoted 2 lines
Quoted 1 line

DHCP Server?

That's an other problem. Maybe you can use the dhcp configuration so

each

Quoted 1 line

time an ip-address is given to a pc, the tc scripts are updated. And

you can

Quoted 1 line

use the hardware address to identify the client who requested an ip.

Or use dhcpcd to bind IP's to MAC addresses.. You can do quasi-static IP's that way.

An entry in /etc/dhcpcd.conf would look like this:

host <HOST-NAME> {
     hardware ethernet <MAC ADDRESS>;
     fixed-address <IP ADDRESS>;
}

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