Imported Upstream version 16.04
[deb_dpdk.git] / examples / ip_pipeline / config / edge_router_upstream.sh
1 ################################################
2 # Firewall Rules:4 for 4 ports
3 ################################################
4 p 1 firewall add ipv4 1 0.0.0.0 8 0.0.0.0 10 0 0 0 0 6 1 0
5 p 1 firewall add ipv4 1 0.0.0.0 8 0.64.0.0 10 0 0 0 0 6 1 1
6 p 1 firewall add ipv4 1 0.0.0.0 8 0.128.0.0 10 0 0 0 0 6 1 2
7 p 1 firewall add ipv4 1 0.0.0.0 8 0.192.0.0 10 0 0 0 0 6 1 3
8 p 1 firewall add default 4 #SINK0
9
10
11 ################################################################################
12 # Flow classification
13 ################################################################################
14 p 3 flow add default 4 #SINK1
15 p 3 flow add qinq all 65536 4
16
17 ################################################################################
18 # Flow Actions - Metering
19 ################################################################################
20 p 4 flows 65536 meter 0 trtcm 1250000000 1250000000 100000000 100000000
21 p 4 flows 65536 ports 4
22
23 ################################################################################
24 # Routing: Ether MPLS, ARP off
25 ################################################################################
26 p 5 route add default 4 #SINK2
27 p 5 route add 0.0.0.0 10 port 0 ether a0:b0:c0:d0:e0:f0 mpls 0:1
28 p 5 route add 0.64.0.0 10 port 1 ether a1:b1:c1:d1:e1:f1 mpls 10:11
29 p 5 route add 0.128.0.0 10 port 2 ether a2:b2:c2:d2:e2:f2 mpls 20:21
30 p 5 route add 0.192.0.0 10 port 3 ether a3:b3:c3:d3:e3:f3 mpls 30:31
31
32 ################################################################################
33 # List all configurations
34 ################################################################################
35 p 1 firewall ls
36 #p 3 flow ls
37 #p 4 flow actions ls
38 p 5 route ls