No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

ME60 V800R010C10SPC500 Configuration Guide - IP Routing 01

This is ME60 V800R010C10SPC500 Configuration Guide - IP Routing
Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Action Clauses

Action Clauses

Action clauses are used to apply actions to the routes that meet the matching rules of condition clauses or modify route attributes.

NOTE:

The parameters in action clauses can be specific values or global variables referenced using $+global variable name. The parameters in a route-filter with pre-defined variables can be those defined in this route-filter.

Global variables cannot be referenced by the route attribute sets in the format of {element A, element B...}.

Action clauses (excluding approve, refuse, finish, call route-filter route-filter-name, and break) must follow apply.

Action Clauses Used to Specify Actions in a Route-Filter

Action Clauses

Function

Parameters
approve Further filters the routes that meet the matching rules of the current if condition branch against the next if condition branch; if the current if condition branch is the last one, these routes match the route-filter. -
refuse Denies routes that meet matching rules of a route-filter. -
finish Completes route filtering and indicates that the route matches the route-filter. -
call route-filter route-filter-name References another route-filter. The value is a string of 1 to 200 case-sensitive characters, spaces not supported. If parameters are included in the referenced route-filter, specify values for them in the format of (var1, var2, ...var8) behind the route-filter name. A maximum of eight parameters can be specified, and each value ranges from 1 to 200 characters.
break Enables the device to exit from the current route-filter. If the current route-filter is referenced by a parent route-filter, the device keeps implementing remaining condition and action clauses of the parent route-filter.

Action Clauses Used to Set Common Protocol Attributes

Action Clauses

Function

Parameters

Commands Used to Apply Action Clauses

ip next-hop { ipv4-address | blackhole | peer-address }

Sets a next hop IPv4 address.

ipv4-address: indicates an IPv4 address in dotted decimal notation.

blackhole: adds a black-hole flag to a route.

peer-address: sets the next hop of a BGP route to the IPv4 address of a peer. The IP address is in dotted decimal notation.

  • peer route-filter import
  • import-route (OSPF)

  • default-route-advertise (OSPF)
  • import-route (RIP)

  • default-route originate (RIP)

The ipv4-addressand peer-address parameters are invalid in following commands:

  • import-route (BGP)
  • network (BGP)
The blackhole parameter is invalid in following commands:
  • peer route-filter export

ipv6 next-hop { ipv6-address | blackhole | peer-address }

Sets a next hop IPv6 address.

ipv6-address: indicates an IPv6 address. The value is a 32-digit hexadecimal number, in the format of X:X:X:X:X:X:X:X.

blackhole: adds a black-hole flag to a route.

peer-address: sets the next hop of a BGP route to the IPv4 address of a peer.

  • peer route-filter import
  • import-route (RIPng)

The ipv6-addressand peer-address parameters are invalid in following commands:

  • import-route (BGP)
  • network (BGP)
  • import route-filter
The blackhole parameter is invalid in following commands:
  • peer route-filter export
preference preference

Sets a priority for a routing protocol. When multiple dynamic routing protocols run on a device and they discover multiple routes to the same destination, the priorities specified for the protocols can be used for route selection. The route discovered by the protocol with the highest priority (smallest priority value) is selected for IP packet forwarding.

preference: indicates the route priority. The value is an integer ranging from 1 to 255. The smaller the value, the higher the priority.

  • preference (BGP)
  • import-rib { public | vpn-instance vpn-instance-name } protocol direct
  • import-rib { public | vpn-instance vpn-instance-name } protocol static
  • import-rib { public | vpn-instance vpn-instance-name } protocol ospf
  • import-rib { public | vpn-instance vpn-instance-name } protocol isis
  • preference (OSPF)
  • ip import-rib vpn-instance vpn-instance-name protocol ospf

  • preference (OSPFv3)
  • preference (IS-IS)
  • ip import-rib vpn-instance vpn-instance-name protocol isis

  • preference (RIP)

  • preference (RIPng)

  • default-route originate (RIP)

rib-cost [ + | - | inherit ] rib-cost

Sets a cost for routes in the IP routing table.

+: increases the cost value.

-: decreases the cost value.

inherit-cost: inherits the costs of the routes.

