[ Pobierz całość w formacie PDF ]

!
route-map setMED permit 10
match as-path 1
set metric-type internal
!
ip as-path access-list 1 permit .*
Related Commands Command Description
route-map Defines the conditions for redistributing routes from one
routing protocol to another, or enables policy routing.
Network Protocols Command Reference, Part 1
P1R-450
BGP Commands
set origin
set origin
To set the BGP origin code, use the set origin command in route-map configuration mode. To delete an
entry, use the no form of this command.
set origin {igp | egp autonomous-system | incomplete}
no set origin {igp | egp autonomous-system | incomplete}
Syntax Description igp Remote IGP.
egp Local EGP.
autonomous-system Remote autonomous system. This is an integer from 0 to 65535.
incomplete Unknown heritage.
Defaults Default origin, based on route in main IP routing table.
Command Modes Route-map configuration
Command History Release Modification
10.0 This command was introduced.
Usage Guidelines You must have a match clause (even if it points to a  permit everything list) if you want to set tags.
Use the route-map global configuration command, and the match and set route-map configuration
commands, to define the conditions for redistributing routes from one routing protocol into another.
Each route-map command has a list of match and set commands associated with it. The match
commands specify the match criteria the conditions under which redistribution is allowed for the
current route-map command. The set commands specify the set actions the particular redistribution
actions to perform if the criteria enforced by the match commands are met. The no route-map
command deletes the route map.
The set route-map configuration commands specify the redistribution set actions to be performed when
all of a route map s match criteria are met. When all match criteria are met, all set actions are performed.
Examples The following example sets the origin of routes that pass the route map to IGP:
route-map set_origin
match as-path 10
set origin igp
Network Protocols Command Reference, Part 1
P1R-451
BGP Commands
set origin
Related Commands Command Description
match as-path Matches a BGP autonomous system path access list.
match community-list Matches a BGP community.
match interface Distributes routes that have their next hop out one of the
interfaces specified.
match ip address Distributes any routes that have a destination network
number address permitted by a standard or extended access
list, or performs policy routing on packets.
match ip next-hop Redistributes any routes that have a next-hop router address
passed by one of the access lists specified.
match ip route-source Redistributes routes that have been advertised by routers and
access servers at the address specified by the access lists.
match metric Redistributes routes with the metric specified.
match route-type Redistributes routes of the specified type.
match tag Redistributes routes in the routing table that match the
specified tags.
route-map Defines the conditions for redistributing routes from one
routing protocol to another, or enables policy routing.
set as-path Modifies an autonomous system path for BGP routes.
set automatic-tag Automatically computes the tag value in a route map
configuration.
set community Sets the BGP COMMUNITIES attribute.
set level Indicates where to import routes.
set local-preference Specifies a preference value for the autonomous system path.
set metric Sets the metric value for a routing protocol.
set metric-type Sets the metric type for the destination routing protocol.
set next-hop Specifies the address of the next hop.
set tag Sets the value of the destination routing protocol.
set weight Specifies the BGP weight for the routing table.
Network Protocols Command Reference, Part 1
P1R-452
BGP Commands
set weight
set weight
To specify the BGP weight for the routing table, use the set weight command in route-map
configuration mode. To delete an entry, use the no form of this command.
set weight weight
no set weight weight
Syntax Description weight Weight value. It can be an integer from 0 to 65535.
Defaults The weight is not changed by the specified route map.
Command Modes Route-map configuration
Command History Release Modification
10.0 This command was introduced.
Usage Guidelines You must have a match clause (even if it points to a  permit everything list) if you want to set tags.
The implemented weight is based on the first matched autonomous system path. Weights indicated
when an autonomous system path is matched override the weights assigned by global neighbor
commands. In other words, the weights assigned with the match as-path and set weight route-map
commands override the weights assigned using the neighbor weight and neighbor filter-list
commands.
Examples The following example sets the BGP weight for the routes matching the autonomous system path access
list to 200:
route-map set-weight
match as-path 10
set weight 200
Network Protocols Command Reference, Part 1
P1R-453
BGP Commands
set weight
Related Commands Command Description
match as-path Matches a BGP autonomous system path access list.
match community-list Matches a BGP community.
match interface Distributes routes that have their next hop out one of the
interfaces specified.
match ip address Distributes any routes that have a destination network
number address permitted by a standard or extended access
list, or performs policy routing on packets.
match ip next-hop Redistributes any routes that have a next-hop router address
passed by one of the access lists specified.
match ip route-source Redistributes routes that have been advertised by routers and
access servers at the address specified by the access lists.
match metric Redistributes routes with the metric specified.
match route-type Redistributes routes of the specified type.
match tag Redistributes routes in the routing table that match the
specified tags.
route-map Defines the conditions for redistributing routes from one
routing protocol to another, or enables policy routing.
set as-path Modifies an autonomous system path for BGP routes.
set automatic-tag Automatically computes the tag value in a route map
configuration.
set community Sets the BGP COMMUNITIES attribute.
set level Indicates where to import routes. [ Pobierz całość w formacie PDF ]
  • zanotowane.pl
  • doc.pisz.pl
  • pdf.pisz.pl
  • kajaszek.htw.pl
  • Szablon by Sliffka (© W niebie musi być chyba lepiej niż w obozie, bo nikt jeszcze stamtąd nie uciekł)