Merge "update userguide alignment"
[samplevnf.git] / VNFs / vCGNAPT / config / sample_hwlb_2port_2WT.tc
1
2 link 0 down
3 link 0 config 202.16.100.21 24
4 link 0 up
5 link 1 down
6 link 1 config 172.16.40.21 24
7 link 1 up
8
9
10 ; uncomment to enable static NAPT
11 ;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>
12 ;p 3 entry addm 202.16.100.20 1234 152.16.40.10 1 0 500 65535 1234 65535
13
14 ; uncomment below lines to enable static arp
15 ;p 1 arpadd 0 202.16.100.20 00:00:00:00:00:01
16 ;p 1 arpadd 1 172.16.40.20 00:00:00:00:00:02
17
18 ; uncomment below lines to enable static arp
19 ;p 1 arpadd 0 0064:ff9b:0:0:0:0:ca10:6414 00:00:00:00:00:01
20 ;p 1 arpadd 1 0064:ff9b:0:0:0:0:ac10:2814 00:00:00:00:00:02
21
22 ; routeadd <net/host> <port #> <ipv4 nhip address in decimal> <Mask/NotApplicable>
23 routeadd net 0 202.16.100.20 0xff000000
24 routeadd net 1 172.16.40.20  0xff000000
25
26 ;routeadd <net/host> <port #> <ipv6 nhip address in hex> <Depth/NotApplicable>
27 ;routeadd net 0 0064:ff9b:0:0:0:0:ca10:6414 64
28 ;routeadd net 1 0064:ff9b:0:0:0:0:ac10:6414 64
29
30
31 set fwd rxonly
32 set_sym_hash_ena_per_port 0 enable
33 set_hash_global_config 0 simple_xor ipv4-udp enable
34 set_sym_hash_ena_per_port 1 enable
35 set_hash_global_config 1 simple_xor ipv4-udp enable
36 set_hash_input_set 0 ipv4-udp src-ipv4 udp-src-port add
37 set_hash_input_set 1 ipv4-udp dst-ipv4 udp-dst-port add
38 set_hash_input_set 0 ipv4-udp src-ipv6 udp-src-port add
39 set_hash_input_set 1 ipv4-udp dst-ipv6 udp-dst-port add