rib-cost: indicates a cost which is an integer ranging from 0 to 4294967295.

  • import-rib { public | vpn-instance vpn-instance-name } protocol isis
  • import-route (OSPF)

  • default-route-advertise (OSPF)
  • default-route-advertise (OSPFv3)
  • import-route (IS-IS)

  • default-route-advertise(IS-IS)
  • ip import-rib vpn-instance vpn-instance-name protocol isis

aigp { cost | inherit-cost }

Sets the AIGP value.

cost: indicates the AIGP value.

inherit-cost: inherits the costs of the routes to which the BGP routes are iterated as AIGP values.

  • import-route (BGP)
  • network (BGP)

The inherit-cost parameter is invalid in following commands:

  • peer route-filter import
  • peer route-filter export
mpls-label

Enables MPLS to allocate labels to routes.

-

  • peer route-filter import
  • peer route-filter export
cost-type cost-type

Sets the cost type.

cost-type can be any of the following items:
  • external: sets the cost type to IS-IS external.
  • internal: sets the cost type to IS-IS internal or sets the MED values of the BGP routes received from EBGP peers to the cost values of the IGP routes to which the BGP routes are iterated.
  • type1: sets the cost type to OSPF external Type 1.
  • type2: sets the cost type to OSPF external Type 2.
  • internal-inc-ibgp: sets the MED values of the BGP routes received from IBGP or EBGP peers to the cost values of the IGP routes to which the BGP routes are iterated.
  • med-plus-igp: sets the MED values of BGP routes by adding the original MED and the cost values of the IGP routes to which the BGP routes are iterated. This parameter takes effect both on EBGP and IBGP peers.
  • import-rib { public | vpn-instance vpn-instance-name } protocol ospf
  • import-rib { public | vpn-instance vpn-instance-name } protocol ospfv3
  • import-rib { public | vpn-instance vpn-instance-name } protocol isis
  • peer route-filter export
  • import-route (OSPF)

  • import-route (OSPFv3)
  • default-route-advertise (OSPF)
  • default-route-advertise (OSPFv3)
  • ip import-rib vpn-instance vpn-instance-name protocol ospf

  • ipv6 import-rib vpn-instance vpn-instance-name protocol ospfv3

  • import-route (IS-IS)

  • default-route-advertise(IS-IS)

  • ip import-rib vpn-instance vpn-instance-name protocol isis

Action Clauses Used to Set Community Attributes for BGP Routes

Action Clauses

Function

Parameters

Commands Used to Apply Action Clauses

community { community-list-name | community-list } overwrite Overwrites the original community attribute with the specified community set.

community-list-name: indicates the name of a community set. The value is a string of 1 to 200 case-sensitive characters, spaces not supported. The string can contain letters, digits, underscores (_), hyphens (-), and dots (.). It must start with a letter or digit.

community-list: indicates the community set in the format of {element A, element B...}, in which the elements are in the format of aa:nn, a community number, or a known community (internet, no-export-subconfed, no-advertise, or no-export).

  • import-route (BGP)
  • network (BGP)
  • peer route-filter import
  • peer route-filter export
  • aggregate attribute-filter
  • peer default-route-advertise
  • import route-filter
  • export route-filter
  • import-rib (BGP-VPN instance address family view)
  • import-rib vpn-instance (BGP public address family view)
community { community-list-name | community-list } additive Adds the specified community set to the original community attribute.

community-list-name: indicates the name of a community set. The value is a string of 1 to 200 case-sensitive characters, spaces not supported. The string can contain letters, digits, underscores (_), hyphens (-), and dots (.). It must start with a letter or digit.

community-list: indicates the community set in the format of {element A, element B...}, in which the elements are in the format of aa:nn, a community number, or a known community (internet, no-export-subconfed, no-advertise, or no-export).

  • import-route (BGP)
  • network (BGP)
  • peer route-filter import
  • peer route-filter export
  • aggregate attribute-filter
  • peer default-route-advertise
  • import route-filter
  • export route-filter
  • import-rib (BGP-VPN instance address family view)
  • import-rib vpn-instance (BGP public address family view)
community in { community-list-name | community-list } delete Deletes the communities specified in the community set from the original community attribute.

community-list-name: indicates the name of a community set. The value is a string of 1 to 200 case-sensitive characters, spaces not supported. The string can contain letters, digits, underscores (_), hyphens (-), and dots (.). It must start with a letter or digit.

