Match As-Path - NETGEAR M6100 Series Reference Manual

Hide thumbs Also See for M6100 Series:
Table of Contents

Advertisement

route-map
To create a route map and enter Route Map Configuration mode, use the route-map
command in Global Configuration mode. One use of a route map is to limit the redistribution
of routes to a specified range of route prefixes. The redistribution command specifies a route
map which refers to a prefix list. The prefix list identifies the prefixes that may be
redistributed. NETGEAR Managed Switch accepts up to 64 route maps.
Default
No route maps are configured by default. If no permit or deny tag is given, permit is the default.
Format
route-map map-tag [permit | deny] [sequence-number]
Mode
Global Configuration
Parameter
Description
map-tag
Text name of the route map. Route maps with the same name are grouped together in order of their
sequence numbers. A route map name may be up to 32 characters long.
permit
(Optional) Permit routes that match all of the match conditions in the route map.
deny
(Optional) Deny routes that match all of the match conditions in the route map.
sequence-number
(Optional) An integer used to order the set of route maps with the same name. Route maps are
ordered from lowest to greatest sequence number, with lower sequence numbers being considered
first. If no sequence number is specified, the system assigns a value ten greater than the last
statement in the route map. The range is 0 to 65,535.
Command example:
The following example configures BGP to redistribute all prefixes within 172.20.0.0 and reject
all others:
(NETGEAR Switch)(config)# ip prefix-list redist-pl permit 172.20.0.0/16 le 32
(NETGEAR Switch)(config)# route-map redist-rm permit
(NETGEAR Switch)(config-route-map)# match ip address prefix-list redist-pl
(NETGEAR Switch)(config-route-map)# exit
(NETGEAR Switch)(config) router bgp 1
(NETGEAR Switch)(Config-router) redistribute ospf route-map redist-rm
no route-map
To delete a route map or one of its statements, use the no route-map command.
Format
no route-map map-tag [permit | deny] [sequence-number]
Mode
Global Configuration

match as-path

The match as-path command matches BGP autonomous system paths against an AS
path access list. If you enter a new match as-path term in a route map statement that already
M6100 Series Switches
Routing Commands
657

Advertisement

Table of Contents
loading

Table of Contents