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

Applies a route map to incoming or outgoing routes. Configures the route-map to modify the default route's attributes.

NOTE:

A peer group's configuration for outbound route map will override the neighbor's configuration.

The no form of this command removes a route map.

Command context

config-router

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-router)# neighbor 1.1.1.1 route-map HPE in
switch(config-router)# no neighbor 1.1.1.1 route-map HPE in
switch(config-router)# neighbor PG route-map HPE in
switch(config-router)# 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-router)# neighbor 1.1.1.1 remote-as 100

switch(config-router)# neighbor 1.1.1.1 route-map Rmap out