community-list: indicates the community set in the format of {element A, element B...}, in which the elements are in the format of aa:nn, a community number, or a known community (internet, no-export-subconfed, no-advertise, or no-export).

  • import-route (BGP)
  • network (BGP)
  • peer route-filter import
  • peer route-filter export
  • aggregate attribute-filter
  • peer default-route-advertise
  • import route-filter
  • export route-filter
  • import-rib (BGP-VPN instance address family view)
  • import-rib vpn-instance (BGP public address family view)
community not in { community-list-name | community-list } delete Deletes the communities that are beyond the community set from the original community attribute.

community-list-name: indicates the name of a community set. The value is a string of 1 to 200 case-sensitive characters, spaces not supported. The string can contain letters, digits, underscores (_), hyphens (-), and dots (.). It must start with a letter or digit.

community-list: indicates the community set in the format of {element A, element B...}, in which the elements are in the format of aa:nn, a community number, or a known community (internet, no-export-subconfed, no-advertise, or no-export).

  • import-route (BGP)
  • network (BGP)
  • peer route-filter import
  • peer route-filter export
  • aggregate attribute-filter
  • peer default-route-advertise
  • import route-filter
  • export route-filter
  • import-rib (BGP-VPN instance address family view)
  • import-rib vpn-instance (BGP public address family view)
community none

Deletes all the communities from the original community attribute.

If the parameter is applied to a BGP export policy, it takes effect on the imported local routes and on the routes imported from other protocols, not on the routes received from peers. If the parameter is applied to a BGP import policy, it takes effect on all the preceding routes.

  • import-route (BGP)
  • network (BGP)
  • peer route-filter import
  • peer route-filter export
  • aggregate attribute-filter
  • peer default-route-advertise
  • import route-filter
  • export route-filter
  • import-rib (BGP-VPN instance address family view)
  • import-rib vpn-instance (BGP public address family view)

Action Clauses Used to Set the AS_Path Attribute for BGP Routes

Action Clauses

Function

Parameters

Commands Used to Apply Action Clauses

as-path as-path overwrite Sets the AS_Path attribute for BGP routes.

as-path: indicates the AS_Path, enclosed in single quotation marks, with every two neighboring AS numbers separated with a space.

  • import-route (BGP)
  • network (BGP)
  • peer route-filter import
  • peer route-filter export
  • aggregate attribute-filter
  • peer default-route-advertise
  • import route-filter
  • export route-filter
  • import-rib (BGP-VPN instance address family view)
  • import-rib vpn-instance (BGP public address family view)
as-path { as-number-plain | as-number-dot } [ count ] additive Adds an AS number to the AS_Path attribute of BGP routes.

as-number-plain: indicates an AS number which is an integer ranging from 1 to 4294967295.

as-number-dot: indicates an AS number in the format of x.y, where x and y are integers ranging from 1 to 65535 and from 0 to 65535, respectively.

count: indicates the number of times that an AS number is added to the AS_Path attribute of BGP routes.

  • import-route (BGP)
  • network (BGP)
  • peer route-filter import
  • peer route-filter export
  • aggregate attribute-filter
  • peer default-route-advertise
  • import route-filter
  • export route-filter
  • import-rib (BGP-VPN instance address family view)
  • import-rib vpn-instance (BGP public address family view)
as-path as-path substitute Replaces the AS number of the peer specified in the AS_Path attribute with the local AS number.

as-path: indicates the AS_Path, enclosed in single quotation marks, with every two neighboring AS numbers separated with a space. An AS_Path can include an AS number range enclosed in brackets, such as [12..23], which indicates any number from 12 to 23.

  • import-route (BGP)
  • network (BGP)
  • peer route-filter import
  • peer route-filter export
  • aggregate attribute-filter
  • peer default-route-advertise
  • import route-filter
  • export route-filter
  • import-rib (BGP-VPN instance address family view)
  • import-rib vpn-instance (BGP public address family view)
as-path as-path substitute whole-match Replaces the AS number of the peer specified in the AS_Path attribute with the local AS number in the case of whole-match.

as-path: indicates the AS_Path, enclosed in single quotation marks, with every two neighboring AS numbers separated with a space. An AS_Path can include an AS number range enclosed in brackets, such as [12..23], which indicates any number from 12 to 23.

  • import-route (BGP)
  • network (BGP)
  • peer route-filter import
  • peer route-filter export
  • aggregate attribute-filter
  • peer default-route-advertise
  • import route-filter
  • export route-filter
  • import-rib (BGP-VPN instance address family view)
  • import-rib vpn-instance (BGP public address family view)

