aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/nat/extras/nat_dynamic
diff options
context:
space:
mode:
authorMatus Fabian <matfabia@cisco.com>2017-09-27 04:44:08 -0700
committerDave Wallace <dwallacelf@gmail.com>2017-12-18 17:18:22 +0000
commite4d12836515765a6f7c6a2f67dbacbdef2975024 (patch)
treea8f5bcbd3c0b2df388f6a42103f87ccca2654fc1 /src/plugins/nat/extras/nat_dynamic
parentff9f040e630510b5254eafa0df35d7e6fb16ffc3 (diff)
NAT: Add performance testing TRex scripts and config (VPP-832)
Change-Id: I149a20f183b836db4c32fb4e4a8438b3a14c1c26 Signed-off-by: Matus Fabian <matfabia@cisco.com>
Diffstat (limited to 'src/plugins/nat/extras/nat_dynamic')
-rw-r--r--src/plugins/nat/extras/nat_dynamic9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/plugins/nat/extras/nat_dynamic b/src/plugins/nat/extras/nat_dynamic
new file mode 100644
index 00000000000..f723b918a9c
--- /dev/null
+++ b/src/plugins/nat/extras/nat_dynamic
@@ -0,0 +1,9 @@
+set int ip address TenGigabitEthernet4/0/0 172.16.2.1/24
+set int ip address TenGigabitEthernet4/0/1 172.16.1.1/24
+set int state TenGigabitEthernet4/0/0 up
+set int state TenGigabitEthernet4/0/1 up
+ip route add 2.2.0.0/16 via 172.16.1.2 TenGigabitEthernet4/0/1
+ip route add 10.0.0.0/16 via 172.16.2.2 TenGigabitEthernet4/0/0
+set int nat44 in TenGigabitEthernet4/0/0 out TenGigabitEthernet4/0/1
+nat44 add address 172.16.1.3 - 172.16.1.163
+