Prohibiting an OSPF Interface from Sending and Receiving Protocol Packets
Context
To prevent devices on other networks from obtaining local OSPF routing information, and to prevent the local device from receiving the routing update information advertised by other devices on the same network, you can prohibit an OSPF interface from sending and receiving protocol packets.
After an OSPF interface is prohibited from sending and receiving OSPF packets, the interface can still advertise its direct routes, but not Hello packets. Therefore, no neighbor relationship can be set up between the device and other devices through this interface.
Procedure
- Run system-view
The system view is displayed.
- Run ospf [ process-id ]
The OSPF view is displayed.
- Run silent-interface { all | interface-type interface-number }
The OSPF interface is prohibited from sending and receiving OSPF packets.
By default, an interface is allowed to send and receive OSPF packets.
You can prohibit an interface from sending and receiving OSPF packets in different OSPF processes, but the silent-interface command is valid only for the OSPF interface in the local process.