Action Clauses Used to Set Attributes Related to BGP Route Selection

Action Clauses

Function

Parameters

Commands Used to Apply Action Clauses

med { [ + | - ] med | igp-cost }

Sets a value for the MED attribute of BGP routes.

+: increases the MED value.

-: decreases the MED value.

med: indicates an integer ranging from 0 to 4294967295. When + or - is specified, med indicates the value to be increased or reduced by.

igp-cost: enables a device to use the cost of each received IGP route as the MED of the BGP route to be advertised to BGP peers.

  • peer route-filter export
  • import-rib { public | vpn-instance vpn-instance-name } protocol ospf
  • import-rib { public | vpn-instance vpn-instance-name } protocol isis
  • ip import-rib vpn-instance vpn-instance-name protocol ospf

  • ip import-rib vpn-instance vpn-instance-name protocol isis

The igp-cost parameter is invalid in following commands:

  • import-route (BGP)
  • network (BGP)
  • peer route-filter import
  • aggregate attribute-filter
  • peer default-route-advertise
  • import-rib { public | vpn-instance vpn-instance-name } protocol direct
  • import-rib { public | vpn-instance vpn-instance-name } protocol static
  • import route-filter
  • export route-filter
  • import-rib (BGP-VPN instance address family view)
  • import-rib vpn-instance (BGP public address family view)
local-preference [ + | - ] local-preference

Sets the Local_Pref attribute for BGP routes. The larger the value, the higher the priority.

local-preference: indicates an integer ranging from 0 to 4294967295.

+: increases the Local_Pref value.

-: decreases the Local_Pref value.

  • import-route (BGP)
  • network (BGP)
  • peer route-filter import
  • peer route-filter export
  • aggregate attribute-filter
  • peer default-route-advertise
  • import route-filter
  • export route-filter
  • import-rib (BGP-VPN instance address family view)
  • import-rib vpn-instance (BGP public address family view)
preferred-value preferred-value

Sets the PrefVal attribute for BGP routes. During route selection, the route with the largest PrefVal is preferred.

preferred-value: indicates the PrefVal attribute. The value is an integer ranging from 0 to 65535.

  • import-route (BGP)
  • network (BGP)
  • peer route-filter import
  • aggregate attribute-filter
  • import-rib (BGP-VPN instance address family view)
  • import-rib vpn-instance (BGP public address family view)
origin origin-type

Sets the origin type for BGP routes.

origin-type can be any of the following items:
  • egp: indicates that routes are learned through the EGP protocol.
  • igp: indicates the routes that are added to the BGP routing table using the network (BGP) command.
  • incomplete: indicates the routes imported using the import-route (BGP) command.
  • import-route (BGP)
  • network (BGP)
  • peer route-filter import
  • peer route-filter export
  • aggregate attribute-filter
  • peer default-route-advertise
  • import route-filter
  • export route-filter
  • import-rib (BGP-VPN instance address family view)
  • import-rib vpn-instance (BGP public address family view)

Action Clauses Used to Set BGP-Specific Attributes

Action Clauses

Function

Parameters

Commands Used to Apply Action Clauses

dampening half-life reuse suppress max-suppress

Sets dampening parameters for BGP routes.

half-life: indicates the half life of reachable routes. The value is an integer ranging from 1 to 45, in minutes.

reuse: indicates a threshold for the routes to be unsuppressed. The threshold is an integer ranging from 1 to 20000. When the penalty value of a route falls below the threshold, the route is reused.

suppress: indicates the threshold for the routes to be suppressed. The threshold is an integer ranging from 1 to 20000 and must be greater than reuse. When the penalty value of a route exceeds the threshold, the route is suppressed.

max-suppress: indicates the maximum penalty value. The value is an integer ranging from 1001 to 20000 and must be greater than suppress.

  • dampening
group group-name

Sets a QPPB configuration group.

group-name: indicates the name of a QPPB configuration group. The value is a string of 1 to 200 case-sensitive characters, spaces not supported. The string can contain letters, digits, underscores (_), hyphens (-), and dots (.). It must start with a letter or digit.

  • peer route-filter import
  • import route-filter
  • qos-local-id
  • filter-policy import (OSPF)

  • local-mt filter-policy (OSPF)

