diff options
author | Acee Lindem <acee@lindem.com> | 2024-04-17 22:14:56 +0200 |
---|---|---|
committer | Acee Lindem <acee@lindem.com> | 2024-04-18 17:32:58 +0200 |
commit | 0ccad8a2b0b744d7ed64f53ab6e70a8d6aba69e6 (patch) | |
tree | fce17b663806106750689e00ba161c42dd53b6fd /doc | |
parent | Merge pull request #15709 from chiragshah6/fdev2 (diff) | |
download | frr-0ccad8a2b0b744d7ed64f53ab6e70a8d6aba69e6.tar.xz frr-0ccad8a2b0b744d7ed64f53ab6e70a8d6aba69e6.zip |
ospfd: Add prefix-list filtering of OSPF neighbors on OSPF interface
This commit adds the capabiity to filter OSPF neighbors using a
prefix-list with rules matching the neighbor's IP source address.
Configuration, filtering, immediate neighbor pruning, topo-tests,
and documentation are included. The command is:
ip ospf neighbor-filter <prefix-list> [A.B.C.D]
Signed-off-by: Acee Lindem <acee@lindem.com>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/user/ospfd.rst | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/doc/user/ospfd.rst b/doc/user/ospfd.rst index 47f8fad17..5652e34a4 100644 --- a/doc/user/ospfd.rst +++ b/doc/user/ospfd.rst @@ -757,6 +757,32 @@ Interfaces optional IPv4 address is specified, the prefix suppression will apply to the OSPF interface associated with the specified interface address. +.. clicmd:: ip ospf neighbor-filter NAME [A.B.C.D] + + Configure an IP prefix-list to use to filter packets received from + OSPF neighbors on the OSPF interface. The prefix-list should include rules + to permit or deny OSPF neighbors by IP source address. This is useful for + multi-access interfaces where adjacencies with only a subset of the + reachable neighbors are desired. Applications include testing partially + meshed topologies, OSPF Denial of Sevice (DoS) mitigation, and avoidance + of adjacencies with OSPF neighbors not meeting traffic engineering criteria. + + Example: + +.. code-block:: frr + + ! + ! Prefix-list to block neighbor with source address 10.1.0.2 + ! + ip prefix-list nbr-filter seq 10 deny 10.1.0.2/32 + ip prefix-list nbr-filter seq 200 permit any + ! + ! Configure the neighbor filter prefix-list on interface eth0 + ! + interface eth0 + ip ospf neighbor-filter nbr-filter + ! + .. clicmd:: ip ospf area (A.B.C.D|(0-4294967295)) |