Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/takehaya/p4-navt

NAVT(Network Address Vlan Translation) write by p4-16.
https://github.com/takehaya/p4-navt

network-programming p4 p4lang

Last synced: about 1 month ago
JSON representation

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

Awesome Lists containing this project

README

        

# 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
```