neighbor route-map
Syntax
neighbor { | } route-map {in|out} no neighbor { | } route-map {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.
Theno
form of this command removes a route map.
Command context
config-bgp-ipv4-uc
or
config-bgp-ipv6-uc
Parameters
-
-
Specifies an IP address.
-
-
Specifies a peer group.
-
-
Specifies the name of the route map.
-
in|out
-
设置路线图政策适用于received routes from the neighbor (
in
) or the advertised routes to the neighbor (out
).
Authority
Administrators or local user group members with execution rights for this command.
Examples
switch(config-bgp-ipv4-uc)#neighbor 1.1.1.1 route-map HPE inswitch(config-bgp-ipv4-uc)#no neighbor 1.1.1.1 route-map HPE in
switch(config-bgp-ipv4-uc)#neighbor PG route-map HPE inswitch(config-bgp-ipv4-uc)#no neighbor PG route-map HPE in
switch(config)#route-map Rmap permit seq 10switch(config-route-map-Rmap-10)#match metric 100switch(config-route-map-bgp-10)#router bgp 100switch(config-bgp-ipv4-uc)#neighbor 1.1.1.1 remote-as 100switch(config-bgp-ipv4-uc)#neighbor 1.1.1.1 route-map Rmap out