I have a dumbbell topology with two hosts and two switches. Host1 is connected to Switch1, Switch1 is connected to Switch2, and Switch2 is connected to Host2. To make things more interesting Host1 also has 3 VMs with bridged addresses.
Each switch interface with a hot link is a trunk, except for an access link between Switch1 and Switch2. Switch1 and Switch2 also have another trunk interface between them.
There are only the default vlans in my set up at the moment. I issued commands to rate limit Vlan 1 to 0.5MBs on Switch1.
(config)# interface vlan1 (config-if)# rate-lime output 4000000 2000 2000 conform-action transmit exceed-action drop` (config-if)# rate-lime output 4000000 2000 2000 conform-action transmit exceed-action drop`
I'm trying to understand why when i run
iperf to generate traffic from Host2 to Host1 I'm observing the maximum allowed bandwidth of ~1Gbs. I would have assumed that rate-limiting one switch would introduce a bottle-net within my system.
In my experiment I will need to control the switches from the VMs on host 1. Maybe there's an access controll issue here that I am overlooking. Still I'm puzzling over the inability to enforce rate limits on a switch between to arbitrary hosts.