Continue gaming with VPP

VPP 17.01 released, SNAT and NAT mapping are working done! Good work, dudes!

some tunning in /etc/vpp/startup.conf

snat {
translation hash buckets 20971520
translation hash memory 1073741824
user hash buckets 12288
user hash memory 20971520
max translations per user 100000

create sub-interfaces GigabitEthernet2/0/1 TAG_ID_VLAN #create tagged vlan interface
set int state GigabitEthernet2/0/1 up #bringing up interface
set int state GigabitEthernet2/0/0 up #bringing up interface
set int state GigabitEthernet2/0/1.TAG_ID_VLAN up #bringing up tagged interface
set int ip address GigabitEthernet2/0/1.TAG_ID_VLAN x.x.x.x/x #setting up address plan
set int ip address GigabitEthernet2/0/0 y.y.y.y/y #setting up address plan
set interface snat in GigabitEthernet2/0/0 out GigabitEthernet2/0/1.TAG_ID_VLAN #nat configuration
ip route add z.z.z.z/z via z.z.z.z GigabitEthernet2/0/0 #routing config
ip route add via t.t.t.t GigabitEthernet2/0/1.TAG_ID_VLAN #routing config
snat add address your_prefered_ip_address #snat configuration
snat add static mapping local a.a.a.a external b.b.b.b #nat 1:1 configuration

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.