Action Clauses Used to Set IGP-Specific Attributes

Action Clauses

Function

Parameters

Commands Used to Apply Action Clauses

ospf-cost [ + | - | inherit ] ospf-cost

Sets a value for the cost of OSPF routes.

+: increases the cost value.

-: decreases the cost value.

inherit-cost: inherits the costs of the routes.

ospf-cost: indicates an integer ranging from 0 to 4294967295.

  • import-rib { public | vpn-instance vpn-instance-name } protocol ospf
  • import-rib { public | vpn-instance vpn-instance-name } protocol ospfv3
  • default-route-advertise (OSPF)

  • default-route-advertise (OSPFv3)
  • import-route (OSPF)
  • import-route (OSPFv3)
  • ip import-rib vpn-instance vpn-instance-name protocol ospf

  • ipv6 import-rib vpn-instance vpn-instance-name protocol ospfv3

isis-cost [ + | - | inherit ] isis-cost

Sets a value for the cost of IS-IS routes.

+: increases the cost value.

-: decreases the cost value.

inherit-cost: inherits the costs of the routes.

isis-cost: indicates an integer ranging from 0 to 4294967295.

  • import-route (IS-IS)

  • default-route-advertise(IS-IS)
rip-cost [ + | - | inherit ] rip-cost

Sets a value for the cost of RIP routes.

+: increases the cost value.

-: decreases the cost value.

inherit-cost: inherits the costs of the routes.

rip-cost: indicates an integer ranging from 0 to 4294967295.

  • import-route (RIP)

  • import-route (RIPng)

  • default-route originate (RIP)

isis isis-level-type

Sets the level of the routes imported by IS-IS.

isis-level-type can be any of the following items:
  • level-1
  • level-1-2
  • level-2
  • import-route (IS-IS)

  • default-route-advertise(IS-IS)

ospf ospf-sub-type

Imports routes to a specified OSPF area.

ospf-sub-type can be either of the following items:
  • backbone: indicates the backbone area.
  • stub-area: indicates an NSSA.

None

tag tag

Sets a tag for IGP routes.

tag: indicates the tag of IGP routes. The value is an integer ranging from 0 to 4294967295.

  • import-rib { public | vpn-instance vpn-instance-name } protocol static
  • import-rib { public | vpn-instance vpn-instance-name } protocol ospf
  • import-rib { public | vpn-instance vpn-instance-name } protocol ospfv3
  • import-rib { public | vpn-instance vpn-instance-name } protocol isis
  • import-route (OSPF)
  • import-route (OSPFv3)
  • default-route-advertise (OSPF)
  • default-route-advertise (OSPFv3)
  • ip import-rib vpn-instance vpn-instance-name protocol ospf

  • ipv6 import-rib vpn-instance vpn-instance-name protocol ospfv3

  • import-route (IS-IS)

  • default-route-advertise (IS-IS)

  • ip import-rib vpn-instance vpn-instance-name protocol isis

  • import-route isis level-1 into level-2 (IS-IS)
  • import-route isis level-2 into level-1 (IS-IS)
  • import-route (RIP)

  • import-route (RIPng)

  • default-route originate (RIP)

rip-tag rip-tag

Sets a tag for RIP routes.

rip-tag: indicates the tag of RIP routes. The value is an integer ranging from 0 to 65535.

  • import-route (OSPF)

  • import-route (OSPFv3)
  • default-route-advertise (OSPF)
  • default-route-advertise (OSPFv3)
  • import-route (RIP)

  • import-route (RIPng)

  • default-route originate (RIP)

Action Clauses Used to Set the RT Attribute for VPN Routes

Action Clauses

Function

Parameters

Commands Used to Apply Action Clauses

extcommunity rt { rt-list-name | rt-list } overwrite

Overwrites the original RT with the specified RT.

rt-list-name: indicates the name of a route target set. The value is a string of 1 to 200 case-sensitive characters, spaces not supported. The string can contain letters, digits, underscores (_), hyphens (-), and dots (.). It must start with a letter or digit.

