neighbor route-map
Syntax
neighbor {<IP-ADDRESS>|<PEER-GROUP-NAME>} route-map <MAP-NAME> {in|out}
no neighbor {<IP-ADDRESS>|<PEER-GROUP-NAME>} route-map <MAP-NAME> {in|out}
Description
This command applies a route map to incoming or outgoing routes. It configures the route map for modifying the default attributes of the route.
NOTE:
A peer group configuration for outbound route map will override the configuration of the neighbor.
The
no
form of this command removes a route map.
Command context
config-bgp-ipv4-uc
or
config-bgp-ipv6-uc
Parameters
<IP-ADDRESS>
Specifies an IP address.
<PEER-GROUP-NAME>
Specifies a peer group.
<MAP-NAME>
Specifies the name of the route map.
in|out
Sets the route map policy to apply to either the received routes from the neighbor (
in
) or the advertised routes to the neighbor (out
).
Authority
Administrators
Examples
switch(config-bgp-ipv4-uc)# neighbor 1.1.1.1 route-map HPE in switch(config-bgp-ipv4-uc)# no neighbor 1.1.1.1 route-map HPE in
switch(config-bgp-ipv4-uc)# neighbor PG route-map HPE in switch(config-bgp-ipv4-uc)# no neighbor PG route-map HPE in
switch(config)# route-map Rmap permit seq 10 switch(config-route-map-Rmap-10)# match metric 100 switch(config-route-map-bgp-10)# router bgp 100 switch(config-bgp-ipv4-uc)# neighbor 1.1.1.1 remote-as 100 switch(config-bgp-ipv4-uc)# neighbor 1.1.1.1 route-map Rmap out