/cfg/l3/rmap <route map number> /aspath <autonomous system path>
Autonomous System Filter Path
Note: The aspath filter is applicable only to the routes that traverse the autonomous system and not to the routes in the AS. The local AS routes are not distributed, even when we define rmap's aspath to permit the routes with local. An explicit route map for the AS routes is needed, as well as an implicit route map for local AS.
For example, to deny prefixes which are received from AS 300, define two route maps and add to corresponding bgp peer, as follows:
/c/l3/rmap 1 ena /c/l3/rmap 1/aspath 1 as 300 action deny ena /c/l3/rmap 2 ena /c/l3 /peer 1 ena addr 1.1.1.33 ras 100 hold 65535 addo 1 addo 2 |
The first rmap denies the routes that are from AS 300, and the second rmap allows all routes in this AS.
[AS Filter 1 Menu] as - AS number action - Set AS Filter action enable - Enable AS Filter disable - Disable AS Filter delete - Delete AS Filter cur - Display current AS Filter configuration |
AS Filter Menu Options (/cfg/l3/rmap/aspath)
Command Syntax and Usage |
---|
as <AS number (1-65535)> |
| Sets the Autonomous System (AS) filter’s path number. |
action permit|deny or p|d |
| Permits or denies an AS filter action. |
enable |
| Enables the AS filter. |
disable |
| Disables the AS filter. |
delete |
| Deletes the AS filter. |
cur |
| Displays the current AS filter configuration. |