rt-list: indicates the route target set in the format of {element A, element B...}. The elements can be expressed in any of the following formats:
  • 2-byte AS number:4-byte user-defined number, for example, 1:3. The AS number is an integer ranging from 0 to 65535, and the user-defined number is an integer ranging from 0 to 4294967295. The AS number and user-defined number must not be both 0s. Specifically, the RT must not be 0:0.
  • IPv4 address:2-byte user-defined number, for example, 192.168.122.15:1. The IPv4 address ranges from 0.0.0.0 to 255.255.255.255, and the user-defined number is an integer ranging from 0 to 65535.
  • Integral 4-byte AS number:2-byte user-defined number, for example, 0:3 or 65537:3. The integral 4-byte AS number ranges from 65536 to 4294967295, and the user-defined number is an integer ranging from 0 to 65535.
  • 4-byte AS number in dotted notation (x.y):2-byte user-defined number, for example, 0.0:3 or 0.1:0. The x, y, and user-defined number are integers ranging from 0 to 65535. The AS number and user-defined number must not be both 0s. Specifically, the RT must not be 0.0:0.
  • peer route-filter import
  • peer route-filter export
  • peer default-route-advertise
  • import route-filter
  • export route-filter
  • import-rib (BGP-VPN instance address family view)
  • import-rib vpn-instance (BGP public address family view)
extcommunity rt { rt-list-name | rt-list } additive

Adds the specified RT to the original RT.

rt-list-name: indicates the name of a route target set. The value is a string of 1 to 200 case-sensitive characters, spaces not supported. The string can contain letters, digits, underscores (_), hyphens (-), and dots (.). It must start with a letter or digit.

rt-list: indicates the route target set in the format of {element A, element B...}. The elements can be expressed in any of the following formats:
  • 2-byte AS number:4-byte user-defined number, for example, 1:3. The AS number is an integer ranging from 0 to 65535, and the user-defined number is an integer ranging from 0 to 4294967295. The AS number and user-defined number must not be both 0s. Specifically, the RT must not be 0:0.
  • IPv4 address:2-byte user-defined number, for example, 192.168.122.15:1. The IPv4 address ranges from 0.0.0.0 to 255.255.255.255, and the user-defined number is an integer ranging from 0 to 65535.
  • Integral 4-byte AS number:2-byte user-defined number, for example, 0:3 or 65537:3. The integral 4-byte AS number ranges from 65536 to 4294967295, and the user-defined number is an integer ranging from 0 to 65535.
  • 4-byte AS number in dotted notation (x.y):2-byte user-defined number, for example, 0.0:3 or 0.1:0. The x, y, and user-defined number are integers ranging from 0 to 65535. The AS number and user-defined number must not be both 0s. Specifically, the RT must not be 0.0:0.
  • peer route-filter import
  • peer route-filter export
  • peer default-route-advertise
  • import route-filter
  • export route-filter
  • import-rib (BGP-VPN instance address family view)
  • import-rib vpn-instance (BGP public address family view)
extcommunity rt in { rt-list-name | rt-list } delete

Deletes the RTs that are contained in the specified route target set.

rt-list-name: indicates the name of a route target set. The value is a string of 1 to 200 case-sensitive characters, spaces not supported. The string can contain letters, digits, underscores (_), hyphens (-), and dots (.). It must start with a letter or digit.

rt-list: indicates the route target set in the format of {element A, element B...}. The elements can be expressed in any of the following formats:
  • 2-byte AS number:4-byte user-defined number, for example, 1:3. The AS number is an integer ranging from 0 to 65535, and the user-defined number is an integer ranging from 0 to 4294967295. The AS number and user-defined number must not be both 0s. Specifically, the RT must not be 0:0.
  • IPv4 address:2-byte user-defined number, for example, 192.168.122.15:1. The IPv4 address ranges from 0.0.0.0 to 255.255.255.255, and the user-defined number is an integer ranging from 0 to 65535.
  • Integral 4-byte AS number:2-byte user-defined number, for example, 0:3 or 65537:3. The integral 4-byte AS number ranges from 65536 to 4294967295, and the user-defined number is an integer ranging from 0 to 65535.
  • 4-byte AS number in dotted notation (x.y):2-byte user-defined number, for example, 0.0:3 or 0.1:0. The x, y, and user-defined number are integers ranging from 0 to 65535. The AS number and user-defined number must not be both 0s. Specifically, the RT must not be 0.0:0.

None

extcommunity rt not in { rt-list-name | rt-list } delete

Deletes the RTs that are not contained in the specified route target set.

