results and such
This commit is contained in:
parent
4ba95e2542
commit
9c06d0c7f4
2 changed files with 336 additions and 3 deletions
18
bin/gen_nat64_table_entries.py → bin/gen_nat64_table_entries.sh
Normal file → Executable file
18
bin/gen_nat64_table_entries.py → bin/gen_nat64_table_entries.sh
Normal file → Executable file
|
|
@ -1,5 +1,23 @@
|
|||
#!/bin/sh
|
||||
|
||||
|
||||
|
||||
# egress for 10.0.0.42
|
||||
echo 'table_cam_add_entry realmain_v4_networks_0 realmain.set_egress_port 167772202 => 16 0 0 0 0'
|
||||
|
||||
# egress for 2001:db8:42::42
|
||||
echo 'table_cam_add_entry realmain_v6_networks_0 realmain.set_egress_port 42540766411362381960998550477184434242 => 64 0 0 0 0'
|
||||
|
||||
# nat64: 2001:db8:42::a00:2a to be translated to 10.0.0.66
|
||||
echo 'table_cam_add_entry realmain_nat64_0 realmain.nat64_static 42540766411362381960998550477352206378 => 42540766411362381960998550477184434176 167772160 42540766411362381960998550477184434176 0'
|
||||
|
||||
# nat64: 10.0.0.66 to be translated to 2001:db8:42:42
|
||||
echo 'table_cam_add_entry realmain_nat46_0 realmain.nat46_static 167772226 => 42540766411362381960998550477184434176 167772160 42540766411362381960998550477184434176 0'
|
||||
|
||||
exit 0
|
||||
|
||||
# outdated
|
||||
|
||||
cat <<EOF
|
||||
|
||||
table_cam_add_entry realmain_v4_networks_0 realmain.set_egress_port 167772202 => 16 0 0 0 0
|
||||
Loading…
Add table
Add a link
Reference in a new issue