Skip to content

NAVT(Network Address Vlan Translation) write by p4-16.

License

Notifications You must be signed in to change notification settings

takehaya/p4-navt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

p4-navt

NAVT(Network Address Vlan Translation) write by p4-16. e.g. VID:100, 192.168.0.1(inside) <=> 10.1.0.1 (outside)

Build

# Please go to the top directory
p4c --std p4_16 -b bmv2 --p4runtime-files build.bmv2/switch.p4.p4info.txt -o build.bmv2 p4src/switch.p4

Run

sudo ./script/playground.sh

open configuer

simple_switch_CLI

# input mac entry
table_add dmac dmac_hit 0x020304050601 => 1
table_add dmac dmac_hit 0x020304050611 => 2
table_add dmac dmac_hit 0x020304050622 => 2

About

NAVT(Network Address Vlan Translation) write by p4-16.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published