Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Ethernet port speed limiting 1

Status
Not open for further replies.

mainstreetexpress

Technical User
Jan 9, 2003
92
GB
Hi
Is it possible to limit the bandwidth, say 2M or 4M going through an ethernet port?

Cheers

Mark
 
Thats a first. Ive heard of people wanting to increase the bandwidth of their ethernet interfaces, but not decrease them.

The answer is no. A fast ethernet interface can be adjusted to 10/half only, and an ethernet interface cant be adjusted at all. Just for curiousity sake, may I ask why you want to limit the bandwidth of an ethernet interface?
 
Basically we need to give the customer a certain bandwidth which my need to be increased at a later time, i.e. cap their bandwith to 2M for the moment then increase it later to 4 or 6 etc. The ethernet port is just a convenient way of giving access to the customer
 
Outside of that I can see other reasons for limitations on bandwidth.

I have a relative that works testing a lot of medical equipment. The equipment, though brand new, was never designed to run on a network outside of 10M half. It in fact does not operate at full duplex or at 100M speeds. granted it's easy enough to limit a device like that with a hub, it still is a possible scenario.

but i've never heard of someone wanting to size it down to 2 or 4M!!
 
Look into the rate limit command. Here is an example that limits the incoming and outgoing traffic to 256k.


"rate-limit input 256000 1000 2000 conform-action transmit exceed-action drop"

"rate-limit output 256000 1000 2000 conform-action transmit exceed-action drop"

Burke
 