rt-list-name: indicates the name of a route target set. The value is a string of 1 to 200 case-sensitive characters, spaces not supported. The string can contain letters, digits, underscores (_), hyphens (-), and dots (.). It must start with a letter or digit.

rt-list: indicates the route target set in the format of {element A, element B...}. The elements can be expressed in any of the following formats:
  • 2-byte AS number:4-byte user-defined number, for example, 1:3. The AS number is an integer ranging from 0 to 65535, and the user-defined number is an integer ranging from 0 to 4294967295. The AS number and user-defined number must not be both 0s. Specifically, the RT must not be 0:0.
  • IPv4 address:2-byte user-defined number, for example, 192.168.122.15:1. The IPv4 address ranges from 0.0.0.0 to 255.255.255.255, and the user-defined number is an integer ranging from 0 to 65535.
  • Integral 4-byte AS number:2-byte user-defined number, for example, 0:3 or 65537:3. The integral 4-byte AS number ranges from 65536 to 4294967295, and the user-defined number is an integer ranging from 0 to 65535.
  • 4-byte AS number in dotted notation (x.y):2-byte user-defined number, for example, 0.0:3 or 0.1:0. The x, y, and user-defined number are integers ranging from 0 to 65535. The AS number and user-defined number must not be both 0s. Specifically, the RT must not be 0.0:0.

None

extcommunity rt none

Deletes all RTs from VPN routes.

-

None

Action Clauses Used to Set the SoO Attribute for VPN Routes

Action Clauses

Function

Parameters

Commands Used to Apply Action Clauses

extcommunity soo { soo-list-name | soo-list } overwrite

Overwrites the original SoO with the specified SoO.

soo-list-name: indicates the name of an SoO set. The value is a string of 1 to 200 case-sensitive characters, spaces not supported. The string can contain letters, digits, underscores (_), hyphens (-), and dots (.). It must start with a letter or digit.

soo-list: indicates the SoO set in the format of {element A, element B...}. The elements can be expressed in any of the following formats:
  • 2-byte AS number:4-byte user-defined number, for example, 1:3. The AS number is an integer ranging from 0 to 65535, and the user-defined number is an integer ranging from 0 to 4294967295. The AS number and user-defined number must not be both 0s. Specifically, the SoO must not be 0:0.
  • IPv4 address:2-byte user-defined number, for example, 192.168.122.15:1. The IPv4 address ranges from 0.0.0.0 to 255.255.255.255, and the user-defined number is an integer ranging from 0 to 65535.
  • Integral 4-byte AS number:2-byte user-defined number, for example, 0:3 or 65537:3. The integral 4-byte AS number ranges from 65536 to 4294967295, and the user-defined number is an integer ranging from 0 to 65535.
  • 4-byte AS number in dotted notation (x.y):2-byte user-defined number, for example, 0.0:3 or 0.1:0. The x, y, and user-defined number are integers ranging from 0 to 65535. The AS number and user-defined number must not be both 0s. Specifically, the SoO must not be 0.0:0.
  • import-route (BGP)
  • network (BGP)
  • peer route-filter import
  • peer route-filter export
extcommunity soo { soo-list-name | soo-list } additive

Adds the specified SoO to the original SoO.

soo-list-name: indicates the name of an SoO set. The value is a string of 1 to 200 case-sensitive characters, spaces not supported. The string can contain letters, digits, underscores (_), hyphens (-), and dots (.). It must start with a letter or digit.

soo-list: indicates the SoO set in the format of {element A, element B...}. The elements can be expressed in any of the following formats:
  • 2-byte AS number:4-byte user-defined number, for example, 1:3. The AS number is an integer ranging from 0 to 65535, and the user-defined number is an integer ranging from 0 to 4294967295. The AS number and user-defined number must not be both 0s. Specifically, the SoO must not be 0:0.
  • IPv4 address:2-byte user-defined number, for example, 192.168.122.15:1. The IPv4 address ranges from 0.0.0.0 to 255.255.255.255, and the user-defined number is an integer ranging from 0 to 65535.
  • Integral 4-byte AS number:2-byte user-defined number, for example, 0:3 or 65537:3. The integral 4-byte AS number ranges from 65536 to 4294967295, and the user-defined number is an integer ranging from 0 to 65535.
  • 4-byte AS number in dotted notation (x.y):2-byte user-defined number, for example, 0.0:3 or 0.1:0. The x, y, and user-defined number are integers ranging from 0 to 65535. The AS number and user-defined number must not be both 0s. Specifically, the SoO must not be 0.0:0.
  • import-route (BGP)
  • network (BGP)
  • peer route-filter import
  • peer route-filter export
