summaryrefslogtreecommitdiffstats
path: root/VNFs/vCGNAPT/config/sample_hwlb_2port_2WT.tc
diff options
context:
space:
mode:
authorDeepak S <deepak.s@linux.intel.com>2017-08-18 17:34:49 -0700
committerDeepak S <deepak.s@linux.intel.com>2017-08-20 15:55:15 -0700
commit1aed6019af6ebcf72414f598e66559564f33769b (patch)
tree037afe0dc54985e54afccdf83006bae96ae1ebc1 /VNFs/vCGNAPT/config/sample_hwlb_2port_2WT.tc
parent7039d332918daf2678fc6f3738f436937eec08d5 (diff)
Updated configuration files for cgnapt VNFs
JIRA: SAMPLEVNF-75 Change-Id: Iac091ca0f12570d47d36366055ad89737b386c36 Signed-off-by: Deepak S <deepak.s@linux.intel.com>
Diffstat (limited to 'VNFs/vCGNAPT/config/sample_hwlb_2port_2WT.tc')
-rw-r--r--VNFs/vCGNAPT/config/sample_hwlb_2port_2WT.tc38
1 files changed, 38 insertions, 0 deletions
diff --git a/VNFs/vCGNAPT/config/sample_hwlb_2port_2WT.tc b/VNFs/vCGNAPT/config/sample_hwlb_2port_2WT.tc
new file mode 100644
index 00000000..47ee0633
--- /dev/null
+++ b/VNFs/vCGNAPT/config/sample_hwlb_2port_2WT.tc
@@ -0,0 +1,38 @@
+
+link 0 down
+link 0 config 202.16.100.21 24
+link 0 up
+link 1 down
+link 1 config 172.16.40.21 24
+link 1 up
+
+
+; uncomment to enable static NAPT
+;p <cgnapt pipeline id> entry addm <prv_ipv4/6> prvport> <pub_ip> <pub_port> <phy_port> <ttl> <no_of_entries> <end_prv_port> <end_pub_port>
+;p 3 entry addm 202.16.100.20 1234 152.16.40.10 1 0 500 65535 1234 65535
+
+; uncomment below lines to enable static arp
+;p 1 arpadd 0 202.16.100.20 00:00:00:00:00:01
+;p 1 arpadd 1 172.16.40.20 00:00:00:00:00:02
+
+; uncomment below lines to enable static arp
+;p 1 arpadd 0 0064:ff9b:0:0:0:0:ca10:6414 00:00:00:00:00:01
+;p 1 arpadd 1 0064:ff9b:0:0:0:0:ac10:2814 00:00:00:00:00:02
+
+routeadd 0 202.16.100.20 0xff000000
+routeadd 2 172.16.40.20 0xff000000
+
+;routeadd <port #> <ipv6 nhip address in hex> <Depth>
+;routeadd 0 0064:ff9b:0:0:0:0:ca10:6414 64
+;routeadd 1 0064:ff9b:0:0:0:0:ac10:6414 64
+
+
+set fwd rxonly
+set_sym_hash_ena_per_port 0 enable
+set_hash_global_config 0 simple_xor ipv4-udp enable
+set_sym_hash_ena_per_port 1 enable
+set_hash_global_config 1 simple_xor ipv4-udp enable
+set_hash_input_set 0 ipv4-udp src-ipv4 udp-src-port add
+set_hash_input_set 1 ipv4-udp dst-ipv4 udp-dst-port add
+set_hash_input_set 0 ipv4-udp src-ipv6 udp-src-port add
+set_hash_input_set 1 ipv4-udp dst-ipv6 udp-dst-port add