Basic Encapsulation Example (#64)
* Adding initial implementation of basic_encap example * Updated basic_encap example to count the number of valid packets * Updated basic_encap example to put encapsulation layer after Ethernet header. * Added solution file for basic_encap example * Changed the name of the basic_encap example to basic_tunnel and called the new header myTunnel. Also changed the myTunnel field names slightly.
This commit is contained in:
9
P4D2_2017_Fall/exercises/basic_tunnel/s1-commands.txt
Normal file
9
P4D2_2017_Fall/exercises/basic_tunnel/s1-commands.txt
Normal file
@@ -0,0 +1,9 @@
|
||||
table_set_default ipv4_lpm drop
|
||||
table_add ipv4_lpm ipv4_forward 10.0.1.1/32 => 00:00:00:00:01:01 1
|
||||
table_add ipv4_lpm ipv4_forward 10.0.2.2/32 => 00:00:00:02:02:00 2
|
||||
table_add ipv4_lpm ipv4_forward 10.0.3.3/32 => 00:00:00:03:03:00 3
|
||||
|
||||
table_set_default myTunnel_exact drop
|
||||
table_add myTunnel_exact myTunnel_forward 1 => 1
|
||||
table_add myTunnel_exact myTunnel_forward 2 => 2
|
||||
table_add myTunnel_exact myTunnel_forward 3 => 3
|
||||
Reference in New Issue
Block a user