- Table of Contents
-
- 07-Layer 3 - IP Routing Command Reference
- 00-Preface
- 01-Basic IP Routing Commands
- 02-Static Routing Commands
- 03-RIP Commands
- 04-OSPF Commands
- 05-IS-IS Commands
- 06-BGP Commands
- 07-Policy-Based Routing Commands
- 08-Guard Route Commands
- 09-IPv6 Static Routing Commands
- 10-RIPng Commands
- 11-OSPFv3 Commands
- 12-IPv6 IS-IS Commands
- 13-IPv6 BGP Commands
- 14-IPv6 Policy-Based Routing Commands
- 15-Routing Policy Commands
- Related Documents
-
Title | Size | Download |
---|---|---|
12-IPv6 IS-IS Commands | 120.2 KB |
|
NOTE: IPv6 IS-IS supports all the features of IPv4 IS-IS except that it advertises IPv6 routing information instead. This document describes only IPv6 IS-IS exclusive commands. See the chapter “IS-IS configuration commands.” |
display isis route ipv6
Syntax
display isis route ipv6 [ [ level-1 | level-2 ] | verbose ] * [ process-id | vpn-instance vpn-instance-name ] [ | { begin | exclude | include } regular-expression ]
View
Any view
Default level
1: Monitor level
Parameters
level-1: Display Level-1 IPv6 IS-IS routes only.
level-2: Displays Level-2 IPv6 IS-IS routes only.
verbose: Displays detailed IPv6 IS-IS routing information.
process-id: IS-IS process ID, in the range of 1 to 65535.
vpn-instance vpn-instance-name: Specifies an MPLS L3VPN. vpn-instance-name is a case-sensitive string of 1 to 31 characters.
|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, which is a case sensitive string of 1 to 256 characters.
|
NOTE: If no level is specified, both Level-1 and Level-2 (namely Level-1-2) routing information will be displayed. |
Description
Use the display isis route ipv6 command to display IPv6 IS-IS routing information.
Examples
# Display IPv6 IS-IS routing information.
<Sysname> display isis route ipv6
Route information for ISIS(1)
-----------------------------
ISIS(1) IPv6 Level-1 Forwarding Table
-------------------------------------
Destination: 2001:: PrefixLen: 64
Flag : D/-/- Cost : 10
Next Hop : Direct Interface: Vlan1000
Flags: D-Direct, R-Added to RM, L-Advertised in LSPs, U-Up/Down Bit Set
ISIS(1) IPv6 Level-2 Forwarding Table
-------------------------------------
Destination: 2001:: PrefixLen: 64
Flag : D/-/- Cost : 10
Next Hop : Direct Interface: Vlan1000
Flags: D-Direct, R-Added to RM, L-Advertised in LSPs, U-Up/Down Bit Set
Table 1 Output description
Field |
Description |
Destination |
IPv6 destination address prefix. |
PrefixLen |
Length of the prefix. |
Flag/Flags |
Flag of routing information status: D—This is a direct route. R—The route has been added into the routing table. L—The route has been advertised in a LSP. U—Route leaking flag, indicating the Level-1 route is from Level-2. U means the route will not be returned to Level-2. |
Cost |
Value of cost. |
Next Hop |
Next hop. |
Interface |
Outgoing interface. |
# Display detailed IPv6 IS-IS routing information of VPN instance 1.
<Sysname> display isis route ipv6 verbose vpn-instance vpn1
Route information for ISIS(vpn1-1)
-----------------------------
ISIS(1) IPv6 Level-1 Forwarding Table
-------------------------------------
IPV6 Dest : 2001::/64 Cost : 10 Flag : D/L/-
Admin Tag : - Src Count : 1
NextHop : Interface : ExitIndex :
Direct Vlan1000 0x00000000
Flags: D-Direct, R-Added to RM, L-Advertised in LSPs, U-Up/Down Bit Set
ISIS(1) IPv6 Level-2 Forwarding Table
-------------------------------------
IPV6 Dest : 2001::/64 Cost : 10 Flag : D/L/-
Admin Tag : - Src Count : 1
NextHop : Interface : ExitIndex :
Direct Vlan1000 0x00000000
Flags: D-Direct, R-Added to RM, L-Advertised in LSPs, U-Up/Down Bit Set
Table 2 Output description
Field |
Description |
IPV6 Dest |
IPv6 destination. |
Cost |
Value of cost. |
Flag/Flags |
Flag of routing information status: D—This is a direct route. R—The route has been added into the routing table. L—The route has been advertised in a LSP. U—Route leaking flag, indicating the Level-1 route is from Level-2. U means the route will not be returned to Level-2. |
Admin Tag |
Administrative tag. |
Src Count |
Number of advertisement sources. |
Next Hop |
Next hop. |
Interface |
Outgoing interface. |
ExitIndex |
Outgoing interface index. |
ipv6 default-route-advertise
Syntax
ipv6 default-route-advertise [ [ level-1 | level-1-2 | level-2 ] | route-policy route-policy-name ]*
undo ipv6 default-route-advertise [ route-policy route-policy-name ]
View
IS-IS view
Default level
2: System level
Parameters
level-1: Specifies the default route as Level-1.
level-1-2: Specifies the default route as Level-1-2.
level-2: Specifies the default route as Level-2.
route-policy-name: Specifies the name of a routing policy with a case-sensitive string of 1 to 63 characters.
|
NOTE: If no level is specified, the default route belongs to Level-2. |
Description
Use the ipv6 default-route-advertise command to generate a Level-1 or Level-2 IPv6 IS-IS default route.
Use the undo ipv6 default-route-advertise command to disable generating a default route.
No IPv6 IS-IS default route is generated by default.
With a routing policy, you can configure IPv6 IS-IS to generate the default route that must match the routing policy. You can use the apply isis level-1 command in routing policy view to generate a default route in L1 LSPs, or use the apply isis level-2 command in routing policy view to generate a default route in L2 LSPs, and use the apply isis level-1-2 in routing policy view to generate a default route in L1 and L2 LSPs respectively.
Related commands: apply isis.
Examples
# Configure the switch to generate a default route in Level-2 LSPs.
<Sysname> system-view
[Sysname] isis 1
[Sysname-isis-1] ipv6 default-route-advertise
ipv6 enable
Syntax
ipv6 enable
undo ipv6 enable
View
IS-IS view
Default level
2: System level
Parameters
None
Description
Use the ipv6 enable command to enable IPv6 for the IPv6 IS-IS process.
Use the undo ipv6 enable command to disable IPv6.
IPv6 is disabled by default.
Examples
# Create IS-IS routing process 1, and enable IPv6 for the process.
<Sysname> system-view
[Sysname] ipv6
[Sysname] isis 1
[Sysname-isis-1] network-entity 10.0001.1010.1020.1030.00
[Sysname-isis-1] ipv6 enable
ipv6 filter-policy export
Syntax
ipv6 filter-policy { acl6-number | ipv6-prefix ipv6-prefix-name | route-policy route-policy-name } export [ protocol [ process-id ] ]
undo ipv6 filter-policy export [ protocol [ process-id ] ]
View
IS-IS view
Default level
2: System level
Parameters
acl6-number: Number of a basic or advanced IPv6 ACL used to filter redistributed routes before advertisement, ranging from 2000 to 3999. See ACL and QoS Configuration Guide for ACL information.
ipv6-prefix-name: Name of an IPv6 prefix list used to filter the redistributed routes before advertisement, a case-sensitive string of 1 to 19 characters. See Layer 3—IP Routing Configuration Guide for IPv6 prefix list information.
route-policy-name: Name of a routing policy used to filter the redistributed routes before advertisement, a case-sensitive string of 1 to 63 characters. See Layer 3—IP Routing Configuration Guide for routing policy information.
protocol: Routing protocol from which the redistributed routes are to be filtered. The routing protocol can be bgp4+, direct, isisv6, ospfv3, ripng or static. If no protocol is specified, routes redistributed from all protocols are filtered.
process-id: Process ID of the routing protocol, ranging from 1 to 65535. This argument is available when the protocol is isisv6, ospfv3 or ripng.
Description
Use the ipv6 filter-policy export command to configure IPv6 IS-IS to filter redistributed routes before advertisement.
Use the undo ipv6 filter-policy export command to disable the filtering.
The filtering is disabled by default.
In some cases, only routes satisfying certain conditions will be advertised. You can configure the filtering conditions using the ipv6 filter-policy command.
You can use the ipv6 filter-policy export command, which filters redistributed routes only when they are advertised to other switches, in combination with the ipv6 import-route command.
· If no protocol is specified, routes redistributed from all protocols are filtered before advertisement.
· If a protocol is specified, only routes redistributed from the protocol are filtered before advertisement.
Note that if you want to reference an advanced ACL (with a number from 3000 to 3999) in the command or in the routing policy, the ACL should be configured with the rule [ rule-id ] { deny | permit } ipv6 source sour sour-prefix command to deny/permit a route with the specified destination, or with the rule [ rule-id ] { deny | permit } ipv6 source sour sour-prefix destination dest dest-prefix command to deny/permit a route with the specified destination and prefix. The source keyword specifies the destination address of a route while the destination keyword specifies the prefix of the route (the prefix must be valid; otherwise, the configuration is ineffective).
Related commands: ipv6 filter-policy import.
Examples
# Reference the ACL6 2006 to filter all the redistributed routes.
<Sysname> system-view
[Sysname] isis 1
[Sysname-isis-1] ipv6 filter-policy 2006 export
# Configure ACL6 3000 to permit only route 2001::1/128 to pass, and reference ACL6 3000 to filter redistributed routes.
<Sysname> system-view
[Sysname] acl ipv6 number 3000
[Sysname-acl6-adv-3000] rule 10 permit ipv6 source 2001::1 128 destination ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 128
[Sysname-acl6-adv-3000] rule 100 deny ipv6
[Sysname-acl6-adv-3000] quit
[Sysname] isis 1
[Sysname-isis-1] ipv6 filter-policy 3000 export
ipv6 filter-policy import
Syntax
ipv6 filter-policy { acl6-number | ipv6-prefix ipv6-prefix-name | route-policy route-policy-name } import
undo ipv6 filter-policy import
View
IS-IS view
Default level
2: System level
Parameters
acl6-number: Number of a basic or advanced IPv6 ACL used to filter incoming routes, ranging from 2000 to 3999.
ipv6-prefix-name: Name of an IPv6 prefix list used to filter incoming routes, a case-sensitive string of 1 to 19 characters.
route-policy-name: Name of a routing policy used to filter incoming routes, a case-sensitive string of 1 to 63 characters.
Description
Use the ipv6 filter-policy import command to configure IPv6 IS-IS to filter the received routes.
Use the undo ipv6 filter-policy import command to disable the filtering.
The filtering is disabled by default.
In some cases, only the routing information satisfying certain conditions will be received. You can configure the filtering conditions using the ipv6 filter-policy command.
Note that if you want to reference an advanced ACL (with a number from 3000 to 3999) in the command or in the routing policy, the ACL should be configured with the rule [ rule-id ] { deny | permit } ipv6 source sour sour-prefix command to deny/permit a route with the specified destination, or with the rule [ rule-id ] { deny | permit } ipv6 source sour sour-prefix destination dest dest-prefix command to deny/permit a route with the specified destination and prefix. The source keyword specifies the destination address of a route while the destination keyword specifies the prefix of the route (the prefix must be valid; otherwise, the configuration is ineffective).
Related commands: ipv6 filter-policy export.
Examples
# Reference the IPv6 ACL 2003 to filter the received routes.
<Sysname> system-view
[Sysname] isis 1
[Sysname-isis-1] ipv6 filter-policy 2003 import
# Configure ACL6 3000 to permit only route 2001::1/128 to pass, and reference ACL6 3000 to filter the received routes.
<Sysname> system-view
[Sysname] acl ipv6 number 3000
[Sysname-acl6-adv-3000] rule 10 permit ipv6 source 2001::1 128 destination ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 128
[Sysname-acl6-adv-3000] rule 100 deny ipv6
[Sysname-acl6-adv-3000] quit
[Sysname] isis 1
[Sysname-isis-1] ipv6 filter-policy 3000 import
ipv6 import-route
Syntax
ipv6 import-route protocol [ process-id ] [ allow-ibgp ] [ cost cost | [ level-1 | level-1-2 | level-2 ] | route-policy route-policy-name | tag tag ] *
undo ipv6 import-route protocol [ process-id ]
View
IS-IS view
Default level
2: System level
Parameters
protocol: Redistributes routes from a specified routing protocol, which can be direct, static, ripng, isisv6, bgp4+ or ospfv3.
process-id: Process ID of the routing protocol of ripng, isisv6 or ospfv3, in the range of 1 to 65535. The default is 1.
cost: Cost for redistributed routes, ranging from 0 to 4261412864.
level-1: Redistributes routes into Level-1 routing table.
level-1-2: Redistributes routes into Level-1 and Level-2 routing tables.
level-2: Redistributes routes into Level-2 routing table.
route-policy-name: Name of a routing policy used to filter routes when they are being redistributed, a case-sensitive string of 1 to 63 characters.
tag: Specifies a administrative tag number for the redistributed routes, in the range of 1 to 4294967295.
allow-ibgp: Allows to redistribute IBGP routes. This keyword is optional when the protocol is bgp4+.
Description
Use the ipv6 import-route command to enable IPv6 IS-IS to redistribute routes from another routing protocol.
Use the undo ipv6 import-route command to disable route redistribution.
Route redistribution is disabled by default.
If no level is specified, the routes are imported to Level-2 routing table by default.
IPv6 IS-IS considers redistributed routes as routes to destinations outside the local routing domain.
You can specify a cost and a level for redistributed routes.
|
CAUTION: Using the import-route bgp4+ allow-ibgp command will redistribute both EBGP and IBGP routes. The redistributed IBGP routes may cause routing loops. Therefore, be cautious with this command. |
Examples
# Configure IPv6–IS-IS to redistribute static routes and set the cost 15 for them.
<Sysname> system-view
[Sysname] isis 1
[Sysname-isis-1] ipv6 import-route static cost 15
ipv6 import-route isisv6 level-2 into level-1
Syntax
ipv6 import-route isisv6 level-2 into level-1 [ filter-policy { acl6-number | ipv6-prefix ipv6-prefix-name | route-policy route-policy-name } | tag tag ] *
undo ipv6 import-route isisv6 level-2 into level-1
View
IS-IS view
Default level
2: System level
Parameters
acl6-number: Number of a basic or advanced ACL6 used to filter routes when they are leaking from Level-2 to Level-1, ranging from 2000 to 3999.
ipv6-prefix-name: Name of an IPv6 prefix list used to filter routes when they are leaking from Level-2 to Level-1, a case-sensitive string of 1 to 19 characters.
route-policy-name: Name of a routing policy used to filter routes when they are leaking from Level-2 to Level-1, a case-sensitive string of 1 to 63 characters.
tag: Specifies a administrative tag number for the leaked routes, in the range of 1 to 4294967295.
Description
Use the ipv6 import-route isisv6 level-2 into level-1 to enable IPv6 IS-IS route leaking from Level-2 to Level-1.
Use the undo ipv6 import-route isisv6 level-2 into level-1 command to disable the leaking.
The leaking is disabled by default.
The route leaking feature enables a Level-1-2 router to advertise routes destined to other Level-2 areas to the Level-1 and Level-1-2 routers in the local area.
Examples
# Enable IPv6 IS-IS route leaking from Level-2 to Level-1.
<Sysname> system-view
[Sysname] isis 1
[Sysname-isis-1] ipv6 import-route isisv6 level-2 into level-1
ipv6 import-route limit
Syntax
ipv6 import-route limit number
undo ipv6 import-route limit
View
IS-IS view
Default level
2: System level
Parameters
number: Maximum number of redistributed Level 1/Level 2 IPv6 routes, in the range of 1 to 131072.
Description
Use the ipv6 import-route limit command to configure the maximum number of redistributed Level 1/Level 2 IPv6 routes.
Use the undo ipv6 import-route limit command to restore the default.
By default, maximum number of redistributed Level 1/Level 2 IPv6 routes is 131072.
Examples
# Configure IS-IS process 1 to redistribute up to 1000 Level 1/Level 2 IPv6 routes.
<Sysname> system-view
[Sysname] isis 1
[Sysname-isis-1] ipv6 import-route limit 1000
ipv6 maximum load-balancing
Syntax
ipv6 maximum load-balancing number
undo ipv6 maximum load-balancing
View
IS-IS view
Default level
2: System level
Parameters
number: Maximum number of equal-cost routes for load balancing, in the range of 1 to 16.
Description
Use the ipv6 maximum load-balancing command to configure the maximum number of equal-cost routes for load balancing.
Use the undo ipv6 maximum load-balancing command to restore the default.
By default, the maximum number of equal-cost routes for load balancing is 16.
|
NOTE: Configure the maximum number of equivalent load-balanced routes according to the memory capacity. |
Examples
# Configure the maximum number of equal-cost routes for load balancing as 2.
<Sysname> system-view
[Sysname] isis 100
[Sysname-isis-100] ipv6 maximum load-balancing 2
ipv6 preference
Syntax
ipv6 preference { preference | route-policy route-policy-name }*
undo ipv6 preference
View
IS-IS view
Default level
2: System level
Parameters
route-policy-name: Name of a routing policy, a case-sensitive string of 1 to 63 characters.
preference: Preference for IPv6 IS-IS, ranging from 1 to 255.
Description
Use the ipv6 preference command to configure the preference for IPv6 IS-IS protocol.
Use the undo ipv6 preference command to restore the default.
The default preference for IPv6 IS-IS protocol is 15.
When a switch runs multiple dynamic routing protocols at the same time, the system will assign a preference to each routing protocol. If several protocols find routes to the same destination, the route found by the protocol with the highest preference is selected.
Examples
# Configure the preference of IPv6 IS-IS protocol as 20.
<Sysname> system-view
[Sysname] isis 1
[Sysname-isis-1] ipv6 preference 20
ipv6 summary
Syntax
ipv6 summary ipv6-prefix prefix-length [ avoid-feedback | generate_null0_route | [ level-1 | level-1-2 | level-2 ] | tag tag ] *
undo ipv6 summary ipv6-prefix prefix-length [ level-1 | level-1-2 | level-2 ]
View
Default level
2: System level
Parameters
ipv6-prefix: IPv6 prefix of the summary route.
prefix-length: Length of the IPv6 prefix, in the range of 0 to 128.
avoid-feedback: Specifies to avoid learning summary routes via routing calculation.
generate_null0_route: Generates the NULL 0 route to avoid routing loops.
level-1: Specifies to summarize only the routes redistributed to Level-1 area.
level-1-2: Specifies to summarize all the routes redistributed to Level-1 and Level-2 areas.
level-2: Specifies to summarize only the routes redistributed to Level-2 area.
tag: Value of a administrative tag, in the range of 1 to 4294967295.
|
NOTE: If no level is specified in the command, the default is level-2. |
Description
Use the ipv6 summary command to configure an IPv6 IS-IS summary route.
Use the undo ipv6 summary command to remove the summary route.
Route summarization is disabled by default.
Configuring summary routes can reduce the size of the route table, LSPs and LSDB. Routes to be summarized can be IS-IS routes or redistributed routes. The cost of a summary route is the smallest cost among all summarized routes.
Examples
# Configure a summary route of 2002::/32.
<Sysname> system-view
[Sysname] isis 1
[Sysname-isis-1] ipv6 summary 2002:: 32
isis ipv6 bfd enable
Syntax
isis ipv6 bfd enable
undo isis ipv6 bfd enable
View
Interface view
Default level
2: System level
Parameters
None
Description
Use the isis ipv6 bfd enable command to enable BFD on an IPv6 IS-IS interface for link failure detection.
Use the undo isis ipv6 bfd enable command to disable BFD on an IPv6 IS-IS interface.
By default, an IPv6 IS-IS interface is not enabled with BFD.
Examples
# Enable BFD for IPv6 IS-IS on VLAN-interface 11.
<Sysname> system-view
[Sysname] interface vlan-interface 11
[Sysname-Vlan-interface11] isis ipv6 bfd enable
isis ipv6 enable
Syntax
isis ipv6 enable [ process-id ]
undo isis ipv6 enable
View
Interface view
Default level
2: System level
Parameters
process-id: IS-IS process ID, in the range of 1 to 65535. The default is 1.
Description
Use the isis ipv6 enable command to enable IPv6 for the specified IS-IS process on the interface.
Use the undo isis ipv6 enable command to disable the configuration.
IPv6 is disabled on the interface by default.
Examples
# Enable global IPv6, create IS-IS routing process 1, enable IPv6 for the process, and enable IPv6 for the process on VLAN-interface 100.
<Sysname> system-view
[Sysname] ipv6
[Sysname] isis 1
[Sysname-isis-1] network-entity 10.0001.1010.1020.1030.00
[Sysname-isis-1] ipv6 enable
[Sysname-isis-1] quit
[Sysname] interface vlan-interface 100
[Sysname--Vlan-interface100] ipv6 address 2002::1/64
[Sysname--Vlan-interface100] isis ipv6 enable 1