extcommunity soo in { soo-list-name | soo-list } delete

Deletes the SoOs that are contained in the specified SoO set.

soo-list-name: indicates the name of an SoO set. The value is a string of 1 to 200 case-sensitive characters, spaces not supported. The string can contain letters, digits, underscores (_), hyphens (-), and dots (.). It must start with a letter or digit.

soo-list: indicates the SoO set in the format of {element A, element B...}. The elements can be expressed in any of the following formats:
  • 2-byte AS number:4-byte user-defined number, for example, 1:3. The AS number is an integer ranging from 0 to 65535, and the user-defined number is an integer ranging from 0 to 4294967295. The AS number and user-defined number must not be both 0s. Specifically, the SoO must not be 0:0.
  • IPv4 address:2-byte user-defined number, for example, 192.168.122.15:1. The IPv4 address ranges from 0.0.0.0 to 255.255.255.255, and the user-defined number is an integer ranging from 0 to 65535.
  • Integral 4-byte AS number:2-byte user-defined number, for example, 0:3 or 65537:3. The integral 4-byte AS number ranges from 65536 to 4294967295, and the user-defined number is an integer ranging from 0 to 65535.
  • 4-byte AS number in dotted notation (x.y):2-byte user-defined number, for example, 0.0:3 or 0.1:0. The x, y, and user-defined number are integers ranging from 0 to 65535. The AS number and user-defined number must not be both 0s. Specifically, the SoO must not be 0.0:0.

None

extcommunity soo not in { soo-list-name | soo-list } delete

Deletes the SoOs that are not contained in the specified SoO set.

soo-list-name: indicates the name of an SoO set. The value is a string of 1 to 200 case-sensitive characters, spaces not supported. The string can contain letters, digits, underscores (_), hyphens (-), and dots (.). It must start with a letter or digit.

soo-list: indicates the SoO set in the format of {element A, element B...}. The elements can be expressed in any of the following formats:
  • 2-byte AS number:4-byte user-defined number, for example, 1:3. The AS number is an integer ranging from 0 to 65535, and the user-defined number is an integer ranging from 0 to 4294967295. The AS number and user-defined number must not be both 0s. Specifically, the SoO must not be 0:0.
  • IPv4 address:2-byte user-defined number, for example, 192.168.122.15:1. The IPv4 address ranges from 0.0.0.0 to 255.255.255.255, and the user-defined number is an integer ranging from 0 to 65535.
  • Integral 4-byte AS number:2-byte user-defined number, for example, 0:3 or 65537:3. The integral 4-byte AS number ranges from 65536 to 4294967295, and the user-defined number is an integer ranging from 0 to 65535.
  • 4-byte AS number in dotted notation (x.y):2-byte user-defined number, for example, 0.0:3 or 0.1:0. The x, y, and user-defined number are integers ranging from 0 to 65535. The AS number and user-defined number must not be both 0s. Specifically, the SoO must not be 0.0:0.

None

extcommunity soo none

Deletes all SoOs from VPN routes.

-

None

Action Clauses Used to Set Redirection Extended Community Attributes for BGP Routes

Action Clauses

Function

Parameters

Commands Used to Apply Action Clauses

extcommunity redirect ip ip-extcommunity-value

Sets the IP redirection extended community attribute for BGP routes.

ip-extcommunity-value: indicates the IP redirection extended community attribute in the format of ip-address:nn, in which ip-address is in dotted decimal notation and nn is 0 or 1.

  • peer route-filter import
  • peer route-filter export
extcommunity redirect vpn-target vpnrt-extcommunity-value

Sets the VPN redirection extended community attribute for BGP routes.

vpnrt-extcommunity-value: indicates the VPN redirection extended community attribute in the format of as-number:nn, in which as-number is an AS number with the value being an integer ranging from 0 to 65535 and nn is an integer ranging from 0 to 4294967295.

  • peer route-filter import
  • peer route-filter export
Translation
Download
Updated: 2019-01-04

Document ID: EDOC1100059437

Views: 20593

Downloads: 15

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next