OcNOS-RON-6.3.1 : Layer 3 Guide : Fundamental Layer 3 Command Reference : Route-Map Commands : set interface null0
set interface null0
Use this command to discard routes based on policy/rules configured for a route map.
Route maps can be applied to BGP neighbors. When this command is given for a route map and that route map is applied to a BGP neighbor, the discard route entries are added by BGP for the prefix permitted by the route map.
Use the no form of this command to not discard routes based on policy/rules configured for a route map.
Command Syntax
set interface null0
no set interface null0
Parameters
None
Default
No default value is specified
Command Mode
Route-map mode
Applicability
This command was introduced before OcNOS version 1.3.
Example
To discard 1.1.1.1/24 from BGP neighbor 30.1.1.1:
#configure terminal
(config)#ip prefix-list myPrefixList seq 5 permit 1.1.1.1/24 eq 24
(config)#route-map myRM permit 1
(config-route-map)#match ip address prefix-list myPrefixList
(config-route-map)#set interface null0
(config-route-map)#exit
(config)#router bgp 200
(config-router)#neighbor 30.1.1.1 remote-as 200
(config-router)#neighbor 30.1.1.1 route-map myRM in
Last modified date: 07-13-2023