diff options
author | Adam Korab <ak@mid.net> | 2024-08-20 16:12:47 -0500 |
---|---|---|
committer | Christian Breunig <christian@breunig.cc> | 2024-08-21 07:57:36 +0200 |
commit | 7600f55643458fb84f2018d35acbd00eceb7a4fe (patch) | |
tree | b29022f2fa26c2f94e29dfc035de396501d8335f | |
parent | 5e45ed4f04fd9ff3bffb5ea1ab581c3e7ee43f89 (diff) | |
download | vyos-documentation-7600f55643458fb84f2018d35acbd00eceb7a4fe.tar.gz vyos-documentation-7600f55643458fb84f2018d35acbd00eceb7a4fe.zip |
Update prefix-list.rst
add IPv4 prefix-list example
-rw-r--r-- | docs/configuration/policy/prefix-list.rst | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/docs/configuration/policy/prefix-list.rst b/docs/configuration/policy/prefix-list.rst index 05229757..cc0d8441 100644 --- a/docs/configuration/policy/prefix-list.rst +++ b/docs/configuration/policy/prefix-list.rst @@ -46,6 +46,22 @@ Prefix Lists Netmask less than length +Example: Prefix Lists +============ + +This example creates an IPv4 prefix-list named PL4-EXAMPLE-NAME, defines 3 +rules each with 1 prefix, and matches le (less than/equal to) /32. + +.. cfgcmd:: set policy prefix-list PL4-EXAMPLE-NAME rule 10 action 'permit' +.. cfgcmd:: set policy prefix-list PL4-EXAMPLE-NAME rule 10 le '32' +.. cfgcmd:: set policy prefix-list PL4-EXAMPLE-NAME rule 10 prefix '192.0.2.0/24' +.. cfgcmd:: set policy prefix-list PL4-EXAMPLE-NAME rule 20 action 'permit' +.. cfgcmd:: set policy prefix-list PL4-EXAMPLE-NAME rule 20 le '32' +.. cfgcmd:: set policy prefix-list PL4-EXAMPLE-NAME rule 20 prefix '198.51.100.0/24' +.. cfgcmd:: set policy prefix-list PL4-EXAMPLE-NAME rule 30 action 'permit' +.. cfgcmd:: set policy prefix-list PL4-EXAMPLE-NAME rule 30 le '32' +.. cfgcmd:: set policy prefix-list PL4-EXAMPLE-NAME rule 30 prefix '203.0.113.0/24' + IPv6 Prefix Lists ================= |