I am trying to limit the bandwidth between two networks, “management” and “production” which are just two separate /24’s. I want to be able to limit the bandwidth all the way down to 10 mbit/s.
I am on VMWare, I have two linux hosts, one in each network attached to each network’s vSwitch. In the middle I have a VyOS 1.14 router with two VMXNET3 interfaces, eth0(management) and eth1(production).
I have set the speed to both interfaces at 10 with:
set interfaces ethernet eth0 speed 100 set interfaces ethernet eth1 speed 100
as well as tried to define two different types of outbound shaper/network-emulator policies to govern, as well as an inbound limiter policy.
set traffic-policy network-emulator WAN-EMU set traffic-policy network-emulator WAN-EMU bandwidth 100mbit set traffic-policy shaper SHAPER set traffic-policy shaper SHAPER bandwidth 100mbit set traffic-policy shaper SHAPER default bandwidth 100mbit set traffic-policy shaper SHAPER default ceiling 100% set traffic-policy shaper SHAPER default queue-type fair-queue set traffic-policy limiter LIMITER set traffic-policy limiter LIMITER default bandwidth 100mbit
I have also applied these accordingly:
set interfaces ethernet eth0 traffic-policy out WAN-EMU set interfaces ethernet eth0 traffic-policy out SHAPER set interfaces ethernet eth0 traffic-policy in LIMITER set interfaces ethernet eth1 traffic-policy out WAN-EMU set interfaces ethernet eth1 traffic-policy out SHAPER set interfaces ethernet eth1 traffic-policy in LIMITER
I know I can only apply one outbound policy at a time, but I tried both ways and neither worked.
I set up an iperf server on the management linux server, ran iperf client on the production linux server… and I get 460MB/s across.
What am I doing wrong?
This is a nested ESXi environment. the vSwitch does not have promiscuous mode on, but the routing works just fine so I don’t understand what the problem could be.