Adding Sample vCGNAPT config to run with multi-port pair
[samplevnf.git] / VNFs / vCGNAPT / config / arp_hwlb_scriptfile_4P.cfg
1
2 link 0 down
3 link 0 config 152.16.100.21 24
4 link 0 up
5 link 1 down
6 link 1 config 152.16.40.21 24
7 link 1 up
8 link 2 down
9 link 2 config 192.16.100.25 24
10 link 2 up
11 link 3 down
12 link 3 config 192.16.40.25 24
13 link 3 up
14
15 ; uncomment to enable static NAPT
16 ;p <pipeline id> entry addm <prv_ipv4/6> prvport> <pub_ip> <pub_port> <phy_port> <ttl> <no_of_entries> <end_prv_port> <end_pub_port>
17 ;p 3 entry addm 152.16.100.20 1234 152.16.40.10 1 0 500 65535 1234 65535
18
19 ; uncomment below lines to enable static arp
20 ;p 1 arpadd 0 152.16.100.20 00:00:00:00:00:01
21 ;p 1 arpadd 1 152.16.40.20 00:00:00:00:00:02
22 ;p 1 arpadd 2 192.16.100.20 00:00:00:00:00:03
23 ;p 1 arpadd 3 192.16.40.20 00:00:00:00:00:04
24
25
26 ; uncomment below lines to enable static arp
27 ;p 1 arpadd 0 0064:ff9b:0:0:0:0:9810:6414 00:00:00:00:00:01
28 ;p 1 arpadd 1 0064:ff9b:0:0:0:0:9810:2814 00:00:00:00:00:02
29 ;p 1 arpadd 2 0064:ff9b:0:0:0:0:c010:6414 00:00:00:00:00:03
30 ;p 1 arpadd 3 0064:ff9b:0:0:0:0:c010:2814 00:00:00:00:00:04
31
32
33 set fwd rxonly
34 set_sym_hash_ena_per_port 0 enable
35 set_hash_global_config 0 simple_xor ipv4-udp enable
36 set_sym_hash_ena_per_port 1 enable
37 set_hash_global_config 1 simple_xor ipv4-udp enable
38 set_hash_input_set 0 ipv4-udp src-ipv4 udp-src-port add
39 set_hash_input_set 1 ipv4-udp dst-ipv4 udp-dst-port add
40 set_hash_input_set 0 ipv4-udp src-ipv6 udp-src-port add
41 set_hash_input_set 1 ipv4-udp dst-ipv6 udp-dst-port add
42
43 set_sym_hash_ena_per_port 2 enable
44 set_hash_global_config 2 simple_xor ipv4-udp enable
45 set_sym_hash_ena_per_port 3 enable
46 set_hash_global_config 3 simple_xor ipv4-udp enable
47 set_hash_input_set 2 ipv4-udp src-ipv4 udp-src-port add
48 set_hash_input_set 3 ipv4-udp dst-ipv4 udp-dst-port add
49 set_hash_input_set 2 ipv4-udp src-ipv6 udp-src-port add
50 set_hash_input_set 3 ipv4-udp dst-ipv6 udp-dst-port add