386
all the set sub of this node will be executed without entering the check in the next node; if
the match subs can not be met, the proceed to the check in next node. Relation among
different node should be “or”, namely one node check passed then the route filter is
passed when the switch checks each node in turn in the route-map.
Attentions should be paid on that at least one node match mode should be “permit” when
more than one node is defined. When a route-map is used for filtering routing messages,
if certain routing message can not pass any node check, then it is considered denied by
the route-map. If all nodes in the route-map are set to deny mode, then all routing
message should not be able to pass that route-map.
Example:
Switch#config terminal
Switch(config)#route-map r1 permit 5
Switch(config-route-map)#match as-path 60
Switch(config-route-map)#set weight 30
14.2.3.12 set aggregator
Command: set aggregator as <as-number> <ip_addr>
no set aggregator as [<as-number> <ip_addr>]
Function:
Assign an AS number for BGP aggregator. The “
no set aggregator as
[<as-number> <ip_addr>]
” deletes this configuration.
Parameter: <as-number >
is the AS number,
<ip_addr>
is the ip address of the
aggregator shown in decimal notation.
Command Mode:
route-map mode
Usage Guide:
To use this command, one match clause should at first be defined.
Example:
Switch#config terminal
Switch(config)#route-map r1 permit 5
Switch(config-route-map)#set aggregator as 200 10.1.1.1
14.2.3.13 set as-path
Command: set as-path prepend <as-num>
no set as-path prepend [<as-num>]
Function:
Add AS numbers in the AS path domain of the BGP routing message. The “
no
set as-path prepend [<as-num>]
” command deletes this configuration.
Parameter: <as-num >
is the AS number, circulating inputting several numbers is
available.
Command Mode:
route-map mode
Usage Guide:
To add AS number in the As domain of the BGP, the AS path length