CANOGA PERKINS CanogaOS Command Reference User Manual

Page 555

Advertising
background image

CanogaOS Command Line Reference

Revision 1.02

Proprietary & Confidential Canoga Pertkins Metro Ethernet Switches

Page 555 of 855

The match as-path command specifies the autonomous system path to be matched. If there is a
match for the specified AS path, and permit is specified, the route is redistributed or controlled,
as specified by the set action. If the match criteria are met, and deny is specified, the route is
not redistributed or controlled. If the match criteria are not met then the route is neither
accepted nor forwarded, irrespective of permit or deny specifications.

The route specified by the policies might not be the same as specified by the routing protocols.
Setting policies enable packets to take different routes, depending on their length or content.
Packet forwarding based on configured policies overrides packet forwarding specified in routing
tables.

Note:

This command is valid only for BGP.

28.2.1.1 Command Syntax

match as-path LISTNAME

no match as-path


28.2.1.2 Syntax Description

LISTNAME

Specifies as autonomous system path access list name.

28.2.1.3 Command Mode

Route-map mode

28.2.1.4 Defaults

No match as-path is specified by default.

28.2.1.5 Examples

Switch# configure terminal
Switch(config)# route-map myroute deny 34
Switch(config-route-map)# match as-path myaccesslist

28.2.1.6 Related Commands

match metric
match ip address
match community
set as-path
set community

Advertising