Hi all, I am using NAT44 and am trying to limit upload and download bandwidth separately on wan0.
setup: file server <--> [wan0] VPP [loop5] <--> client Info: file server ip address: 10.8.200.1 mac: a0:36:9f:9b:e2:e2 wan0 ip addr: 10.8.200.2 gateway: 10.8.200.1 mac: 08:25:a1:cb:40:55 loop5 ip addr: 10.155.6.1 mac: de:ad:00:00:00:05 client ip addr: 10.155.6.109 mac: c0:56:27:90:3f:fc vpp.conf set int state wan0 up set int ip address wan0 10.8.200.2/24 ip route add 0.0.0.0/0 via 10.8.200.1 set int state lan0 up create loopback interface instance 5 set int l2 bridge loop5 5 bvi set int ip address loop5 10.155.6.1/24 set int state loop5 up set int l2 bridge lan0 5 nat44 add interface address wan0 set interface nat44 in loop5 out wan0 Packet trace of 2 packets: https://pastebin.com/PZLMpG1i What I tried: configure policer name policy1 type 1r2c cir 500 cb 5000 rate kbps conform-action transmit exceed-action drop classify table mask l3 ip4 src classify session policer-hit-next policy1 table-index 0 match l3 ip4 src 10.8.200.2 set policer classify interface wan0 ip4-table 0 ------------- configure policer name policy1 type 1r2c cir 500 cb 5000 rate kbps conform-action transmit exceed-action drop classify table mask l2 src classify session policer-hit-next policy1 table-index 1 match l2 src 08:25:a1:cb:40:55 set policer classify interface wan0 l2-table 0 Please let me know where I am making a mistake. Thanks!
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#12802): https://lists.fd.io/g/vpp-dev/message/12802 Mute This Topic: https://lists.fd.io/mt/31208381/21656 Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-