]>
git.proxmox.com Git - ceph.git/blob - ceph/src/dpdk/examples/ip_pipeline/config/l3fwd.sh
2 # run ./config/l3fwd.sh
5 ################################################################################
6 # Routing: encap = ethernet, arp = off
7 ################################################################################
8 p
1 route add default
4 #SINK0
9 p
1 route add
100.0.0.0 10 port
0 ether a0
:b0
:c0
:d0
:e0
:f0
10 p
1 route add
100.64.0.0 10 port
1 ether a1
:b1
:c1
:d1
:e1
:f1
11 p
1 route add
100.128.0.0 10 port
2 ether a2
:b2
:c2
:d2
:e2
:f2
12 p
1 route add
100.192.0.0 10 port
3 ether a3
:b3
:c3
:d3
:e3
:f3
15 ################################################################################
16 # Routing: encap = ethernet_qinq, arp = off
17 ################################################################################
18 #p 1 route add default 4 #SINK0
19 #p 1 route add 100.0.0.0 10 port 0 ether a0:b0:c0:d0:e0:f0 qinq 1000 2000
20 #p 1 route add 100.64.0.0 10 port 1 ether a1:b1:c1:d1:e1:f1 qinq 1001 2001
21 #p 1 route add 100.128.0.0 10 port 2 ether a2:b2:c2:d2:e2:f2 qinq 1002 2002
22 #p 1 route add 100.192.0.0 10 port 3 ether a3:b3:c3:d3:e3:f3 qinq 1003 2003
25 ################################################################################
26 # Routing: encap = ethernet_mpls, arp = off
27 ################################################################################
28 #p 1 route add default 4 #SINK0
29 #p 1 route add 100.0.0.0 10 port 0 ether a0:b0:c0:d0:e0:f0 mpls 1000:2000
30 #p 1 route add 100.64.0.0 10 port 1 ether a1:b1:c1:d1:e1:f1 mpls 1001:2001
31 #p 1 route add 100.128.0.0 10 port 2 ether a2:b2:c2:d2:e2:f2 mpls 1002:2002
32 #p 1 route add 100.192.0.0 10 port 3 ether a3:b3:c3:d3:e3:f3 mpls 1003:2003