Hi bud.
I had our R&D people ask for a 3550-12T switch that they could alter each port to whatever setting, this is what I came up with (taking note that if you set the speed to 64kb and the ethernet is set to 1Gb the switch cant honour it exactly but you get the point...
LAB_3550a#sh run
Building configuration...

Current configuration : 7162 bytes
!
version 12.1
no service single-slot-reload-enable
no service pad
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname LAB_3550a
!
enable password cisco
!
clock timezone AEST 10
clock summer-time AEDT recurring last Sun Oct 2:00 last Sun Mar 2:00
ip subnet-zero
no ip domain-lookup
ip dhcp excluded-address 192.168.0.1
ip dhcp excluded-address 192.168.1.1
ip dhcp excluded-address 192.168.1.254
!
ip dhcp pool 192.168.1.0
network 192.168.1.0 255.255.255.0
default-router 192.168.1.1
lease 7
!
mls qos aggregate-policer 64k 64000 25000 exceed-action drop
mls qos aggregate-policer 128k 128000 25000 exceed-action drop
mls qos aggregate-policer 192k 192000 25000 exceed-action drop
mls qos aggregate-policer 256k 256000 25000 exceed-action drop
mls qos aggregate-policer 320k 320000 25000 exceed-action drop
mls qos aggregate-policer 448k 448000 25000 exceed-action drop
mls qos aggregate-policer 512k 512000 25000 exceed-action drop
mls qos aggregate-policer 576k 576000 25000 exceed-action drop
mls qos aggregate-policer 650k 640000 25000 exceed-action drop
mls qos aggregate-policer 704k 704000 25000 exceed-action drop
mls qos aggregate-policer 768k 768000 25000 exceed-action drop
mls qos aggregate-policer 832k 832000 25000 exceed-action drop
mls qos aggregate-policer 896k 896000 25000 exceed-action drop
mls qos aggregate-policer 960k 960000 25000 exceed-action drop
mls qos aggregate-policer 1024k 10240000 25000 exceed-action drop
mls qos aggregate-policer 1280k 12800000 25000 exceed-action drop
mls qos aggregate-policer 1536k 15360000 25000 exceed-action drop
mls qos aggregate-policer 1792k 17920000 25000 exceed-action drop
mls qos aggregate-policer 1984k 19840000 25000 exceed-action drop
mls qos aggregate-policer 2000k 2000000 25000 exceed-action drop
mls qos aggregate-policer 4000k 4000000 25000 exceed-action drop
mls qos aggregate-policer 6000k 6000000 25000 exceed-action drop
mls qos aggregate-policer 8000k 8000000 25000 exceed-action drop
mls qos aggregate-policer 10000k 10000000 25000 exceed-action drop
mls qos aggregate-policer 12000k 12000000 25000 exceed-action drop
mls qos aggregate-policer 14000k 14000000 25000 exceed-action drop
mls qos aggregate-policer 16000k 16000000 25000 exceed-action drop
mls qos aggregate-policer 18000k 18000000 25000 exceed-action drop
mls qos aggregate-policer 20000k 20000000 25000 exceed-action drop
mls qos aggregate-policer 22000k 22000000 25000 exceed-action drop
mls qos aggregate-policer 24000k 24000000 25000 exceed-action drop
mls qos aggregate-policer 26000k 26000000 25000 exceed-action drop
mls qos aggregate-policer 28000k 28000000 25000 exceed-action drop
mls qos aggregate-policer 30000k 30000000 25000 exceed-action drop
mls qos aggregate-policer 32000k 32000000 25000 exceed-action drop
mls qos aggregate-policer 44000k 44000000 25000 exceed-action drop
mls qos
!
class-map match-all egr1
match ip dscp 0 8 16 24 32 40 48 56
!
!
policy-map egress_256k
class egr1
police aggregate 256k
policy-map egress_320k
class egr1
police aggregate 320k
policy-map egress_10000k
class egr1
police aggregate 10000k
policy-map egress_32000k
class egr1
police aggregate 32000k
policy-map egress_22000k
class egr1
police aggregate 22000k
policy-map egress_44000k
class egr1
police aggregate 44000k
policy-map egress_650k
class egr1
police aggregate 650k
policy-map egress_704k
class egr1
police aggregate 704k
policy-map egress_12000k
class egr1
police aggregate 12000k
policy-map egress_30000k
class egr1
police aggregate 30000k
policy-map egress_20000k
class egr1
police aggregate 20000k
policy-map egress_14000k
class egr1
police aggregate 14000k
policy-map egress_576k
class egr1
police aggregate 576k
policy-map egress_26000k
class egr1
police aggregate 26000k
policy-map egress_896k
class egr1
police aggregate 896k
policy-map egress_16000k
class egr1
police aggregate 16000k
policy-map egress_512k
class egr1
police aggregate 512k
policy-map egress_24000k
class egr1
police aggregate 24000k
policy-map egress_768k
class egr1
police aggregate 768k
policy-map egress_832k
policy-map egress_18000k
class egr1
police aggregate 18000k
policy-map egress_448k
class egr1
police aggregate 448k
policy-map egress_128k
class egr1
police aggregate 128k
policy-map egress_192k
class egr1
police aggregate 192k
policy-map egress_28000k
class egr1
police aggregate 28000k
policy-map egress_960k
class egr1
police aggregate 960k
policy-map egress_1536k
class egr1
police aggregate 1536k
policy-map egress_64k
class egr1
police aggregate 64k
policy-map egress_2000k
class egr1
police aggregate 2000k
policy-map egress_1984k
class egr1
police aggregate 1984k
policy-map egress_4000k
class egr1
police aggregate 4000k
policy-map egress_1024k
class egr1
police aggregate 1024k
policy-map egress_6000k
class egr1
police aggregate 6000k
policy-map egress_8000k
class egr1
police aggregate 8000k
policy-map egress_1280k
class egr1
police aggregate 1280k
policy-map egress_1792k
class egr1
police aggregate 1792k
!
!
spanning-tree extend system-id
!
!
!
interface Loopback0
ip address 192.168.0.1 255.255.255.255
!
interface GigabitEthernet0/1
switchport mode access
no ip address
load-interval 30
service-policy output egress_64k
spanning-tree portfast
!
interface GigabitEthernet0/2
switchport mode access
no ip address
load-interval 30
service-policy output egress_64k
spanning-tree portfast
!
interface GigabitEthernet0/3
switchport mode access
no ip address
load-interval 30
service-policy output egress_128k
spanning-tree portfast
!
interface GigabitEthernet0/4
switchport mode access
no ip address
load-interval 30
service-policy output egress_128k
spanning-tree portfast
!
interface GigabitEthernet0/5
switchport mode access
no ip address
load-interval 30
service-policy output egress_256k
spanning-tree portfast
!
interface GigabitEthernet0/6
switchport mode access
no ip address
load-interval 30
service-policy output egress_256k
spanning-tree portfast
!
interface GigabitEthernet0/7
switchport mode access
no ip address
load-interval 30
service-policy output egress_512k
spanning-tree portfast
!
interface GigabitEthernet0/8
switchport mode access
no ip address
load-interval 30
service-policy output egress_512k
spanning-tree portfast
!
interface GigabitEthernet0/9
switchport mode access
no ip address
load-interval 30
service-policy output egress_1024k
spanning-tree portfast
!
interface GigabitEthernet0/10
switchport mode access
no ip address
load-interval 30
service-policy output egress_1024k
spanning-tree portfast
!
interface GigabitEthernet0/11
no ip address
!
interface GigabitEthernet0/12
no ip address
!
interface Vlan1
ip address 192.168.1.254 255.255.255.0
!
ip default-gateway 192.168.1.1
ip classless
ip http server
!
!
logging trap debugging
!
line con 0
password cisco
login
line vty 0 4
password cisco
login
line vty 5 15
password cisco
login
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top