07-Layer 3 - IP Routing Command Reference

HomeSupportSwitchesH3C S12500 Switch SeriesReference GuidesCommand ReferencesH3C S12500 Command References-Release1828P04-6W18207-Layer 3 - IP Routing Command Reference
12-IPv6 IS-IS Commands
Title Size Download
12-IPv6 IS-IS Commands 120.82 KB

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 "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: Displays 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: Specifies an IS-IS process by its 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 display isis route ipv6 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 Command output

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

Output 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 Command output

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

Output interface.

ExitIndex

Output 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 ipv6 default-route-advertise to generate a Level-1 or Level-2 IPv6 IS-IS default route.

Use undo ipv6 default-route-advertise 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.

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 ipv6 enable to enable IPv6 for the IS-IS process.

Use undo ipv6 enable 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: Specifies an IPv6 ACL by its number in the range of 2000 to 3999 to filter redistributed routes. For ACL information, see ACL and QoS Configuration Guide.

ipv6-prefix-name: Specifies an IPv6 prefix list by its name, a case-sensitive string of 1 to 19 characters, to filter the redistributed routes. For IPv6 prefix list information, see Layer 3—IP Routing Configuration Guide.

route-policy-name: Specifies a routing policy by its name, a case-sensitive string of 1 to 63 characters, to filter redistributed routes. For routing policy information, see Layer 3—IP Routing Configuration Guide.

protocol: Filters routes redistributed from the specified routing protocol, which can be bgp4+, direct, isisv6, ospfv3, ripng, or static. If no protocol is specified, the command filters routes redistributed from all routing protocols.

process-id: Specifies a process by its ID in the range of 1 to 65535. This argument is available when the protocol is isisv6, ospfv3, or ripng.

Description

Use ipv6 filter-policy export to configure IPv6 IS-IS to filter redistributed routes before advertisement.

Use undo ipv6 filter-policy export to disable the filtering.

The filtering is disabled by default.

In some cases, only routes matching 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 IPv6 ACL 2006 to filter all the redistributed routes.

<Sysname> system-view

[Sysname] isis 1

[Sysname-isis-1] ipv6 filter-policy 2006 export

# Configure IPv6 ACL 3000 to permit only route 2001::1/128 to pass, and reference IPv6 ACL 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: Specifies an IPv6 ACL by its number in the range of 2000 to 3999 to filter received routes.

ipv6-prefix-name: Specifies an IPv6 prefix list by its name, a case-sensitive string of 1 to 19 characters, to filter received routes.

route-policy-name: Specifies a routing policy by its name, a case-sensitive string of 1 to 63 characters, to filter received routes.

Description

Use ipv6 filter-policy import to configure IPv6 IS-IS to filter the received routes.

Use undo ipv6 filter-policy import to disable the filtering.

The filtering is disabled by default.

In some cases, only the routing information matching 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 IPv6 ACL 3000 to permit only route 2001::1/128 to pass, and reference IPv6 ACL 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: Specifies a process by its ID in the range of 1 to 65535. It is available only when the protocol is ripng, isisv6, or ospfv3.

cost: Specifies a cost for redistributed routes, in the range of 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: Specifies a routing policy by its name, a case-sensitive string of 1 to 63 characters, to filter redistributed routes.

tag: Specifies an 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 ipv6 import-route to enable IPv6 IS-IS to redistribute routes from another routing protocol.

Use undo ipv6 import-route 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.

 

IMPORTANT:

Using the import-route bgp4+ allow-ibgp command will redistribute both EBGP and IBGP routes. The redistributed IBGP routes might 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: Specifies an IPv6 ACL by its number in the range of 2000 to 3999 to filter received routes when they are leaking from Level-2 to Level-1.

ipv6-prefix-name: Specifies an IPv6 prefix list by its name, a case-sensitive string of 1 to 19 characters to filter routes when they are leaking from Level-2 to Level-1.

route-policy-name: Specifies a routing policy by its name, a case-sensitive string of 1 to 63 characters, to filter routes when they are leaking from Level-2 to Level-1.

tag: Specifies an administrative tag number for the leaked routes, in the range of 1 to 4294967295.

Description

Use ipv6 import-route isisv6 level-2 into level-1 to enable IPv6 IS-IS route leaking from Level-2 to Level-1.

Use undo ipv6 import-route isisv6 level-2 into level-1 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: Specifies the maximum number of redistributed Level 1/Level 2 IPv6 routes, in the range of 1 to 131072.

Description

Use ipv6 import-route limit to configure the maximum number of redistributed Level 1/Level 2 IPv6 routes.

Use undo ipv6 import-route limit 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: Specifies the maximum number of equal-cost multi-path (ECMP) routes for load balancing, in the range of 1 to 16.

Description

Use ipv6 maximum load-balancing to configure the maximum number of ECMP routes for load balancing.

Use undo ipv6 maximum load-balancing to restore the default.

By default, the maximum number of ECMP routes for load balancing is 16.

Configure the maximum number of ECMP routes according to the memory capacity.

Examples

# Configure the maximum number of ECMP 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: Specifies a routing policy by its name, a case-sensitive string of 1 to 63 characters.

preference: Specifies a preference for IPv6 IS-IS, in the range of 1 to 255.

Description

Use ipv6 preference to configure the preference for IPv6 IS-IS protocol.

Use undo ipv6 preference 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

IS-IS view

Default level

2: System level

Parameters

ipv6-prefix: Specifies an IPv6 prefix for the summary route.

prefix-length: Specifies the length of the IPv6 prefix, in the range of 0 to 128.

avoid-feedback: Specifies to avoid learning summary routes by 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: Specifies an 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 ipv6 summary to configure an IPv6 IS-IS summary route.

Use undo ipv6 summary 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 isis ipv6 bfd enable to enable BFD on an IPv6 IS-IS interface for link failure detection.

Use undo isis ipv6 bfd enable 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: Specifies an IS-IS process by its ID in the range of 1 to 65535. The default is 1.

Description

Use isis ipv6 enable to enable IPv6 for the specified IS-IS process on the interface.

Use undo isis ipv6 enable 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

multiple-topology ipv6-unicast

Syntax

multiple-topology ipv6-unicast

undo multiple-topology ipv6-unicast

View

IS-IS view

Default level

2: System level

Parameters

None

Description

Use multiple-topology ipv6-unicast to enable IPv6 IS-IS MTR. This command enables separate route calculation in IPv4 and IPv6 topologies.

Use undo multiple-topology ipv6-unicast to disable IPv6 IS-IS MTR.

By default, IPv6 IS-IS MTR is disabled.

Before you configure this command, you must enable IPv6 for the IS-IS process and set the cost style to wide, wide-compatible, or compatible for the system.

Examples

# Enable IPv6 IS-IS MTR.

<Sysname> system-view

[Sysname] isis 1

[Sysname-isis-1] multiple-topology ipv6-unicast

 

  • Cloud & AI
  • InterConnect
  • Intelligent Computing
  • Security
  • SMB Products
  • Intelligent Terminal Products
  • Product Support Services
  • Technical Service Solutions
All Services
  • Resource Center
  • Policy
  • Online Help
All Support
  • Become A Partner
  • Partner Policy & Program
  • Global Learning
  • Partner Sales Resources
  • Partner Business Management
  • Service Business
All Partners
  • Profile
  • News & Events
  • Online Exhibition Center
  • Contact Us
All About Us
新华三官网