OcNOS-SP : Layer 3 Guide : Border Gateway Protocol Command Reference : BGP Commands : neighbor route-map
neighbor route-map
Use this command to apply a route map to incoming or outgoing routes. This command filters updates and modifies attributes. A route map is applied to inbound or outbound updates. Only the routes that pass the route map are sent or accepted in updates.
Use the no parameter with this command to a route map.
Command Syntax
neighbor (A.B.C.D|X:X::X:X|WORD) route-map WORD (in|out)
no neighbor (A.B.C.D|X:X::X:X|WORD) route-map WORD (in|out)
For v4-unnumbered mode:
neighbor WORD route-map WORD (in|out)
no neighbor WORD route-map WORD (in|out)
Parameters
A.B.C.D
Address of the BGP neighbor in an IPv4 format
X:X::X:X
Address of the BGP neighbor in an IPv6 format
WORD
Name of a BGP peer group created with the neighbor WORD peer-group command. When you specify this parameter, the command applies to all peers in the group.
WORD
Name of the route map
in
Apply access list to incoming advertisements
out
Apply access list to outgoing advertisements
Default
No default value is specified
Command Mode
Address Family mode and v4-unnumbered mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
The following example shows the configuration of the route map named rmap2 and then the use of this map name in the neighbor route-map command.
#configure terminal
(config)#route-map rmap2 permit 6
(config-route-map)#match origin incomplete
(config-route-map)#set metric 100
(config-route-map)#exit
(config)#router bgp 12
(config-router)#address-family ipv4 unicast
(config-router-af)#neighbor 10.10.10.10 route-map rmap2 in
 
For unnumbered peer, IPv4 unicast mode commands are configured under v4-unnumbered-mode.
(config)#router bgp 100
(config-router)#address-family ipv4 unicast
(config-router-af)#bgp v4-unnumbered-mode
(config-router-v4-unnum)#neighbor eth1 route-map rmap1 in
 
Last modified date: 08/28/2023