06-Layer 3—IP Routing Command Reference

HomeSupportRoutersCR16000-M SeriesReference GuidesCommand ReferencesH3C CR16000-M Routers Command Reference-R838x-6W10106-Layer 3—IP Routing Command Reference
01-Basic IP routing commands
Title Size Download
01-Basic IP routing commands 837.49 KB

Contents

Basic IP routing commands· 1

address-family ipv4· 1

address-family ipv6· 1

display ip routing-table· 2

display ip routing-table acl 10

display ip routing-table ip-address· 14

display ip routing-table prefix-list 18

display ip routing-table protocol 20

display ip routing-table record· 22

display ip routing-table statistics· 29

display ip routing-table summary· 31

display ipv6 rib attribute· 32

display ipv6 rib graceful-restart 33

display ipv6 rib nib· 34

display ipv6 rib nib record· 36

display ipv6 route-direct nib· 39

display ipv6 routing-table· 41

display ipv6 routing-table acl 51

display ipv6 routing-table ipv6-address· 56

display ipv6 routing-table prefix-list 59

display ipv6 routing-table protocol 61

display ipv6 routing-table record· 63

display ipv6 routing-table statistics· 66

display ipv6 routing-table summary· 69

display rib attribute· 70

display rib graceful-restart 71

display rib nib· 73

display rib nib record· 80

display route-direct nib· 88

fib lifetime· 94

flush route-attribute· 94

inter-protocol ecmp· 95

inter-protocol fast-reroute· 96

ipv6 route-direct track· 97

maintenance-probe enable· 98

nexthop recursive-lookup restrain· 99

nexthop recursive-lookup restrain clear-interval 101

nexthop recursive-lookup restrain disable· 101

primary-path-detect bfd· 102

protocol lifetime· 104

protocol nexthop recursive-lookup· 105

record-limit 105

reset ip routing-table record· 107

reset ip routing-table statistics protocol 107

reset ipv6 rib nib record· 108

reset ipv6 routing-table record· 108

reset ipv6 routing-table statistics protocol 109

reset rib nib record· 109

rib· 110

route-direct track· 110

routing-table limit 112

snmp-agent trap enable ipv6 rib· 112

 


Basic IP routing commands

address-family ipv4

Use address-family ipv4 to create the RIB IPv4 address family and enter its view, or enter the view of the existing RIB IPv4 address family.

Use undo address-family ipv4 to delete the RIB IPv4 address family and all configurations in the view.

Syntax

address-family ipv4

undo address-family ipv4

Default

No RIB IPv4 address family exists.

Views

RIB view

Predefined user roles

network-admin

Examples

# Create the RIB IPv4 address family and enter its view.

<Sysname> system-view

[Sysname] rib

[Sysname-rib] address-family ipv4

[Sysname-rib-ipv4]

address-family ipv6

Use address-family ipv6 to create the RIB IPv6 address family and enter its view, or enter the view of the existing RIB IPv6 address family.

Use undo address-family ipv6 to delete the RIB IPv6 address family and all configurations in the view.

Syntax

address-family ipv6

undo address-family ipv6

Default

No RIB IPv6 address family exists.

Views

RIB view

Predefined user roles

network-admin

Examples

# Create the RIB IPv6 address family and enter its view.

<Sysname> system-view

[Sysname] rib

[Sysname-rib] address-family ipv6

[Sysname-rib-ipv6]

display ip routing-table

Use display ip routing-table to display routing table information.

Syntax

display ip routing-table [ all-vpn-instance | vpn-instance vpn-instance-name ] [ priority { critical | high | low | medium } ] [ verbose ]

display ip routing-table all-routes

display ip routing-table [ vpn-instance vpn-instance-name ] fast-reroute

Views

Any view

Predefined user roles

network-admin

network-operator

Parameters

all-vpn-instance: Displays routing table information for all VPN instances.

vpn-instance vpn-instance-name: Specifies an MPLS L3VPN instance by its name, a case-sensitive string of 1 to 31 characters.

priority { critical | high | low | medium }: Specifies a route convergence priority. To display route information with the critical priority, specify the critical keyword. To display route information with the high priority, specify the high keyword. To display route information with the low priority, specify the low keyword. To display route information with the medium priority, specify the medium keyword. If you do not specify any of the keywords, this command displays route information with all priorities.

all-routes: Displays routing table information for the public network and all VPN instances.

verbose: Displays detailed routing table information, including information about both active and inactive routes. If you do not specify this keyword, the command displays only brief information about active routes.

fast-reroute: Displays fast reroute routing table information.

Usage guidelines

If you do not specify any parameters, this command displays routing table information for the public network, excluding fast reroute routing table information.

Examples

# Display brief information about active routes in the public network.

<Sysname> display ip routing-table

 

Destinations : 8        Routes : 8

 

Destination/Mask    Proto  Pre  Cost         NextHop         Interface

0.0.0.0/32          Direct 0    0            127.0.0.1       InLoop0

1.1.1.0/24          Static 60   0            192.168.47.4    XGE3/0/1

127.0.0.0/8         Direct 0    0            127.0.0.1       InLoop0

127.0.0.0/32        Direct 0    0            127.0.0.1       InLoop0

127.0.0.1/32        Direct 0    0            127.0.0.1       InLoop0

127.255.255.255/32  Direct 0    0            127.0.0.1       InLoop0

192.168.1.40/32     Direct 0    0            127.0.0.1       InLoop0

255.255.255.255/32  Direct 0    0            127.0.0.1       InLoop0

# Display brief information about active routes in the routing table for the public network and all VPN instances.

<Sysname> display ip routing-table all-routes

 

VPN instance: public instance

Destinations : 8        Routes : 8

 

Destination/Mask    Proto  Pre  Cost         NextHop         Interface

0.0.0.0/32          Direct 0    0            127.0.0.1       InLoop0

1.1.1.0/24          Static 60   0            192.168.47.4    XGE3/0/1

127.0.0.0/8         Direct 0    0            127.0.0.1       InLoop0

127.0.0.0/32        Direct 0    0            127.0.0.1       InLoop0

127.0.0.1/32        Direct 0    0            127.0.0.1       InLoop0

127.255.255.255/32  Direct 0    0            127.0.0.1       InLoop0

192.168.1.40/32     Direct 0    0            127.0.0.1       InLoop0

255.255.255.255/32  Direct 0    0            127.0.0.1       InLoop0

 

VPN instance: vpn1

Destinations : 5        Routes : 5

 

Destination/Mask    Proto  Pre  Cost         NextHop         Interface

0.0.0.0/32          Direct 0    0            127.0.0.1       InLoop0

1.1.2.0/24          Static 60   0            2.2.1.1         XGE3/0/1

3.3.1.0/24          BGP    255  0            55.1.1.2        XGE3/0/2

127.0.0.0/8         Direct 0    0            127.0.0.1       InLoop0

255.255.255.255/32  Direct 0    0            127.0.0.1       InLoop0

# Display IPv4 routing table information for all VPN instances.

<Sysname> display ip routing-table all-vpn-instance

 

VPN instance: vpn1

Destinations : 5        Routes : 5

 

Destination/Mask    Proto  Pre  Cost         NextHop         Interface

0.0.0.0/32          Direct 0    0            127.0.0.1       InLoop0

1.1.2.0/24          Static 60   0            2.2.1.1         XGE3/0/1

3.3.1.0/24          BGP    255  0            55.1.1.2        XGE3/0/2

127.0.0.0/8         Direct 0    0            127.0.0.1       InLoop0

255.255.255.255/32  Direct 0    0            127.0.0.1       InLoop0

 

VPN instance: vpn2

Destinations : 4        Routes : 4

 

Destination/Mask    Proto  Pre  Cost         NextHop         Interface

0.0.0.0/32          Direct 0    0            127.0.0.1       InLoop0

1.1.3.0/24          Static 60   0            3.3.1.1         XGE3/0/1

127.0.0.0/8         Direct 0    0            127.0.0.1       InLoop0

255.255.255.255/32  Direct 0    0            127.0.0.1       InLoop0

Table 1 Command output

Field

Description

VPN instance

Public network or VPN instance to which the routing table belongs. For the public network, this filed displays public instance. For a VPN instance, this field displays the name of the instance.

Destinations

Number of destination addresses.

Routes

Number of routes.

Destination/Mask

Destination address/mask length.

Proto

Route type or protocol that installed the route:

·     Direct—Direct route.

·     Static—Static route.

·     UNR—User network route.

·     RIP—RIP installed the route.

·     O_INTRA—OSPF intra-area route.

·     O_ASE2—OSPF Type-2 external route.

·     IS_L1—Level-1 IS-IS IPv4 route.

·     IS_L2—Level-2 IS-IS IPv4 route.

·     BGP—BGP installed the route.

·     EIGRP—EIGRP installed the route.

·     LISP—LISP installed the route.

Pre

Preference of the route.

Cost

Cost of the route.

NextHop

Next hop address of the route.

Interface

Output interface for packets to be forwarded along the route.

Summary count

Number of routes.

 

# Display detailed information about all routes in the public network.

<Sysname> display ip routing-table verbose

 

Destinations : 4        Routes : 4

 

 Destination: 0.0.0.0/32

    Protocol: Direct

  Process ID: 0

   SubProtID: 0x0                       Age: 08h34m37s

  FlushedAge: 15h28m49s

        Cost: 0                  Preference: 0

       IpPre: N/A                QosLocalID: N/A

         Tag: 0                       State: Active NoAdv

   OrigTblID: 0x0                   OrigVrf: default-vrf

     TableID: 0x2                    OrigAs: 0

       NibID: 0x10000000             LastAs: 0

      AttrID: 0xffffffff

    BkAttrID: 0xffffffff           Neighbor: 0.0.0.0

       Flags: 0x1000c           OrigNextHop: 127.0.0.1

       Label: NULL              RealNextHop: 127.0.0.1

     BkLabel: NULL                BkNextHop: N/A

     SRLabel: NULL                Interface: InLoopBack0

   BkSRLabel: NULL              BkInterface: N/A

   Tunnel ID: Invalid           IPInterface: InLoopBack0

 BkTunnel ID: Invalid         BkIPInterface: N/A

     InLabel: NULL           ColorInterface: N/A

    SIDIndex: NULL         BkColorInterface: N/A

    FtnIndex: 0x0           TunnelInterface: N/A

TrafficIndex: N/A         BkTunnelInterface: N/A

   Connector: N/A                    PathID: 0x0

      UserID: 0x0                SRTunnelID: Invalid

    SID Type: N/A                       NID: Invalid

    FlushNID: Invalid                 BkNID: Invalid

  BkFlushNID: Invalid             StatFlags: 0x0

         SID: N/A

       BkSID: N/A

CommBlockLen: 0                    Priority: Critical

  MemberPort: N/A

 

 Destination: 1.1.1.0/24

    Protocol: Static

  Process ID: 0

   SubProtID: 0x0                       Age: 04h20m37s

  FlushedAge: 15h28m49s

        Cost: 0                  Preference: 60

       IpPre: N/A                QosLocalID: N/A

         Tag: 0                       State: Active Adv

   OrigTblID: 0x0                   OrigVrf: default-vrf

     TableID: 0x2                    OrigAs: 0

       NibID: 0x10000003             LastAs: 0

      AttrID: 0xffffffff

    BkAttrID: 0xffffffff           Neighbor: 0.0.0.0

       Flags: 0x1008c           OrigNextHop: 192.168.47.4

       Label: NULL              RealNextHop: 192.168.47.4

     BkLabel: NULL                BkNextHop: N/A

     SRLabel: NULL                Interface: Ten-GigabitEthernet3/0/1

   BkSRLabel: NULL              BkInterface: N/A

   Tunnel ID: Invalid           IPInterface: Ten-GigabitEthernet3/0/1

 BkTunnel ID: Invalid         BkIPInterface: N/A

     InLabel: NULL           ColorInterface: N/A

    SIDIndex: NULL         BkColorInterface: N/A

    FtnIndex: 0x0           TunnelInterface: N/A

TrafficIndex: N/A         BkTunnelInterface: N/A

   Connector: N/A                    PathID: 0x0

      UserID: 0x0                SRTunnelID: Invalid

    SID Type: N/A                       NID: Invalid

    FlushNID: Invalid                 BkNID: Invalid

  BkFlushNID: Invalid             StatFlags: 0x0

         SID: N/A

       BkSID: N/A

CommBlockLen: 0                    Priority: Critical

  MemberPort: N/A

 

 Destination: 1.1.1.0/24

    Protocol: Static

  Process ID: 0

   SubProtID: 0x0                       Age: 04h20m37s

  FlushedAge: 15h28m49s

        Cost: 0                  Preference: 60

       IpPre: N/A                QosLocalID: N/A

         Tag: 0                       State: Active Adv Derived

   OrigTblID: 0x0                   OrigVrf: default-vrf

     TableID: 0x2                    OrigAs: 0

       NibID: 0x10000003             LastAs: 0

      AttrID: 0xffffffff

    BkAttrID: 0xffffffff           Neighbor: 0.0.0.0

       Flags: 0x1008c           OrigNextHop: 192.168.47.4

       Label: NULL              RealNextHop: 125.2.1.1

     BkLabel: NULL                BkNextHop: N/A

     SRLabel: NULL                Interface: Ten-GigabitEthernet3/0/2

   BkSRLabel: NULL              BkInterface: N/A

   Tunnel ID: Invalid           IPInterface: Ten-GigabitEthernet3/0/2

 BkTunnel ID: Invalid         BkIPInterface: N/A

     InLabel: NULL           ColorInterface: N/A

    SIDIndex: NULL         BkColorInterface: N/A

    FtnIndex: 0x0           TunnelInterface: N/A

TrafficIndex: N/A         BkTunnelInterface: N/A

   Connector: N/A                    PathID: 0x0

      UserID: 0x0                SRTunnelID: Invalid

    SID Type: N/A                       NID: Invalid

    FlushNID: Invalid                 BkNID: Invalid

  BkFlushNID: Invalid             StatFlags: 0x0

         SID: N/A

       BkSID: N/A

CommBlockLen: 0                    Priority: Critical

  MemberPort: N/A

 

...

# Display detailed routing table information for all VPN instances.

<Sysname> display ip routing-table all-vpn-instance verbose

 

VPN instance: vpn1

Destinations : 1        Routes : 1

 

 Destination: 0.0.0.0/32

    Protocol: Direct

  Process ID: 0

   SubProtID: 0x0                       Age: 08h34m37s

  FlushedAge: 15h28m49s

        Cost: 0                  Preference: 0

       IpPre: N/A                QosLocalID: N/A

         Tag: 0                       State: Active NoAdv

   OrigTblID: 0x0                   OrigVrf: vpn1

     TableID: 0x2                    OrigAs: 0

       NibID: 0x10000000             LastAs: 0

      AttrID: 0xffffffff

    BkAttrID: 0xffffffff           Neighbor: 0.0.0.0

       Flags: 0x1000c           OrigNextHop: 127.0.0.1

       Label: NULL              RealNextHop: 127.0.0.1

     BkLabel: NULL                BkNextHop: N/A

     SRLabel: NULL                Interface: InLoopBack0

   BkSRLabel: NULL              BkInterface: N/A

   Tunnel ID: Invalid           IPInterface: InLoopBack0

 BkTunnel ID: Invalid         BkIPInterface: N/A

     InLabel: NULL           ColorInterface: N/A

    SIDIndex: NULL         BkColorInterface: N/A

    FtnIndex: 0x0           TunnelInterface: N/A

TrafficIndex: N/A         BkTunnelInterface: N/A

   Connector: N/A                    PathID: 0x0

      UserID: 0x0                SRTunnelID: Invalid

    SID Type: N/A                       NID: Invalid

    FlushNID: Invalid                 BkNID: Invalid

  BkFlushNID: Invalid             StatFlags: 0x0

         SID: N/A

       BkSID: N/A

CommBlockLen: 0                    Priority: Critical

  MemberPort: N/A

 

VPN instance: vpn2

Destinations : 1        Routes : 1

 

 Destination: 1.1.1.0/24

    Protocol: Static

  Process ID: 0

   SubProtID: 0x0                       Age: 04h20m37s

  FlushedAge: 15h28m49s

        Cost: 0                  Preference: 60

       IpPre: N/A                QosLocalID: N/A

         Tag: 0                       State: Active Adv

   OrigTblID: 0x0                   OrigVrf: vpn2

     TableID: 0x2                    OrigAs: 0

       NibID: 0x10000003             LastAs: 0

      AttrID: 0xffffffff

    BkAttrID: 0xffffffff           Neighbor: 0.0.0.0

       Flags: 0x1008c           OrigNextHop: 192.168.47.4

       Label: NULL              RealNextHop: 192.168.47.4

     BkLabel: NULL                BkNextHop: N/A

     SRLabel: NULL                Interface: Ten-GigabitEthernet3/0/1

   BkSRLabel: NULL              BkInterface: N/A

    SIDIndex: NULL                  InLabel: NULL

   Tunnel ID: Invalid           IPInterface: Ten-GigabitEthernet3/0/1

 BkTunnel ID: Invalid         BkIPInterface: N/A

     InLabel: NULL           ColorInterface: N/A

    SIDIndex: NULL         BkColorInterface: N/A

    FtnIndex: 0x0           TunnelInterface: N/A

TrafficIndex: N/A         BkTunnelInterface: N/A

   Connector: N/A                    PathID: 0x0

      UserID: 0x0                SRTunnelID: Invalid

    SID Type: N/A                       NID: Invalid

    FlushNID: Invalid                 BkNID: Invalid

  BkFlushNID: Invalid             StatFlags: 0x0

         SID: N/A

       BkSID: N/A

CommBlockLen: 0                    Priority: Critical

  MemberPort: N/A

 

...

Table 2 Command output

Field

Description

VPN instance

Public network or VPN instance to which the routing table belongs. For the public network, this filed displays public instance. For a VPN instance, this field displays the name of the instance.

Destinations

Number of destination addresses.

Routes

Number of routes.

Destination

Destination address/mask length.

Protocol

Protocol that installed the route.

SubProtID

ID of the subprotocol for routing.

Age

Time for which the route has been in the routing table.

FlushedAge

Time for which the route has been flushed to the FIB.

Cost

Cost of the route.

Preference

Preference of the route.

IpPre

IP precedence.

QosLocalID

Local QoS ID.

Tag

Route tag.

State

Route status:

·     Active—Active unicast route.

·     Adv—Route that can be advertised.

·     Inactive—Inactive route.

·     NoAdv—Route that the router is not allowed to advertise.

·     Vrrp—Routes generated by VRRP.

·     Nat—Routes generated by NAT.

·     TunE—Tunnel.

·     Derived—Derived route. If a route recurses to multiple related routes, all related routes except the first one are derived routes. The number of derived routes is not included in the total number of routes.

·     Backup—Backup route.

OrigTblID

Original routing table ID.

OrigVrf

Original VPN instance to which the route belongs. This field displays default-vrf if the route is on the public network.

TableID

ID of the routing table.

OrigAs

Original AS number.

NibID

ID of the next hop.

LastAs

Last AS number.

AttrID

Attribute ID.

BkAttrID

Attribute ID of the backup route.

This field displays only the attribute ID of the backup route added by BGP to the IP routing table.

Neighbor

Address of the neighbor determined by the routing protocol.

Flags

Flags of the route.

OrigNextHop

Next hop address of the route.

RealNextHop

Real next hop of the route.

BkLabel

Backup label.

BkNexthop

Backup next hop.

SRLabel

Segment routing (SR) label.

Interface

Output interface for packets to be forwarded along the route.

BkSRLabel

Backup SR label.

BkInterface

Backup output interface.

Tunnel ID

Tunnel ID

IPInterface

IP output interface.

BkTunnel ID

Backup tunnel ID.

BkIPInterface

Backup IP output interface.

InLabel

Incoming label of the route.

ColorInterface

Output interface recursed by an SR-MPLS TE policy or SRv6 TE policy.

SIDIndex

SID index value.

BkColorInterface

Backup output interface recursed by an SR-MPLS TE policy or SRv6 TE policy.

FtnIndex

Index of the FTN entry.

TunnelInterface

Output tunnel interface.

TrafficIndex

Traffic index in the range of 1 to 64. This field displays N/A when the value is invalid.

BkTunnelInterface

Backup output tunnel interface.

Connector

BGP connector attribute exchanged between BGP peers along with a VPN IPv4 route. The value of the attribute is the IP address of the remote PE device. The BGP connector attribute is used for MD VPN. This field displays N/A if the BGP connector attribute is not supported.

Summary count

Number of routes.

PathID

Path ID.

UserID

Access user ID.

SRTunnelID

SR tunnel ID.

SID Type

This field is not supported in the current software version.

SID type. If the route does not have an SID, this field displays N/A.

NID

Index of the Next Hop Label Forwarding Entry (Next Hop Label Forwarding Entry) flushed by the routing protocol.

FlushNID

Index of the NHLFE flushed to the FIB.

BkNID

Index of the backup NHLFE flushed by the routing protocol.

BkFlushNID

Index of the backup NHLFE flushed to the FIB.

StatFlags

Flags for SRv6 traffic statistics.

SID

Primary Segment Identifier (SID).

If no primary SID is available, this field displays N/A.

BkSID

Backup SID.

If no backup SID is available, this field displays N/A.

CommBlockLen

Common prefix length in the locator.

Priority

Convergence priority of the route:

·     Critical.

·     High.

·     Medium.

·     Low.

MemberPort

Number of a member port in an aggregation group.

If this attribute is not available, this field displays N/A.

display ip routing-table acl

Use display ip routing-table acl to display information about routes permitted by a basic ACL.

Syntax

display ip routing-table [ vpn-instance vpn-instance-name ] acl ipv4-acl-number [ verbose ]

Views

Any view

Predefined user roles

network-admin

network-operator

Parameters

vpn-instance vpn-instance-name: Specifies an MPLS L3VPN instance by its name, a case-sensitive string of 1 to 31 characters. If you do not specify a VPN instance, the command displays routing information for the public network.

ipv4-acl-number: Specifies a basic ACL by its number in the range of 2000 to 2999.

verbose: Displays detailed information about all routes permitted by the basic ACL. If you do not specify this keyword, the command displays only brief information about active routes permitted by the basic ACL.

Usage guidelines

When you specify an ACL, follow these restrictions and guidelines:

·     If the specified ACL does not exist or does not have any rules, the command displays information about all routes.

·     If you specify the vpn-instance keyword for an ACL rule, the ACL rule will not take effect.

Examples

# Define basic ACL 2000 and set the route filtering rules.

<Sysname> system-view

[Sysname] acl basic 2000

[Sysname-acl-ipv4-basic-2000] rule permit source 192.168.1.0 0.0.0.255

[Sysname-acl-ipv4-basic-2000] rule deny source any

# Display brief information about active routes permitted by basic ACL 2000.

[Sysname-acl-ipv4-basic-2000] display ip routing-table acl 2000

 

Summary count : 4

 

Destination/Mask    Proto  Pre  Cost         NextHop         Interface

192.168.1.0/24      Direct 0    0            192.168.1.111   XGE3/0/1

192.168.1.0/32      Direct 0    0            192.168.1.111   XGE3/0/1

192.168.1.111/32    Direct 0    0            127.0.0.1       InLoop0

192.168.1.255/32    Direct 0    0            192.168.1.111   XGE3/0/1

For descriptions about the command output, see Table 1.

# Display detailed information about all routes permitted by basic ACL 2000.

<Sysname> display ip routing-table acl 2000 verbose

 

Summary count : 4

 

 Destination: 192.168.1.0/24

    Protocol: Direct

  Process ID: 0

   SubProtID: 0x1                       Age: 04h20m37s

  FlushedAge: 15h28m49s

        Cost: 0                  Preference: 0

       IpPre: N/A                QosLocalID: N/A

         Tag: 0                       State: Active Adv

   OrigTblID: 0x0                   OrigVrf: default-vrf

     TableID: 0x2                    OrigAs: 0

       NibID: 0x10000003             LastAs: 0

      AttrID: 0xffffffff

    BkAttrID: 0xffffffff           Neighbor: 0.0.0.0

       Flags: 0x10080           OrigNextHop: 192.168.1.111

       Label: NULL              RealNextHop: 192.168.1.111

     BkLabel: NULL                BkNextHop: N/A

     SRLabel: NULL                Interface: Ten-GigabitEthernet3/0/1

   BkSRLabel: NULL              BkInterface: N/A

   Tunnel ID: Invalid           IPInterface: Ten-GigabitEthernet3/0/1

 BkTunnel ID: Invalid         BkIPInterface: N/A

     InLabel: NULL           ColorInterface: N/A

    SIDIndex: NULL         BkColorInterface: N/A

    FtnIndex: 0x0           TunnelInterface: N/A

TrafficIndex: N/A         BkTunnelInterface: N/A

   Connector: N/A                    PathID: 0x0

      UserID: 0x0                SRTunnelID: Invalid

    SID Type: N/A                       NID: Invalid

    FlushNID: Invalid                 BkNID: Invalid

  BkFlushNID: Invalid             StatFlags: 0x0

         SID: N/A

       BkSID: N/A

CommBlockLen: 0                    Priority: Critical

  MemberPort: N/A

 

 Destination: 192.168.1.0/32

    Protocol: Direct

  Process ID: 0

   SubProtID: 0x0                       Age: 04h20m37s

  FlushedAge: 15h28m49s

        Cost: 0                  Preference: 0

       IpPre: N/A                QosLocalID: N/A

         Tag: 0                       State: Active NoAdv

   OrigTblID: 0x0                   OrigVrf: default-vrf

     TableID: 0x2                    OrigAs: 0

       NibID: 0x10000003             LastAs: 0

      AttrID: 0xffffffff

    BkAttrID: 0xffffffff           Neighbor: 0.0.0.0

       Flags: 0x1008c           OrigNextHop: 192.168.1.111

       Label: NULL              RealNextHop: 192.168.1.111

     BkLabel: NULL                BkNextHop: N/A

     SRLabel: NULL                Interface: Ten-GigabitEthernet3/0/1

   BkSRLabel: NULL              BkInterface: N/A

   Tunnel ID: Invalid           IPInterface: Ten-GigabitEthernet3/0/1

 BkTunnel ID: Invalid         BkIPInterface: N/A

     InLabel: NULL           ColorInterface: N/A

    SIDIndex: NULL         BkColorInterface: N/A

    FtnIndex: 0x0           TunnelInterface: N/A

TrafficIndex: N/A         BkTunnelInterface: N/A

   Connector: N/A                    PathID: 0x0

      UserID: 0x0                SRTunnelID: Invalid

    SID Type: N/A                       NID: Invalid

    FlushNID: Invalid                 BkNID: Invalid

  BkFlushNID: Invalid             StatFlags: 0x0

         SID: N/A

       BkSID: N/A

CommBlockLen: 0                    Priority: Critical

  MemberPort: N/A

 

 Destination: 192.168.1.111/32

    Protocol: Direct

  Process ID: 0

   SubProtID: 0x1                       Age: 04h20m37s

  FlushedAge: 15h28m49s

        Cost: 0                  Preference: 0

       IpPre: N/A                QosLocalID: N/A

         Tag: 0                       State: Active NoAdv

   OrigTblID: 0x0                   OrigVrf: default-vrf

     TableID: 0x2                    OrigAs: 0

       NibID: 0x10000000             LastAs: 0

      AttrID: 0xffffffff

    BkAttrID: 0xffffffff           Neighbor: 0.0.0.0

       Flags: 0x10004           OrigNextHop: 127.0.0.1

       Label: NULL              RealNextHop: 127.0.0.1

     BkLabel: NULL                BkNextHop: N/A

     SRLabel: NULL                Interface: InLoopBack0

   BkSRLabel: NULL              BkInterface: N/A

   Tunnel ID: Invalid           IPInterface: InLoopBack0

 BkTunnel ID: Invalid         BkIPInterface: N/A

     InLabel: NULL           ColorInterface: N/A

    SIDIndex: NULL         BkColorInterface: N/A

    FtnIndex: 0x0           TunnelInterface: N/A

TrafficIndex: N/A         BkTunnelInterface: N/A

   Connector: N/A                    PathID: 0x0

      UserID: 0x0                SRTunnelID: Invalid

    SID Type: N/A                       NID: Invalid

    FlushNID: Invalid                 BkNID: Invalid

  BkFlushNID: Invalid             StatFlags: 0x0

         SID: N/A

       BkSID: N/A

CommBlockLen: 0                    Priority: Critical

  MemberPort: N/A

 

 Destination: 192.168.1.255/32

    Protocol: Direct

  Process ID: 0

   SubProtID: 0x0                       Age: 04h20m37s

  FlushedAge: 15h28m49s

        Cost: 0                  Preference: 0

       IpPre: N/A                QosLocalID: N/A

         Tag: 0                       State: Active NoAdv

   OrigTblID: 0x0                   OrigVrf: default-vrf

     TableID: 0x2                    OrigAs: 0

       NibID: 0x10000003             LastAs: 0

      AttrID: 0xffffffff

    BkAttrID: 0xffffffff           Neighbor: 0.0.0.0

       Flags: 0x1008c           OrigNextHop: 192.168.1.111

       Label: NULL              RealNextHop: 192.168.1.111

     BkLabel: NULL                BkNextHop: N/A

     SRLabel: NULL                Interface: Ten-GigabitEthernet3/0/1

   BkSRLabel: NULL              BkInterface: N/A

   Tunnel ID: Invalid           IPInterface: Ten-GigabitEthernet3/0/1

 BkTunnel ID: Invalid         BkIPInterface: N/A

     InLabel: NULL           ColorInterface: N/A

    SIDIndex: NULL         BkColorInterface: N/A

    FtnIndex: 0x0           TunnelInterface: N/A

TrafficIndex: N/A         BkTunnelInterface: N/A

   Connector: N/A                    PathID: 0x0

      UserID: 0x0                SRTunnelID: Invalid

    SID Type: N/A                       NID: Invalid

    FlushNID: Invalid                 BkNID: Invalid

  BkFlushNID: Invalid             StatFlags: 0x0

         SID: N/A

       BkSID: N/A

CommBlockLen: 0                    Priority: Critical

  MemberPort: N/A

For descriptions about the command output, see Table 2.

display ip routing-table ip-address

Use display ip routing-table ip-address to display information about routes to a specific destination address.

Use display ip routing-table ip-address1 to ip-address2 to display information about routes to a range of destination addresses.

Syntax

display ip routing-table [ vpn-instance vpn-instance-name ] ip-address [ mask-length | mask ] [ longer-match ] [ verbose ]

display ip routing-table [ vpn-instance vpn-instance-name ] ip-address1 to ip-address2 [ verbose ]

display ip routing-table [ vpn-instance vpn-instance-name ] fast-reroute ip-address [ mask-length | mask ]

Views

Any view

Predefined user roles

network-admin

network-operator

Parameters

vpn-instance vpn-instance-name: Specifies an MPLS L3VPN instance by its name, a case-sensitive string of 1 to 31 characters. If you do not specify a VPN instance, the command displays routing information for the public network.

ip-address: Specifies a destination IP address in dotted decimal notation.

mask-length: Specifies the mask length, an integer in the range of 0 to 32.

mask: Specifies the IP address mask in dotted decimal notation.

longer-match: Displays the route entries that meet the matching rules as described in the usage guidelines.

ip-address1 to ip-address2: Specifies a destination IP address range.

verbose: Displays detailed routing table information, including information about both active and inactive routes. If you do not specify this keyword, the command displays brief information about active routes.

fast-reroute: Displays fast reroute routing table information.

Usage guidelines

Executing the command with different parameters yields different outputs.

·     display ip routing-table ip-address

¡     The system ANDs the entered destination IP address with the subnet mask in each active route entry.

¡     The system ANDs the destination IP address in each active route entry with its own subnet mask.

If the two operations yield the same result for an entry, the entry is displayed.

·     display ip routing-table ip-address mask

¡     The system ANDs the entered destination IP address with the entered subnet mask.

¡     The system ANDs the destination IP address in each active route entry with the entered subnet mask.

If the two operations yield the same result for an entry with a subnet mask not greater than the entered subnet mask, the entry is displayed.

·     display ip routing-table ip-address longer-match

¡     The system ANDs the entered destination IP address with the subnet mask in the following way:

-     If the entered IP address belongs to class A, B, or C, the system ANDs it with the default subnet mask of the corresponding class.

-     If the entered IP address is 0.0.0.0, the system ANDs it with the subnet mask 0.0.0.0.

-     Except the previous cases, for example, if the entered IP address is a multicast address or loopback address, the system ANDs it with the subnet mask 255.255.255.255.

¡     The system ANDs the destination IP address in each active route entry with the subnet mask of the entered IP address.

If the two operations yield the same result for multiple entries, all the entries are displayed.

·     display ip routing-table ip-address mask longer-match

¡     The system ANDs the entered destination IP address with the entered subnet mask.

¡     The system ANDs the destination IP address in each active route entry with the entered subnet mask.

If the two operations yield the same result for multiple entries, all the entries are displayed.

·     display ip routing-table ip-address1 to ip-address2

The system displays active route entries with destinations in the range of ip-address1/32 to ip-address2/32.

Examples

# Display brief information about the routes to the destination IP address 11.0.0.1.

<Sysname> display ip routing-table 11.0.0.1

 

Summary count : 3

 

Destination/Mask    Proto  Pre  Cost         NextHop         Interface

11.0.0.0/8          Static 60   0            0.0.0.0         NULL0

11.0.0.0/16         Static 60   0            0.0.0.0         NULL0

11.0.0.0/24         Static 60   0            0.0.0.0         NULL0

# Display brief information about the routes to the destination IP address 11.0.0.1 with mask length 20.

<Sysname> display ip routing-table 11.0.0.1 20

 

Summary count : 2

 

Destination/Mask    Proto  Pre  Cost         NextHop         Interface

11.0.0.0/8          Static 60   0            0.0.0.0         NULL0

11.0.0.0/16         Static 60   0            0.0.0.0         NULL0

# Display brief information about the routes to the destination IP address 11.0.0.1 with the default mask length for class A networks.

<Sysname> display ip routing-table 11.0.0.1 longer-match

 

Summary count : 3

 

Destination/Mask   Proto   Pre Cost        NextHop         Interface

11.0.0.0/8         Static  60  0           0.0.0.0         NULL0

11.0.0.0/16        Static  60  0           0.0.0.0         NULL0

11.0.0.0/24        Static  60  0           0.0.0.0         NULL0

# Display brief information about the routes to the destination IP address 11.0.0.1 with mask length 20.

<Sysname> display ip routing-table 11.0.0.1 20 longer-match

 

Summary count : 3

 

Destination/Mask   Proto   Pre Cost        NextHop         Interface

11.0.0.0/8         Static  60  0           0.0.0.0         NULL0

11.0.0.0/16        Static  60  0           0.0.0.0         NULL0

11.0.0.0/24        Static  60  0           0.0.0.0         NULL0

# Display brief information about the routes to destination addresses in the range of 1.1.1.0 to 5.5.5.0.

<Sysname> display ip routing-table 1.1.1.0 to 5.5.5.0

 

Summary count : 5

 

Destination/Mask    Proto  Pre  Cost         NextHop         Interface

1.1.1.1/32          Direct 0    0            127.0.0.1       InLoop0

3.3.3.0/24          Direct 0    0            3.3.3.1         XGE3/0/2

3.3.3.1/32          Direct 0    0            127.0.0.1       InLoop0

4.4.4.0/24          Direct 0    0            4.4.4.1         XGE3/0/1

4.4.4.1/32          Direct 0    0            127.0.0.1       InLoop0

For descriptions about the command output, see Table 1.

# Display fast reroute information about the routes to the destination IP address 3.3.3.3 with mask length 32.

<Sysname> display ip routing-table fast-reroute 3.3.3.3 32

 

Summary count : 1

 

Destination/Mask   Proto   Pre Cost        NextHop         Interface

3.3.3.3/32         Static  60  0           1.1.1.2         XGE3/0/1

                                           2.1.1.2         XGE3/0/2

For descriptions about the command output, see Table 1.

# Display detailed information about the routes to the destination IP address 1.2.3.4.

<Sysname> display ip routing-table 1.2.3.4 verbose

 

Summary count : 1

 

 Destination: 1.2.3.4/32

    Protocol: BGP instance test

  Process ID: 0

   SubProtID: 0x1                       Age: 00h00m37s

  FlushedAge: 15h28m49s

        Cost: 0                  Preference: 255

       IpPre: N/A                QosLocalID: N/A

         Tag: 0                       State: Active Adv

   OrigTblID: 0x0                   OrigVrf: default-vrf

     TableID: 0x2                    OrigAs: 200

       NibID: 0x15000000             LastAs: 200

      AttrID: 0x0

    BkAttrID: 0x0                  Neighbor: 192.168.47.2

       Flags: 0x10060           OrigNextHop: 192.168.47.2

       Label: NULL              RealNextHop: 192.168.47.2

     BkLabel: NULL                BkNextHop: N/A

     SRLabel: NULL                Interface: Ten-GigabitEthernet3/0/1

   BkSRLabel: NULL              BkInterface: N/A

   Tunnel ID: Invalid           IPInterface: Ten-GigabitEthernet3/0/1

 BkTunnel ID: Invalid         BkIPInterface: N/A

     InLabel: NULL           ColorInterface: N/A

    SIDIndex: NULL         BkColorInterface: N/A

    FtnIndex: 0x0           TunnelInterface: N/A

TrafficIndex: N/A         BkTunnelInterface: N/A

   Connector: N/A                    PathID: 0x0

      UserID: 0x0                SRTunnelID: Invalid

    SID Type: N/A                       NID: Invalid

    FlushNID: Invalid                 BkNID: Invalid

  BkFlushNID: Invalid             StatFlags: 0x0

         SID: N/A

       BkSID: N/A

CommBlockLen: 0                    Priority: Critical

  MemberPort: N/A

For descriptions about the command output, see Table 2.

display ip routing-table prefix-list

Use display ip routing-table prefix-list to display routes permitted by an IP prefix list.

Syntax

display ip routing-table [ vpn-instance vpn-instance-name ] prefix-list prefix-list-name [ verbose ]

Views

Any view

Predefined user roles

network-admin

network-operator

Parameters

vpn-instance vpn-instance-name: Specifies an MPLS L3VPN instance by its name, a case-sensitive string of 1 to 31 characters. If you do not specify a VPN instance, the command displays routing information for the public network.

prefix-list-name: Specifies an IP prefix list by its name, a case-sensitive string of 1 to 63 characters.

verbose: Displays detailed information about all routes permitted by the IP prefix list. If you do not specify this keyword, the command displays brief information about active routes permitted by the IP prefix list.

Usage guidelines

If the specified IP prefix list does not exist, the command displays information about all routes.

Examples

# Create an IP prefix list named test to permit the route 1.1.1.0/24.

<Sysname> system-view

[Sysname] ip prefix-list test permit 1.1.1.0 24

# Display brief information about the active route permitted by the IP prefix list.

[Sysname] display ip routing-table prefix-list test

 

Summary count : 1

 

Destination/Mask    Proto  Pre  Cost         NextHop         Interface

1.1.1.0/24          Direct 0    0            1.1.1.2         XGE3/0/2

For descriptions about the command output, see Table 1.

# Display detailed information about all routes permitted by the IP prefix list.

[Sysname] display ip routing-table prefix-list test verbose

 

Summary count : 1

 

 Destination: 1.1.1.0/24

    Protocol: Direct

  Process ID: 0

   SubProtID: 0x1                       Age: 04h20m37s

  FlushedAge: 15h28m49s

        Cost: 0                  Preference: 0

       IpPre: N/A                QosLocalID: N/A

         Tag: 0                       State: Active Adv

   OrigTblID: 0x0                   OrigVrf: default-vrf

     TableID: 0x2                    OrigAs: 0

       NibID: 0x10000003             LastAs: 0

      AttrID: 0xffffffff

    BkAttrID: 0xffffffff           Neighbor: 0.0.0.0

       Flags: 0x1008c           OrigNextHop: 1.1.1.2

       Label: NULL              RealNextHop: 1.1.1.2

     BkLabel: NULL                BkNextHop: N/A

     SRLabel: NULL                Interface: Ten-GigabitEthernet3/0/2

   BkSRLabel: NULL              BkInterface: N/A

   Tunnel ID: Invalid           IPInterface: Ten-GigabitEthernet3/0/2

 BkTunnel ID: Invalid         BkIPInterface: N/A

     InLabel: NULL           ColorInterface: N/A

    SIDIndex: NULL         BkColorInterface: N/A

    FtnIndex: 0x0           TunnelInterface: N/A

TrafficIndex: N/A         BkTunnelInterface: N/A

   Connector: N/A                    PathID: 0x0

      UserID: 0x0                SRTunnelID: Invalid

    SID Type: N/A                       NID: Invalid

    FlushNID: Invalid                 BkNID: Invalid

  BkFlushNID: Invalid             StatFlags: 0x0

         SID: N/A

       BkSID: N/A

CommBlockLen: 0                    Priority: Critical

  MemberPort: N/A

For descriptions about the command output, see Table 2.

display ip routing-table protocol

Use display ip routing-table protocol to display information about routes installed by a protocol.

Syntax

display ip routing-table [ vpn-instance vpn-instance-name ] protocol protocol [ fast-reroute | inactive | verbose ]

Views

Any view

Predefined user roles

network-admin

network-operator

Parameters

vpn-instance vpn-instance-name: Specifies an MPLS L3VPN instance by its name, a case-sensitive string of 1 to 31 characters. If you do not specify a VPN instance, the command displays routing information for the public network.

protocol: Specifies a routing protocol.

inactive: Displays information about inactive routes. If you do not specify this keyword, the command displays information about both active and inactive routes.

verbose: Displays detailed routing table information. If you do not specify this keyword, the command displays brief routing information.

fast-reroute: Displays fast reroute routing table information.

Examples

# Display brief information about direct routes in the public network.

<Sysname> display ip routing-table protocol direct

 

Summary count : 9

 

Direct Routing table status : <Active>

Summary count : 9

 

Destination/Mask    Proto  Pre  Cost         NextHop         Interface

0.0.0.0/32          Direct 0    0            127.0.0.1       InLoop0

127.0.0.0/8         Direct 0    0            127.0.0.1       InLoop0

127.0.0.0/32        Direct 0    0            127.0.0.1       InLoop0

127.0.0.1/32        Direct 0    0            127.0.0.1       InLoop0

127.255.255.255/32  Direct 0    0            127.0.0.1       InLoop0

192.168.80.0/24     Direct 0    0            192.168.80.10   XGE3/0/1

192.168.80.0/32     Direct 0    0            192.168.80.10   XGE3/0/1

192.168.80.10/32    Direct 0    0            127.0.0.1       InLoop0

192.168.80.255/32   Direct 0    0            192.168.80.10   XGE3/0/1

 

Direct Routing table status : <Inactive>

Summary count : 0

For descriptions about the command output, see Table 1.

# Display information about static routes in the public network.

<Sysname> display ip routing-table protocol static

 

Summary count : 1

 

Static Routing table status : <Active>

Summary count : 0

 

Static Routing table status : <Inactive>

Summary count : 1

 

Destination/Mask    Proto  Pre  Cost         NextHop        Interface

3.0.0.0/8           Static 60   0            2.2.2.2        XGE3/0/1

For descriptions about the command output, see Table 1.

# Display fast reroute information about static routes in the public network.

<Sysname> display ip routing-table protocol static fast-reroute

 

Destinations : 2        Routes : 2

 

Destination/Mask   Proto   Pre Cost        NextHop         Interface

3.3.3.3/32         Static  60  0           1.1.1.2         XGE3/0/1

                                           2.1.1.2         XGE3/0/2

4.4.4.4/32         Static  60  0           1.1.1.2         XGE3/0/1

                                           2.1.1.2         XGE3/0/2

For descriptions about the command output, see Table 1.

# Display detailed information about all BGP routes in the public network.

<Sysname> display ip routing-table protocol bgp verbose

 

Summary count : 1

 

 Destination: 1.1.1.2/32

    Protocol: BGP instance default

  Process ID: 0

   SubProtID: 0x6                       Age: 00h03m54s

  FlushedAge: 15h28m49s

        Cost: 0                  Preference: 255

       IpPre: N/A                QosLocalID: N/A

         Tag: 0                       State: Active Adv

   OrigTblID: 0x0                   OrigVrf: default-vrf

     TableID: 0x2                    OrigAs: 200

       NibID: 0x16000000             LastAs: 200

      AttrID: 0x0

    BkAttrID: 0x0                  Neighbor: 192.168.47.2

       Flags: 0x10060           OrigNextHop: 192.168.47.2

       Label: NULL              RealNextHop: 192.168.47.2

     BkLabel: NULL                BkNextHop: N/A

     SRLabel: NULL                Interface: Ten-GigabitEthernet3/0/1

   BkSRLabel: NULL              BkInterface: N/A

   Tunnel ID: Invalid           IPInterface: Ten-GigabitEthernet3/0/1

 BkTunnel ID: Invalid         BkIPInterface: N/A

     InLabel: NULL           ColorInterface: N/A

    SIDIndex: NULL         BkColorInterface: N/A

    FtnIndex: 0x0           TunnelInterface: N/A

TrafficIndex: N/A         BkTunnelInterface: N/A

   Connector: N/A                    PathID: 0x0

      UserID: 0x0                SRTunnelID: Invalid

    SID Type: N/A                       NID: Invalid

    FlushNID: Invalid                 BkNID: Invalid

  BkFlushNID: Invalid             StatFlags: 0x0

         SID: N/A

       BkSID: N/A

CommBlockLen: 0                    Priority: Critical

  MemberPort: N/A

For descriptions about the command output, see Table 2.

display ip routing-table record

Use display ip routing-table record to display IPv4 route entry records.

Syntax

display ip routing-table record flush [ delete | update ] [ verbose ]

display ip routing-table record notify [ delete | update ] [ verbose ]

display ip routing-table record receive [ add | delete | update ] [ verbose ]

Views

Any view

Predefined user roles

network-admin

network-operator

Parameters

flush: Displays the records for the route entries issued by the RIB to the FIB.

notify: Displays the records for the route entries notified by the RIB to the routing protocol.

receive: Displays the records for the route entries received by the RIB from the routing protocol.

add: Displays the records for the added route entries.

delete: Displays the records for the deleted route entries.

update: Displays the records for the updated route entries. If you specify the flush or notify keyword, the system takes added route entries as updated route entries when displaying the associated records.

verbose: Displays detailed information about IPv4 route entry records. If you do not specify this keyword, the command displays only brief information about IPv4 route entry records.

Usage guidelines

If you do not specify the add, delete, or update keyword, the command displays records for the added, deleted, and updated route entries.

When the system enters the level-1 memory threshold alarm status, it stops recording new route entry information. When the system enters the level-3 memory threshold alarm status, it clears existing route entry records. When the system exits the level-1 memory threshold alarm status, it starts recording new route entry information again.

Examples

# Display brief information about the records for the route entries issued by the RIB to the FIB.

<Sysname> display ip routing-table record flush

 

Total number of records: 2

 

Date   Time         Action Destination/Mask/VNID/Vrf

210907 15:38:50:961 update 200.0.0.0/24/0x111000000/default-vrf

210907 15:40:13:331 delete 200.0.0.0/24/0x0/default-vrf

Table 3 Command output

Field

Description

Total number of records

Total number of route entry records.

Date

Date when a record was generated.

Time

Time when the record was generated.

Action

Action on the route entry in the record:

·     update.

·     delete.

Destination

Destination address.

Mask

Mask length.

VNID

VN entry ID.

Vrf

Name of the VPN instance to which the route belongs. If the route belongs to the public network, this field displays default-vrf.

 

# Display detailed information about the records for the updated route entries issued by the RIB to the FIB.

<Sysname> display ip routing-table record flush update verbose

 

Total number of records: 1

Limit of records: 1000

 

        Time: 210907 15:38:50:961    Action: update

 Destination: 200.0.0.0/24

    VrfIndex: 0                     VrfName: default-vrf

 SrcVrfIndex: 0                    PriNibID: 0x0

      OrigAs: 0                      LastAs: 0

        VNID: 0x111000000            AttrId: 0xffffffff

       Flags: 0x10020000           ExtFlags: 0x0

       Label: 0xffffffff            BkLabel: 0xffffffff

   LabelType: None               InstanceId: 0

IpPrecedence: 65535              QosLocalId: 65535

TrafficIndex: 65535                  UserID: 0x0

Table 4 Command output

Field

Description

Total number of records

Total number of route entry records.

Limit of records

Maximum number of route entry records.

Time

Date and time when a record was generated.

Action

Action on the route entry in the record:

·     update.

·     delete.

Destination

Destination address and mask length.

VrfIndex

VPN instance index.

VrfName

Name of the VPN instance to which the route belongs. If the route belongs to the public network, this field displays default-vrf.

SrcVrfIndex

Index of the source VPN instance for the copied route.

PriNibID

SRv6 forwarding entry index.

OrigAs

Original AS number.

LastAs

Last AS number.

VNID

VN entry ID.

AttrId

Route attribute ID.

Flags

Flags of the route.

ExtFlags

Extended flags of the route.

Label

Label.

BkLabel

Backup label.

LabelType

Protocol generated the labels. Values include:

·     None—No label.

·     BGP—BGP protocol.

·     LDP—LDP protocol.

·     SLSP—SLSP protocol.

·     OSPF—OSPF protocol.

·     ISIS—IS-IS protocol.

·     UNR—User network route.

·     Unknown—Unknown protocol.

InstanceId

ID of the multi-instance process.

IpPre

IP preference.

QosLocalID

Local QoS ID.

TrafficIndex

Traffic index. This field displays N/A when the value is invalid.

UserID

Access user ID.

SID Type

SID type.

VsiIndex

Index of the VSI to which the EVPN SRv6 SID belongs.

LinkId

Link ID of the L2VPN End.DX2 SID.

ArgLen

Arguments field length.

 

# Display brief information about the records for the route entries notified by the RIB to the routing protocol.

<Sysname> display ip routing-table record notify

 

Total number of records: 3

 

Date   Time         Action Destination/Mask/NibID/Vrf

210907 15:38:50:961 update 200.0.0.0/24/0x11000000/default-vrf

210907 15:39:46:496 update 200.0.0.0/24/0x11000000/default-vrf

210907 15:39:51:825 update 200.0.0.0/24/0x11000000/default-vrf

Table 5 Command output

Field

Description

Total number of records

Total number of route entry records.

Date

Date when a record was generated.

Time

Time when the record was generated.

Action

Action on the route entry in the record:

·     update.

·     delete.

Destination

Destination address.

Mask

Mask length.

NibID

ID of the next hop.

Vrf

Name of the VPN instance to which the route belongs. If the route belongs to the public network, this field displays default-vrf.

 

# Display detailed information about the records for the deleted route entries notified by the RIB to the routing protocol.

<Sysname> display ip routing-table record notify delete verbose

 

Total number of records: 1

Limit of records: 1000

 

        Time: 210908 09:22:11:460    Action: delete

 Destination: 200.0.0.0/8

     TableID: 0x2                     NibID: 0x0

      ActCnt: 0                  InactNibID: 0x0

    VrfIndex: 0                     VrfName: default-vrf

 OldProtocol: STATIC            NewProtocol: UnSpec

       Flags: 0xc00                ExtFlags: 0x22

Table 6 Command output

Field

Description

Total number of records

Total number of route entry records.

Limit of records

Maximum number of route entry records.

Time

Date and time when a record was generated.

Action

Action on the route entry in the record:

·     add.

·     update.

·     delete.

Destination

Destination address and mask length.

TableID

ID of the routing table for the route.

NibID

Next hop ID.

ActCnt

Number of active routes using the route prefix.

InactNibID

Next hop ID of the inactive route reported to MPLS.

VrfIndex

VPN instance index.

VrfName

Name of the VPN instance to which the route belongs. If the route belongs to the public network, this field displays default-vrf.

OldProtocol

Routing protocol reported by the route the previous time.

NewProtocol

Routing protocol reported by the route the current time.

Flags

Flags of the route.

ExtFlags

Extended flags of the route.

 

# Display brief information about the records for the route entries received by the RIB from the routing protocol.

<Sysname> display ip routing-table record receive

 

Total number of records: 3

 

Date   Time         Action Proto      Destination/Mask/NibID/Vrf

210907 15:38:50:957 add    STATIC     200.0.0.0/24/0x11000000/default-vrf

210907 15:39:51:825 update STATIC     200.0.0.0/24/0x11000000/default-vrf

210907 15:40:13:329 delete STATIC     200.0.0.0/24/0x11000000/default-vrf

Table 7 Command output

Field

Description

Total number of records

Total number of route entry records.

Date

Date when a record was generated.

Time

Time when the record was generated.

Action

Action on the route entry:

·     add.

·     update.

·     delete.

Protocol

Routing protocol discovered the route.

Destination

Destination address.

Mask

Mask length.

PrefixLength

IPv6 address prefix length.

NibID

ID of the next hop.

Vrf

Name of the VPN instance to which the route belongs. If the route belongs to the public network, this field displays default-vrf.

 

# Display detailed information about the records for the added route entries received by the RIB from the routing protocol.

<Sysname> display ip routing-table record receive add verbose

 

Total number of records: 1

Limit of records: 1000

 

        Time: 210907 15:38:50:957    Action: add

 Destination: 200.0.0.0/24

     TableID: 0x2                 ProcessID: 0

    VrfIndex: 0                     VrfName: default-vrf

    Protocol: STATIC              SubProtID: 0x1

       NibID: 0x11000000           NewNibID: N/A

      AttrID: 0xffffffff           BkAttrID: 0xffffffff

       Flags: 0x60                 ExtFlags: 0x0

  ResetFlags: 0x0                  ModFlags: 0x0

       Label: 0xffffffff            BkLabel: 0xffffffff

     SRLabel: 0xffffffff          BkSRLabel: 0xffffffff

     InLabel: 0xffffffff           SIDIndex: 0xffffffff

      CommID: 0x8000000                 Tag: 0

        Cost: 0                  Preference: 60

       IpPre: N/A                QosLocalID: N/A

   Connector: N/A                    PathID: 0x0

      UserID: 0x0                  SID Type: N/A

         SID: N/A

       BkSID: N/A

Table 8 Command output

Field

Description

Total number of records

Total number of route entry records.

Limit of records

Maximum number of route entry records.

Time

Date and time when a record was generated.

Action

Action on the route entry:

·     add.

·     update.

·     delete.

Destination

Destination address and mask length.

TableID

Routing table ID of the route entry.

ProcessID

Process ID.

VrfIndex

VPN instance index.

VrfName

Name of the VPN instance to which the route belongs. If the route belongs to the public network, this field displays default-vrf.

Protocol

Routing protocol discovered the route.

SubProtID

Routing subprotocol ID.

NibID

Next hop ID.

NewNibID

ID of the updated next hop.

This field displays N/A if the attribute is not available.

AttrID

Route attribute ID.

BkAttrID

Attribute ID for the backup route.

This field displays the attribute ID for only the backup route added to the IP routing table through BGP.

Flags

Flags of the route.

ExtFlags

Extended flags of the route.

ResetFlags

Reset flags of the route upon an update.

This field displays 1 if any bit in the Flags field is changed.

ModFlags

Modified flags of the route.

Label

Label.

BkLabel

Backup label.

SRLabel

SR label.

BkSRLabel

Backup SR label.

InLabel

Incoming label of the route.

SIDIndex

SID index value.

CommID

Common informatin entry ID of the route.

Tag

Route tag.

Cost

Cost of the route.

Preference

Preference of the route.

IpPre

IP precedence.

QosLocalID

Local QoS ID.

Connector

BGP Connector attribute.

This field displays N/A if the attribute is not available.

In inter-AS option B MDT-based MVPN, the value for this field is the source PE address carried in the VPN IPv4 route exchanged between BGP peers. For more information about the BGP connector attribute, see multicast VPN in IP Multicast Configuration Guide.

PathID

Path ID.

UserID

Access user ID.

SID Type

SID type. If the route does not have an SID, this field displays N/A.

SID

Primary SID. If no primary SID is available, this field displays N/A.

BkSID

Backup SID. If no backup SID is available, this field displays N/A.

display ip routing-table statistics

Use display ip routing-table statistics to display IPv4 route or route prefix statistics.

Syntax

display ip routing-table [ all-routes | all-vpn-instance | vpn-instance vpn-instance-name ] [ prefix ] statistics

Views

Any view

Predefined user roles

network-admin

network-operator

Parameters

all-routes: Specifies the public network and all VPN instances.

all-vpn-instance: Specifies all VPN instances.

vpn-instance vpn-instance-name: Specifies an MPLS L3VPN instance by its name, a case-sensitive string of 1 to 31 characters.

prefix: Displays IPv4 route prefix statistics. If you do not specify this keyword, the command displays IPv4 route statistics.

Usage guidelines

If you do not specify any parameters, this command displays IPv4 route statistics for the public network.

Examples

# Display IPv4 route statistics for the public network.

<Sysname> display ip routing-table statistics

 

Total prefixes: 15        Active prefixes: 15

 

Proto      Routes      Active      Added       Deleted

DIRECT     12          12          30          18

STATIC     3           3           5           2

UNR        0           0           0           0

RIP        0           0           0           0

OSPF       0           0           0           0

IS-IS      0           0           0           0

LISP       0           0           0           0

EIGRP      0           0           0           0

BGP        0           0           0           0

Total      15          15          35          20

# Display IPv4 route statistics for the public network and all VPN instances.

<Sysname> display ip routing-table all-routes statistics

 

Total prefixes: 11        Active prefixes: 11

 

Proto      Routes      Active      Added       Deleted

DIRECT     8           8           8           0

STATIC     3           3           5           2

UNR        0           0           0           0

RIP        0           0           0           0

OSPF       0           0           0           0

IS-IS      0           0           0           0

LISP       0           0           0           0

EIGRP      0           0           0           0

BGP        0           0           0           0

Total      11          11          13          2

# Display IPv4 route statistics for VPN instance vpn1.

<Sysname> display ip routing-table vpn-instance vpn1 statistics

 

Total prefixes: 11        Active prefixes: 11

 

Proto      Routes      Active      Added       Deleted

DIRECT     8           8           8           0

STATIC     3           3           5           2

UNR        0           0           0           0

RIP        0           0           0           0

OSPF       0           0           0           0

IS-IS      0           0           0           0

LISP       0           0           0           0

EIGRP      0           0           0           0

BGP        0           0           0           0

Total      11          11          13          2

# Display IPv4 route statistics for all VPN instances.

<Sysname> display ip routing-table all-vpn-instance statistics

 

Total prefixes: 11        Active prefixes: 11

 

Proto      Routes      Active      Added       Deleted

DIRECT     8           8           8           0

STATIC     3           3           5           2

UNR        0           0           0           0

RIP        0           0           0           0

OSPF       0           0           0           0

IS-IS      0           0           0           0

LISP       0           0           0           0

EIGRP      0           0           0           0

BGP        0           0           0           0

Total      11          11          13          2

# Display IPv4 route prefix statistics for the public network.

<Sysname> display ip routing-table prefix statistics

 

Proto      Prefixes    Active      Added       Deleted

DIRECT     7           7           7           0

STATIC     0           0           0           0

UNR        0           0           0           0

RIP        1           0           1           0

OSPF       0           0           0           0

IS-IS      0           0           0           0

LISP       0           0           0           0

EIGRP      0           0           0           0

BGP        0           0           0           0

Total      8           7           8           0

Table 9 Command output

Field

Description

Proto

Protocol that installed the route or route prefix.

Routes

Number of routes installed by the protocol.

Prefixes

Number of route prefixes installed by the protocol.

Active

Number of active routes or route prefixes.

Added

Number of routes or route prefixes added to the routing table after the router started up or the routing table was cleared most recently.

Deleted

Number of routes or route prefixes marked as deleted, which will be cleared after a period.

Total

Total number of routes or route prefixes.

 

display ip routing-table summary

Use display ip routing-table summary to display brief routing table information, including maximum number of ECMP routes, maximum number of active routes, and number of remaining active routes.

Syntax

display ip routing-table [ vpn-instance vpn-instance-name ] summary

Views

Any view

Predefined user roles

network-admin

network-operator

Parameters

vpn-instance vpn-instance-name: Specifies an MPLS L3VPN instance by its name, a case-sensitive string of 1 to 31 characters. If you do not specify a VPN instance, the command displays brief routing table information for the public network.

Examples

# Display brief routing table information for the public network.

<Sysname> display ip routing-table summary

 

Max ECMP: 32

Max Active Route: 262144

Remain Active Route: 262126

# Display brief routing table information for the MPLS L3VPN instance vpn1.

<Sysname> display ip routing-table vpn-instance vpn1 summary

 

Max ECMP: 32

Max Active Route: 262144

Remain Active Route: 262134

Threshold value percentage of max active routes: 100%

Table 10 Command output

Field

Description

Max ECMP

Maximum number of ECMP routes supported by the system.

Max Active Route

Maximum number of supported routes.

Remain Active Route

Number of the remaining inactive routes.

Threshold value xxx

Alarm threshold of active routes specified by using the routing-table limit command in a VPN instance:

·     Threshold value of active routes alert—This field is displayed when the alarm threshold is specified by using the routing-table limit number simply-alert command. When the number of active routes exceeds the alarm threshold, the system logs the event and sends traps but still accepts active routes.

·     Threshold value percentage of max active routes—This field is displayed when the alarm threshold is specified by using the routing-table limit number warn-threshold command, in the range of 1 to 100 in percentage. When the percentage of active routes exceeds the alarm threshold, the system logs the event and sends traps but still accepts active routes. If the number of active routes reaches the maximum number, no more routes can be added. The percentage of active routes equals the number of active routes divided by the maximum number of active routes supported in a VPN instance, and multiplied by 100.

display ipv6 rib attribute

Use display ipv6 rib attribute to display route attribute information in the IPv6 RIB.

Syntax

display ipv6 rib attribute [ attribute-id ]

Views

Any view

Predefined user roles

network-admin

network-operator

Parameters

attribute-id: Specifies a route attribute by its ID, a hexadecimal string in the range of 0 to ffffffff.

Examples

# Display route attribute information in the IPv6 RIB.

<Sysname> display ipv6 rib attribute

Total number of attribute(s): 1

 

Detailed information of attribute 0x9:

                  Flag: 0x0

              Protocol: BGP4+ instance default

        Address family: IPv6

       Reference count: 0

      Local preference: 0

Ext-communities number: 0

 Ext-communities value: N/A

  Ext-comm-ipv6 number: 1

   Ext-comm-ipv6 value: <RT Import: 303::3:9>

    Communities number: 0

     Communities value: N/A

        AS-path number: 0

         AS-path value: N/A

For command output, see Table 14.

display ipv6 rib graceful-restart

Use display ipv6 rib graceful-restart to display IPv6 RIB GR state information.

Syntax

display ipv6 rib graceful-restart

Views

Any view

Predefined user roles

network-admin

network-operator

Examples

# Display IPv6 RIB GR state information.

<Sysname> display ipv6 rib graceful-restart

RIB GR state     : Phase2-calculation end

RCOM GR state    : Flush end

Protocol GR state:

 No.  Protocol   Lifetime FD   State    Start/End

--------------------------------------------------

 1    DIRECT     900      29   End      No/No

 2    STATIC     900      32   End      No/No

 3    ISISV6     900      30   End      No/No

 4    BGP4+ instance default

                 900      31   End      No/No

 5    BGP4+ instance ebcdefg

                 900      32   End      No/No

For command output, see Table 15.

display ipv6 rib nib

Use display ipv6 rib nib to display next hop information in the IPv6 RIB.

Syntax

display ipv6 rib nib [ self-originated ] [ nib-id ] [ verbose ]

display ipv6 rib nib [ sub-nib nib-id ] [ verbose ]

display ipv6 rib nib protocol protocol [ fast-reroute ] [ verbose ]

Views

Any view

Predefined user roles

network-admin

network-operator

Parameters

self-originated: Displays information about next hops of self-originated routes in the IPv6 RIB.

sub-nib nib-id: Specifies a sub-NIB by its ID to display information about its parent NIB.

nib-id: Specifies a NIB by its ID, a hexadecimal string in the range of 0 to ffffffff.

verbose: Displays detailed next hop information in the IPv6 RIB. If you do not specify this keyword, the command displays brief next hop information in the IPv6 RIB.

protocol protocol: Specifies a protocol by its name.

fast-reroute: Displays next hop information about fast rerouting.

Examples

# Display brief next hop information in the IPv6 RIB.

<Sysname> display ipv6 rib nib

Total number of nexthop(s): 151

 

      NibID: 0x20000000        Sequence: 0

       Type: 0x1                Flushed: Yes

        Age: 00h01m50s

   UserKey0: 0x0                VrfNthp: 0

   UserKey1: 0x0                Nexthop: ::

    IFIndex: 0x111            LocalAddr: ::

 MemberPort: 0x0

   TopoNthp: Invalid            ExtType: 0x0

      Color: 0                   COFlag: 0x0

   SIDIndex: 0x0                SRPName:

 OriNexthop: ::

 

      NibID: 0x20000001        Sequence: 1

       Type: 0x1                Flushed: Yes

        Age: 00h01m50s

   UserKey0: 0x0                VrfNthp: 0

   UserKey1: 0x0                Nexthop: ::1

    IFIndex: 0x112            LocalAddr: ::1

 MemberPort: 0x0

   TopoNthp: Invalid            ExtType: 0x0

      Color: 0                   COFlag: 0x0

   SIDIndex: 0x0                SRPName:

 OriNexthop: ::

 

...

# Display detailed next hop information in the IPv6 RIB.

<Sysname> display ipv6 rib nib verbose

Total number of nexthop(s): 151

 

      NibID: 0x20000000        Sequence: 0

       Type: 0x1                Flushed: Yes

        Age: 00h01m50s

   UserKey0: 0x0                VrfNthp: 0

   UserKey1: 0x0                Nexthop: ::

    IFIndex: 0x111            LocalAddr: ::

 MemberPort: 0x0

   TopoNthp: Invalid            ExtType: 0x0

      Color: 0                   COFlag: 0x0

   SIDIndex: 0x0                SRPName:

 OriNexthop: ::

     RefCnt: 4              FlushRefCnt: 1

       Flag: 0x84               Version: 1

    ExtFlag: 0x0

 1 nexthop(s):

PrefixIndex: 0              OrigNexthop: ::

  RelyDepth: 0              RealNexthop: ::

  Interface: NULL0            LocalAddr: ::

  TunnelCnt: 0                      Vrf: default-vrf

   TunnelID: N/A               Topology:

     Weight: 0                    Flags: 0x0

SRPolicyNID: 4294967295     SRInterface:

ColorWeight: 0                  Locator: N/A

 MemberPort: N/A

 

      NibID: 0x20000001        Sequence: 1

       Type: 0x1                Flushed: Yes

        Age: 00h01m50s

   UserKey0: 0x0                VrfNthp: 0

   UserKey1: 0x0                Nexthop: ::1

    IFIndex: 0x112            LocalAddr: ::1

 MemberPort: 0x0

   TopoNthp: Invalid            ExtType: 0x0

      Color: 0                   COFlag: 0x0

   SIDIndex: 0x0                SRPName:

 OriNexthop: ::

     RefCnt: 4              FlushRefCnt: 1

       Flag: 0x84               Version: 1

    ExtFlag: 0x0

 1 nexthop(s):

PrefixIndex: 0              OrigNexthop: ::1

  RelyDepth: 0              RealNexthop: ::1

  Interface: InLoop0          LocalAddr: ::1

  TunnelCnt: 0                      Vrf: default-vrf

   TunnelID: N/A               Topology:

     Weight: 0                    Flags: 0x0

SRPolicyNID: 4294967295     SRInterface:

ColorWeight: 0                  Locator: N/A

 MemberPort: N/A

 

...

For command output, see Table 16 and Table 17.

display ipv6 rib nib record

Use display ipv6 rib nib record to display next hop records in the IPv6 RIB.

Syntax

display ipv6 rib nib record flush [ delete | update ] [ verbose ]

display ipv6 rib nib record receive [ add | delete | update ] [ verbose ]

Views

Any view

Predefined user roles

network-admin

network-operator

Parameters

flush: Displays the records for the next hops issued by the IPv6 RIB to the FIB.

receive: Displays the records for the next hops received by the IPv6 RIB from the routing protocol.

add: Displays the records for the added next hops.

delete: Displays the records for the deleted next hops.

update: Displays the records for the updated next hops. If you specify the flush keyword, the system takes added next hops as updated next hops when displaying the associated records.

verbose: Displays detailed information about next hop records. If you do not specify this keyword, the command displays only brief information about next hop records.

Usage guidelines

If you do not specify the add, delete, or update keyword, the command displays records for the added, deleted, and updated next hops.

When the system enters the level-1 memory threshold alarm status, it stops recording new next hop information. When the system enters the level-3 memory threshold alarm status, it clears existing next hop records. When the system exits the level-1 memory threshold alarm status, it starts recording new next hop information again.

Examples

# Display brief information about the records for the next hops issued by the IPv6 RIB to the FIB.

<Sysname> display ipv6 rib nib record flush

 

Total number of records: 2

 

Date   Time         Action VNID

210908 15:31:55:364 update 0x20000000

210908 15:31:55:364 update 0x120000001

For descriptions about the command output, see Table 18.

# Display detailed information about the records for the updated next hops issued by the IPv6 RIB to the FIB.

<Sysname> display ipv6 rib nib record flush update verbose

 

Total number of records: 2

Limit of records: 1000

 

        Time: 210908 15:31:55:364    Action: update

       NibID: 0x20000000               VNID: 0x20000000

    Sequence: 0                     Version: 1

       Flags: 0x80                 ExtFlags: 0x0

      RefCnt: 4                 FlushRefCnt: 1

        Type: 0xd

    VrfIndex: 0                     Nexthop: ::

     IfIndex: 1410                LocalAddr: ::

     ExtType: 0x0               NibInstance: IFM

    UserKey0: 0x0                  UserKey1: 0x0

      NewUK0: 0x0                    NewUK1: 0x0

      NewUK2: 0x0                    NewUK3: 0x0

      NewUK4: 0x0                    NewUK5: 0x0

      NewUK6: 0x0                    NewUK7: 0x0

    SIDIndex: 0x0              SrPolicyName:

       Color: 0                  OriNexthop: ::

      COFlag: 0x0                   Locator: N/A

 1 nexthop(s):

 PrefixIndex: 0                 OrigNexthop: ::

   RelyDepth: 0                 RealNexthop: ::

   Interface: 258                 LocalAddr: ::

    VrfIndex: 0                    Topology:

      Weight: 0                       Flags: 0x800

 SRPolicyNID: 4294967295        SRInterface: 0

 ColorWeight: 0                     Locator: N/A

  MemberPort: 0               SRL2Interface: 0

 

        Time: 210908 15:31:55:364    Action: update

       NibID: 0x20000001               VNID: 0x120000001

    Sequence: 1                     Version: 1

       Flags: 0x80                 ExtFlags: 0x0

      RefCnt: 4                 FlushRefCnt: 1

        Type: 0x1

    VrfIndex: 0                     Nexthop: ::1

     IfIndex: 1410                LocalAddr: ::1

     ExtType: 0x0               NibInstance: IFM

    UserKey0: 0x0                  UserKey1: 0x0

      NewUK0: 0x0                    NewUK1: 0x0

      NewUK2: 0x0                    NewUK3: 0x0

      NewUK4: 0x0                    NewUK5: 0x0

      NewUK6: 0x0                    NewUK7: 0x0

    SIDIndex: 0x0              SrPolicyName:

       Color: 0                  OriNexthop: ::

      COFlag: 0x0                   Locator: N/A

 1 nexthop(s):

 PrefixIndex: 0                 OrigNexthop: ::

   RelyDepth: 0                 RealNexthop: ::

   Interface: 258                 LocalAddr: ::

    VrfIndex: 0                    Topology:

      Weight: 0                       Flags: 0x800

 SRPolicyNID: 4294967295        SRInterface: 0

 ColorWeight: 0                     Locator: N/A

  MemberPort: 0               SRL2Interface: 0

For descriptions about the command output, see Table 19.

# Display brief information about the records for the next hops received by the IPv6 RIB from the routing protocol.

<Sysname> display ipv6 rib nib record receive

 

Total number of records: 3

 

Date   Time         Action NibID      NibInstance

210908 10:45:35:211 add    0x21000000 USR

210908 10:45:35:215 update 0x21000000 USR

210908 10:49:47:785 delete 0x21000000 USR

For descriptions about the command output, see Table 20.

# Display detailed information about the records for the added next hops received by the IPv6 RIB from the routing protocol.

<Sysname> display ipv6 rib nib record receive add verbose

 

Total number of records: 1

Limit of records: 1000

 

        Time: 210928 14:39:14:147    Action: add

       NibID: 0x20000000           Sequence: 0

 NibInstance: IFM                   Version: 1

       Flags: 0x0                   UsrData: 0xffffffffffffffff

        Type: 0x1                   ExtType: 0x0

    VrfIndex: 0                     VrfName: default-vrf

  InstanceId: 0                     Nexthop: ::1

     IfIndex: 1410                LocalAddr: ::1

    UserKey0: 0x0                  UserKey1: 0x0

      NewUK0: 0x0                    NewUK1: 0x0

      NewUK2: 0x0                    NewUK3: 0x0

      NewUK4: 0x0                    NewUK5: 0x0

      NewUK6: 0x0                    NewUK7: 0x0

       Color: 0                      COFlag: 0x0

   BandWidth: 0                      Weight: 0

   ProtNibID: 0xffffffff           NibFlags: 0x0

    SIDIndex: 0x0              SrPolicyName:

 1 nexthop(s):

 PrefixIndex: 0                 OrigNexthop: ::1

   RelyDepth: 0                 RealNexthop: ::1

   Interface: 1410                LocalAddr: ::1

    VrfIndex: 0                    Topology:

      Weight: 0                       Flags: 0x0

 SRPolicyNID: 4294967295        SRInterface: 0

 ColorWeight: 0                     Locator: N/A

  MemberPort: 0               SRL2Interface: 0

For descriptions about the command output, see Table 21.

display ipv6 route-direct nib

Use display ipv6 route-direct nib to display next hop information for IPv6 direct routes.

Syntax

display ipv6 route-direct nib [ nib-id ] [ verbose ]

Views

Any view

Predefined user roles

network-admin

network-operator

Parameters

nib-id: Specifies a NIB by its ID, a hexadecimal string in the range of 0 to ffffffff.

verbose: Displays detailed next hop information for IPv6 direct routes. If you do not specify this keyword, the command displays brief next hop information for IPv6 direct routes.

Examples

# Display brief next hop information for IPv6 direct routes.

<Sysname> display ipv6 route-direct nib

Total number of nexthop(s): 115

 

      NibID: 0x20000000        Sequence: 0

       Type: 0x1                Flushed: Yes

        Age: 00h01m50s

   UserKey0: 0x0                VrfNthp: 0

   UserKey1: 0x0                Nexthop: ::

    IFIndex: 0x111            LocalAddr: ::

 MemberPort: 0x0

   TopoNthp: Invalid            ExtType: 0x0

      Color: 0                   COFlag: 0x0

   SIDIndex: 0x0                SRPName:

 OriNexthop: ::

 

      NibID: 0x20000001        Sequence: 1

       Type: 0x1                Flushed: Yes

        Age: 00h01m50s

   UserKey0: 0x0                VrfNthp: 0

   UserKey1: 0x0                Nexthop: ::1

    IFIndex: 0x112            LocalAddr: ::1

 MemberPort: 0x0

   TopoNthp: Invalid            ExtType: 0x0

      Color: 0                   COFlag: 0x0

   SIDIndex: 0x0                SRPName:

 OriNexthop: ::

 

...

# Display detailed next hop information for IPv6 direct routes.

<Sysname> display ipv6 route-direct nib verbose

Total number of nexthop(s): 115

 

      NibID: 0x20000000        Sequence: 0

       Type: 0x1                Flushed: Yes

        Age: 00h01m50s

   UserKey0: 0x0                VrfNthp: 0

   UserKey1: 0x0                Nexthop: ::

    IFIndex: 0x111            LocalAddr: ::

 MemberPort: 0x0

   TopoNthp: Invalid            ExtType: 0x0

      Color: 0                   COFlag: 0x0

   SIDIndex: 0x0                SRPName:

 OriNexthop: ::

     RefCnt: 1              FlushRefCnt: 0

       Flag: 0x2                Version: 1

    ExtFlag: 0x0

 1 nexthop(s):

PrefixIndex: 0              OrigNexthop: ::

  RelyDepth: 0              RealNexthop: ::

  Interface: NULL0            LocalAddr: ::

  TunnelCnt: 0                      Vrf: default-vrf

   TunnelID: N/A               Topology:

     Weight: 0                    Flags: 0x0

SRPolicyNID: 4294967295     SRInterface:

ColorWeight: 0                  Locator: N/A

 MemberPort: N/A

 

      NibID: 0x20000001        Sequence: 1

       Type: 0x1                Flushed: Yes

        Age: 00h01m50s

   UserKey0: 0x0                VrfNthp: 0

   UserKey1: 0x0                Nexthop: ::1

    IFIndex: 0x112            LocalAddr: ::1

 MemberPort: 0x0

   TopoNthp: Invalid            ExtType: 0x0

      Color: 0                   COFlag: 0x0

   SIDIndex: 0x0                SRPName:

 OriNexthop: ::

     RefCnt: 1              FlushRefCnt: 0

       Flag: 0x2                Version: 1

    ExtFlag: 0x0

 1 nexthop(s):

PrefixIndex: 0              OrigNexthop: ::1

  RelyDepth: 0              RealNexthop: ::1

  Interface: InLoop0          LocalAddr: ::1

  TunnelCnt: 0                      Vrf: default-vrf

   TunnelID: N/A               Topology:

     Weight: 0                    Flags: 0x0

SRPolicyNID: 4294967295     SRInterface:

ColorWeight: 0                  Locator: N/A

 MemberPort: N/A

 

...

For command output, see Table 22 and Table 23.

display ipv6 routing-table

Use display ipv6 routing-table to display IPv6 routing table information.

Syntax

display ipv6 routing-table [ all-vpn-instance | vpn-instance vpn-instance-name ] [ priority { critical | high | low | medium } ] [ verbose ]

display ipv6 routing-table all-routes

display ipv6 routing-table [ all-vpn-instance | vpn-instance vpn-instance-name ] fast-reroute

Views

Any view

Predefined user roles

network-admin

network-operator

Parameters

all-vpn-instance: Displays IPv6 routing table information for all VPN instances.

vpn-instance vpn-instance-name: Specifies an MPLS L3VPN instance by its name, a case-sensitive string of 1 to 31 characters.

priority { critical | high | low | medium }: Specifies a route convergence priority. To display route information with the critical priority, specify the critical keyword. To display route information with the high priority, specify the high keyword. To display route information with the low priority, specify the low keyword. To display route information with the medium priority, specify the medium keyword. If you do not specify any of the keywords, this command displays route information with all priorities.

all-routes: Displays IPv6 routing table information for the public network and all VPN instances.

verbose: Displays detailed routing table information, including information about both active and inactive routes. If you do not specify this keyword, the command displays only brief information about active routes.

fast-reroute: Displays fast reroute routing table information.

Usage guidelines

If you do not specify any parameters, this command displays IPv6 routing table information for the public network, excluding fast reroute routing table information.

Examples

# Display brief information about all active routes in the public network.

<Sysname> display ipv6 routing-table

 

Destinations : 3 Routes : 3

 

Destination: ::1/128                                     Protocol  : Direct

NextHop    : ::1                                         Preference: 0

Interface  : InLoop0                                     Cost      : 0

 

Destination: 5000::1:0:1/128                             Protocol  : SRv6

NextHop    : ::1                                         Preference: 4

Interface  : policy1                                     Cost      : 0

 

Destination: FE80::/10                                   Protocol  : Direct

NextHop    : ::                                          Preference: 0

Interface  : InLoop0                                     Cost      : 0

# Display brief information about active routes in the IPv6 routing table for the public network and all VPN instances.

<Sysname> display ipv6 routing-table all-routes

 

VPN instance: public instance

Destinations : 3 Routes : 3

 

Destination: ::1/128                                     Protocol  : Direct

NextHop    : ::1                                         Preference: 0

Interface  : InLoop0                                     Cost      : 0

 

Destination: 5000::1:0:1/128                             Protocol  : SRv6

NextHop    : ::1                                         Preference: 4

Interface  : policy1                                     Cost      : 0

 

Destination: FE80::/10                                   Protocol  : Direct

NextHop    : ::                                          Preference: 0

Interface  : InLoop0                                     Cost      : 0

 

VPN instance: vpn1

Destinations : 3 Routes : 3

 

Destination: ::1/128                                     Protocol  : Direct

NextHop    : ::1                                         Preference: 0

Interface  : InLoop0                                     Cost      : 0

 

Destination: 1:2::3:4/128                                Protocol  : Static

NextHop    : ::                                          Preference: 60

Interface  : NULL0                                       Cost      : 0

 

Destination: 5000::1:0:1/128                             Protocol  : SRv6

NextHop    : ::1                                         Preference: 4

Interface  : policy1                                     Cost      : 0

# Display brief IPv6 routing table information for all VPN instances.

<Sysname> display ipv6 routing-table all-vpn-instance

 

VPN instance: vpn1

Destinations : 2 Routes : 2

 

Destination: ::1/128                                     Protocol  : Direct

NextHop    : ::1                                         Preference: 0

Interface  : InLoop0                                     Cost      : 0

 

Destination: 1:2::3:4/128                                Protocol  : Static    

NextHop    : ::                                          Preference: 60        

Interface  : NULL0                                       Cost      : 0

 

VPN instance: vpn2

Destinations : 1 Routes : 1

 

Destination: ::1/128                                     Protocol  : Direct

NextHop    : ::1                                         Preference: 0

Interface  : InLoop0                                     Cost      : 0

# Display brief IPv6 fast reroute information in the public network.

<Sysname> display ipv6 routing-table fast-reroute

 

Destinations : 1        Routes : 1

 

Destination: 3::/64                                      Protocol  : Static

NextHop    : 11::2                                       Preference: 60

Interface  : XGE3/0/1                                     Cost      : 0

 

Destination: 3::/64                                      Protocol  :

NextHop    : 12::2                                       Preference:

Interface  : XGE3/0/2                                     Cost      :

Table 11 Command output

Field

Description

VPN instance

Public network and VPN instance to which the IPv6 routing table belongs. For the public network, this filed displays public instance. For a VPN instance, this command displays the name of the instance.

Destinations

Number of destination addresses.

Routes

Number of routes.

Destination

IPv6 address and prefix of the destination network or host.

NextHop

Next hop address of the route.

Preference

Preference of the route.

Interface

Output interface for packets to be forwarded along the route. (If the protocol is SRv6 and the forwarding tunnel is SRv6 TE policy, this field displays the policy name.)

Protocol

Protocol that installed the route.

Cost

Cost of the route.

Summary count

Number of routes.

 

# Display detailed information about all routes in the public network.

<Sysname> display ipv6 routing-table verbose

 

Destinations : 3 Routes : 3

 

 Destination: ::1/128

    Protocol: Direct

  Process ID: 0

   SubProtID: 0x0                       Age: 19h23m02s

  FlushedAge: 15h28m49s

        Cost: 0                  Preference: 0

       IpPre: N/A                QosLocalID: N/A

         Tag: 0                       State: Active NoAdv

   OrigTblID: 0x0                   OrigVrf: default-vrf

     TableID: 0xa                    OrigAs: 0

       NibID: 0x20000000             LastAs: 0

      AttrID: 0xffffffff

    BkAttrID: 0xffffffff           Neighbor: ::

       Flags: 0x10004           OrigNextHop: ::1

       Label: NULL              RealNextHop: ::1

     BkLabel: NULL                BkNextHop: N/A

     SRLabel: NULL                Interface: InLoopBack0

   BkSRLabel: NULL              BkInterface: N/A

   Tunnel ID: Invalid           IPInterface: InLoopBack0

 BkTunnel ID: Invalid         BkIPInterface: N/A

     InLabel: NULL           ColorInterface: N/A

    SIDIndex: NULL         BkColorInterface: N/A

    FtnIndex: 0x0           TunnelInterface: N/A

TrafficIndex: N/A         BkTunnelInterface: N/A

   Connector: N/A                    PathID: 0x0

      UserID: 0x0                SRTunnelID: Invalid

    SID Type: N/A                       NID: Invalid

    FlushNID: Invalid                 BkNID: Invalid

  BkFlushNID: Invalid             StatFlags: 0x0

         SID: N/A

       BkSID: N/A

CommBlockLen: 0                    Priority: Critical

  MemberPort: N/A

 

 Destination: 12::/96

    Protocol: Direct

  Process ID: 0

   SubProtID: 0x0                       Age: 00h01m47s

  FlushedAge: 15h28m49s

        Cost: 0                  Preference: 0

       IpPre: N/A                QosLocalID: N/A

         Tag: 0                       State: Active Adv

   OrigTblID: 0x0                   OrigVrf: default-vrf

     TableID: 0xa                    OrigAs: 0

       NibID: 0x20000003             LastAs: 0

      AttrID: 0xffffffff

    BkAttrID: 0xffffffff           Neighbor: ::

       Flags: 0x10080           OrigNextHop: ::

       Label: NULL              RealNextHop: ::

     BkLabel: NULL                BkNextHop: N/A

     SRLabel: NULL                Interface: Ten-GigabitEthernet3/0/2

   BkSRLabel: NULL              BkInterface: N/A

   Tunnel ID: Invalid           IPInterface: Ten-GigabitEthernet3/0/2

 BkTunnel ID: Invalid         BkIPInterface: N/A

     InLabel: NULL           ColorInterface: N/A

    SIDIndex: NULL         BkColorInterface: N/A

    FtnIndex: 0x0           TunnelInterface: N/A

TrafficIndex: N/A         BkTunnelInterface: N/A

   Connector: N/A                    PathID: 0x0

      UserID: 0x0                SRTunnelID: Invalid

    SID Type: N/A                       NID: Invalid

    FlushNID: Invalid                 BkNID: Invalid

  BkFlushNID: Invalid             StatFlags: 0x0

         SID: N/A

       BkSID: N/A

CommBlockLen: 0                    Priority: Critical

  MemberPort: N/A

 

Destination: 5000::1:0:1/128

    Protocol: SRv6

  Process ID: 0

   SubProtID: 0x0                       Age: 00h01m47s

  FlushedAge: 15h28m49s

        Cost: 0                  Preference: 4

       IpPre: N/A                QosLocalID: N/A

         Tag: 0                       State: Active Adv

   OrigTblID: 0x0                   OrigVrf: default-vrf

     TableID: 0xa                    OrigAs: 0

       NibID: 0x20000002             LastAs: 0

      AttrID: 0xffffffff

    BkAttrID: 0xffffffff           Neighbor: ::

       Flags: 0x10000           OrigNextHop: ::1

       Label: NULL              RealNextHop: ::1

     BkLabel: NULL                BkNextHop: N/A

     SRLabel: NULL                Interface: policy1

   BkSRLabel: NULL              BkInterface: N/A

   Tunnel ID: Invalid           IPInterface: NULL0

 BkTunnel ID: Invalid         BkIPInterface: N/A

     InLabel: NULL           ColorInterface: N/A

    SIDIndex: NULL         BkColorInterface: N/A

    FtnIndex: 0x0           TunnelInterface: N/A

TrafficIndex: N/A         BkTunnelInterface: N/A

   Connector: N/A                    PathID: 0x0

      UserID: 0x0                SRTunnelID: Invalid

    SID Type: End                       NID: 0x80300001

    FlushNID: 0x80300001              BkNID: Invalid

  BkFlushNID: Invalid             StatFlags: 0x0

         SID: N/A

       BkSID: N/A

CommBlockLen: 0                    Priority: Critical

  MemberPort: N/A

# Display detailed IPv6 routing table information for all VPN instances.

<Sysname> display ipv6 routing-table all-vpn-instance verbose

 

VPN instance: vpn1

Destinations : 3 Routes : 3

 

 Destination: ::1/128

    Protocol: Direct

  Process ID: 0

   SubProtID: 0x0                       Age: 19h23m02s

  FlushedAge: 15h28m49s

        Cost: 0                  Preference: 0

       IpPre: N/A                QosLocalID: N/A

         Tag: 0                       State: Active NoAdv

   OrigTblID: 0x0                   OrigVrf: default-vrf

     TableID: 0xa                    OrigAs: 0

       NibID: 0x20000000             LastAs: 0

      AttrID: 0xffffffff

    BkAttrID: 0xffffffff           Neighbor: ::

       Flags: 0x10004           OrigNextHop: ::1

       Label: NULL              RealNextHop: ::1

     BkLabel: NULL                BkNextHop: N/A

     SRLabel: NULL                Interface: InLoopBack0

   BkSRLabel: NULL              BkInterface: N/A

   Tunnel ID: Invalid           IPInterface: InLoopBack0

 BkTunnel ID: Invalid         BkIPInterface: N/A

     InLabel: NULL           ColorInterface: N/A

    SIDIndex: NULL         BkColorInterface: N/A

    FtnIndex: 0x0           TunnelInterface: N/A

TrafficIndex: N/A         BkTunnelInterface: N/A

   Connector: N/A                    PathID: 0x0

      UserID: 0x0                SRTunnelID: Invalid

    SID Type: N/A                       NID: Invalid

    FlushNID: Invalid                 BkNID: Invalid

  BkFlushNID: Invalid             StatFlags: 0x0

         SID: N/A

       BkSID: N/A

CommBlockLen: 0                    Priority: Critical

  MemberPort: N/A

 

 Destination: 12::1/128

    Protocol: Direct

  Process ID: 0

   SubProtID: 0x0                       Age: 00h01m45s

  FlushedAge: 15h28m49s

        Cost: 0                  Preference: 0

       IpPre: N/A                QosLocalID: N/A

         Tag: 0                       State: Active NoAdv

   OrigTblID: 0x0                   OrigVrf: default-vrf

     TableID: 0xa                    OrigAs: 0

       NibID: 0x20000000             LastAs: 0

      AttrID: 0xffffffff

    BkAttrID: 0xffffffff           Neighbor: ::

       Flags: 0x10004           OrigNextHop: ::1

       Label: NULL              RealNextHop: ::1

     BkLabel: NULL                BkNextHop: N/A

     SRLabel: NULL                Interface: Ten-GigabitEthernet3/0/2

   BkSRLabel: NULL              BkInterface: N/A

   Tunnel ID: Invalid           IPInterface: Ten-GigabitEthernet3/0/2

 BkTunnel ID: Invalid         BkIPInterface: N/A

     InLabel: NULL           ColorInterface: N/A

    SIDIndex: NULL         BkColorInterface: N/A

    FtnIndex: 0x0           TunnelInterface: N/A

TrafficIndex: N/A         BkTunnelInterface: N/A

   Connector: N/A                    PathID: 0x0

      UserID: 0x0                SRTunnelID: Invalid

    SID Type: N/A                       NID: Invalid

    FlushNID: Invalid                 BkNID: Invalid

  BkFlushNID: Invalid             StatFlags: 0x0

         SID: N/A

       BkSID: N/A

CommBlockLen: 0                    Priority: Critical

  MemberPort: N/A

 

Destination: 5000::1:0:1/128

    Protocol: SRv6

  Process ID: 0

   SubProtID: 0x0                       Age: 00h01m47s

  FlushedAge: 15h28m49s

        Cost: 0                  Preference: 4

       IpPre: N/A                QosLocalID: N/A

         Tag: 0                       State: Active Adv

   OrigTblID: 0x0                   OrigVrf: default-vrf

     TableID: 0xa                    OrigAs: 0

       NibID: 0x20000002             LastAs: 0

      AttrID: 0xffffffff

    BkAttrID: 0xffffffff           Neighbor: ::

       Flags: 0x10000           OrigNextHop: ::1

       Label: NULL              RealNextHop: ::1

     BkLabel: NULL                BkNextHop: N/A

     SRLabel: NULL                Interface: policy1

   BkSRLabel: NULL              BkInterface: N/A

   Tunnel ID: Invalid           IPInterface: NULL0

 BkTunnel ID: Invalid         BkIPInterface: N/A

     InLabel: NULL           ColorInterface: N/A

    SIDIndex: NULL         BkColorInterface: N/A

    FtnIndex: 0x0           TunnelInterface: N/A

TrafficIndex: N/A         BkTunnelInterface: N/A

   Connector: N/A                    PathID: 0x0

      UserID: 0x0                SRTunnelID: Invalid

    SID Type: End                       NID: 0x80300001

    FlushNID: 0x80300001              BkNID: Invalid

  BkFlushNID: Invalid             StatFlags: 0x0

         SID: N/A

       BkSID: N/A

CommBlockLen: 0                    Priority: Critical

  MemberPort: N/A

Table 12 Command output

Field

Description

VPN instance

Public network and VPN instance to which the IPv6 routing table belongs. For the public network, this filed displays public instance. For a VPN instance, this command displays the name of the instance.

Destination

IPv6 address and prefix of the destination network or host.

Protocol

Protocol that installed the route.

SubProtID

ID of the subprotocol for routing.

Age

Time for which the route has been in the routing table.

FlushedAge

Time for which the route has been flushed to the FIB.

Cost

Cost of the route.

Preference

Preference of the route.

IpPre

IP precedence.

QosLocalID

Local QoS ID.

Tag

Tag of the route.

State

Route status:

·     Active—Active unicast route.

·     Adv—Route that can be advertised.

·     Inactive—Inactive route.

·     NoAdv—Route that the router is not allowed to advertise.

·     Vrrp—Routes generated by VRRP.

·     Nat—Routes generated by NAT.

·     TunE—Tunnel.

OrigTblID

Original routing table ID.

OrigVrf

Original VPN instance to which the route belongs. This field displays default-vrf if the route is on the public network.

TableID

ID of the routing table.

OrigAs

Original AS number.

NibID

ID of the next hop.

LastAs

Last AS number.

AttrID

Attribute ID.

BkAttrID

Attribute ID of the backup route.

This field displays only the attribute ID of the backup route added by BGP to the IP routing table.

Neighbor

Address of the neighbor determined by the routing protocol.

Flags

Flags of the route.

OrigNextHop

Next hop address of the route.

RealNextHop

Real next hop of the route.

BkLabel

Backup label.

BkNexthop

Backup next hop.

SRLabel

SR label.

Interface

Output interface for packets to be forwarded along the route. (If the protocol is SRv6 and the forwarding tunnel is SRv6 TE policy, this field displays the policy name.)

BkSRLabel

Backup SR label.

BkInterface

Backup output interface. (If the protocol is SRv6 and the forwarding tunnel is SRv6 TE policy, this field displays the policy name.)

Tunnel ID

Tunnel ID

IPInterface

IP output interface for packets to be forwarded along the route.

BkTunnel ID

Backup tunnel ID.

BkIPInterface

Backup IP output interface.

InLabel

Incoming label of the route.

ColorInterface

Output interface recursed by an SR-MPLS TE policy or SRv6 TE policy.

SIDIndex

SID index value.

BkColorInterface

Backup output interface recursed by an SR-MPLS TE policy or SRv6 TE policy.

FtnIndex

Index of the FTN entry.

TunnelInterface

Output tunnel interface.

TrafficIndex

Traffic index in the range of 1 to 64. This field displays N/A when the value is invalid.

BkTunnelInterface

Backup output tunnel interface.

Connector

BGP connector attribute exchanged between BGP peers along with a VPN IPv4 route. The value of the attribute is the IP address of the remote PE device. The BGP connector attribute is used for MD VPN. This field displays N/A if BGP connector attribute is not supported.

PathID

Path ID.

Summary count

Number of routes.

UserID

Access user ID.

SRTunnelID

SR tunnel ID.

SID Type

This field is not supported in the current software version.

SID type. If the route does not have an SID, this field displays N/A.

NID

Index of the Next Hop Label Forwarding Entry (Next Hop Label Forwarding Entry) flushed by the routing protocol.

FlushNID

Index of the NHLFE flushed to the FIB.

BkNID

Index of the backup NHLFE flushed by the routing protocol.

BkFlushNID

Index of the backup NHLFE flushed to the FIB.

StatFlags

Flags for SRv6 traffic statistics.

SID

Primary Segment Identifier (SID).

If no primary SID is available, this field displays N/A.

BkSID

Backup SID.

If no backup SID is available, this field displays N/A.

CommBlockLen

Common prefix length in the locator.

Priority

Convergence priority of the route:

·     Critical.

·     High.

·     Medium.

·     Low.

MemberPort

Number of a member port in an aggregation group.

If this attribute is not available, this field displays N/A.

display ipv6 routing-table acl

Use display ipv6 routing-table acl to display routing information permitted by an IPv6 basic ACL.

Syntax

display ipv6 routing-table [ vpn-instance vpn-instance-name ] acl ipv6-acl-number [ verbose ]

Views

Any view

Predefined user roles

network-admin

network-operator

Parameters

vpn-instance vpn-instance-name: Specifies an MPLS L3VPN instance by its name, a case-sensitive string of 1 to 31 characters. If you do not specify a VPN instance, the command displays routing information for the public network.

ipv6-acl-number: Specifies a basic IPv6 ACL by its number in the range of 2000 to 2999.

verbose: Displays detailed information about all routes permitted by the basic IPv6 ACL. If you do not specify this keyword, the command displays only brief information about active routes permitted by the basic IPv6 ACL.

Usage guidelines

When you specify an IPv6 ACL, follow these restrictions and guidelines:

·     If the specified IPv6 ACL does not exist or does not have any rules, the command displays information about all IPv6 routes.

·     If you specify the vpn-instance keyword for an ACL rule, the ACL rule will not take effect.

Examples

# Display brief information about active routes permitted by IPv6 ACL 2000.

<Sysname> display ipv6 routing-table acl 2000

 

Summary count : 5

 

Destination : ::1/128                                    Protocol  : Direct

NextHop     : ::1                                        Preference: 0

Interface   : InLoop0                                    Cost      : 0

 

Destination: 12::/96                                     Protocol  : Direct

NextHop    : ::                                          Preference: 0

Interface  : XGE3/0/2                                    Cost      : 0

 

Destination: 12::1/128                                   Protocol  : Direct

NextHop    : ::1                                         Preference: 0

Interface  : InLoop0                                     Cost      : 0

 

Destination: FF::11/128                                  Protocol  : BGP4+

NextHop    : 12::2                                       Preference: 255

Interface  : XGE3/0/2                                    Cost      : 0

 

Destination: FE80::/10                                   Protocol  : Direct

NextHop    : ::                                          Preference: 0

Interface  : InLoop0                                     Cost      : 0

For descriptions about the command output, see Table 11.

# Display detailed information about all routes permitted by IPv6 ACL 2000.

<Sysname> display ipv6 routing-table acl 2000 verbose

 

Summary count : 5

 

 Destination: ::1/128

    Protocol: Direct

  Process ID: 0

   SubProtID: 0x0                       Age: 19h29m12s

  FlushedAge: 15h28m49s

        Cost: 0                  Preference: 0

       IpPre: N/A                QosLocalID: N/A

         Tag: 0                       State: Active NoAdv

   OrigTblID: 0x0                   OrigVrf: default-vrf

     TableID: 0xa                    OrigAs: 0

       NibID: 0x20000000             LastAs: 0

      AttrID: 0xffffffff

    BkAttrID: 0xffffffff           Neighbor: ::

       Flags: 0x10004           OrigNextHop: ::1

       Label: NULL              RealNextHop: ::1

     BkLabel: NULL                BkNextHop: N/A

     SRLabel: NULL                Interface: InLoopBack0

   BkSRLabel: NULL              BkInterface: N/A

   Tunnel ID: Invalid           IPInterface: InLoopBack0

 BkTunnel ID: Invalid         BkIPInterface: N/A

     InLabel: NULL           ColorInterface: N/A

    SIDIndex: NULL         BkColorInterface: N/A

    FtnIndex: 0x0           TunnelInterface: N/A

TrafficIndex: N/A         BkTunnelInterface: N/A

   Connector: N/A                    PathID: 0x0

      UserID: 0x0                SRTunnelID: Invalid

    SID Type: N/A                       NID: Invalid

    FlushNID: Invalid                 BkNID: Invalid

  BkFlushNID: Invalid             StatFlags: 0x0

         SID: N/A

       BkSID: N/A

CommBlockLen: 0                    Priority: Critical

  MemberPort: N/A

 

 Destination: 12::/96

    Protocol: Direct

  Process ID: 0

   SubProtID: 0x0                       Age: 00h07m57s

  FlushedAge: 15h28m49s

        Cost: 0                  Preference: 0

       IpPre: N/A                QosLocalID: N/A

         Tag: 0                       State: Active Adv

   OrigTblID: 0x0                   OrigVrf: default-vrf

     TableID: 0xa                    OrigAs: 0

       NibID: 0x20000003             LastAs: 0

      AttrID: 0xffffffff

    BkAttrID: 0xffffffff           Neighbor: ::

       Flags: 0x10080           OrigNextHop: ::

       Label: NULL              RealNextHop: ::

     BkLabel: NULL                BkNextHop: N/A

     SRLabel: NULL                Interface: Ten-GigabitEthernet3/0/2

   BkSRLabel: NULL              BkInterface: N/A

   Tunnel ID: Invalid           IPInterface: Ten-GigabitEthernet3/0/2

 BkTunnel ID: Invalid         IPBkInterface: N/A

     InLabel: NULL           ColorInterface: N/A

    SIDIndex: NULL         BkColorInterface: N/A

    FtnIndex: 0x0           TunnelInterface: N/A

TrafficIndex: N/A         BkTunnelInterface: N/A

   Connector: N/A                    PathID: 0x0

      UserID: 0x0                SRTunnelID: Invalid

    SID Type: N/A                       NID: Invalid

    FlushNID: Invalid                 BkNID: Invalid

  BkFlushNID: Invalid             StatFlags: 0x0

         SID: N/A

       BkSID: N/A

CommBlockLen: 0                    Priority: Critical

  MemberPort: N/A

 

 Destination: 12::1/128

    Protocol: Direct

  Process ID: 0

   SubProtID: 0x0                       Age: 00h07m55s

  FlushedAge: 15h28m49s

        Cost: 0                  Preference: 0

       IpPre: N/A                QosLocalID: N/A

         Tag: 0                       State: Active NoAdv

   OrigTblID: 0x0                   OrigVrf: default-vrf

     TableID: 0xa                    OrigAs: 0

       NibID: 0x20000000             LastAs: 0

      AttrID: 0xffffffff

    BkAttrID: 0xffffffff           Neighbor: ::

       Flags: 0x10004           OrigNextHop: ::1

       Label: NULL              RealNextHop: ::1

     BkLabel: NULL                BkNextHop: N/A

     SRLabel: NULL                Interface: InLoopBack0

   BkSRLabel: NULL              BkInterface: N/A

   Tunnel ID: Invalid           IPInterface: InLoopBack0

 BkTunnel ID: Invalid         BkIPInterface: N/A

     InLabel: NULL           ColorInterface: N/A

    SIDIndex: NULL         BkColorInterface: N/A

    FtnIndex: 0x0           TunnelInterface: N/A

TrafficIndex: N/A         BkTunnelInterface: N/A

   Connector: N/A                    PathID: 0x0

      UserID: 0x0                SRTunnelID: Invalid

    SID Type: N/A                       NID: Invalid

    FlushNID: Invalid                 BkNID: Invalid

  BkFlushNID: Invalid             StatFlags: 0x0

         SID: N/A

       BkSID: N/A

CommBlockLen: 0                    Priority: Critical

  MemberPort: N/A

 

 Destination: FF::11/128

    Protocol: BGP4+ instance default

  Process ID: 0

   SubProtID: 0x6                       Age: 00h06m43s

  FlushedAge: 15h28m49s

        Cost: 0                  Preference: 255

       IpPre: N/A                QosLocalID: N/A

         Tag: 0                       State: Active Adv

   OrigTblID: 0x0                   OrigVrf: default-vrf

     TableID: 0xa                    OrigAs: 200

       NibID: 0x26000000             LastAs: 200

      AttrID: 0x1

    BkAttrID: 0x1                  Neighbor: 12::2

       Flags: 0x10060           OrigNextHop: 12::2

       Label: NULL              RealNextHop: 12::2

     BkLabel: NULL                BkNextHop: N/A

     SRLabel: NULL                Interface: Ten-GigabitEthernet3/0/2

   BkSRLabel: NULL              BkInterface: N/A

   Tunnel ID: Invalid           IPInterface: Ten-GigabitEthernet3/0/2

 BkTunnel ID: Invalid         BkIPInterface: N/A

     InLabel: NULL           ColorInterface: N/A

    SIDIndex: NULL         BkColorInterface: N/A

    FtnIndex: 0x0           TunnelInterface: N/A

TrafficIndex: N/A         BkTunnelInterface: N/A

   Connector: N/A                    PathID: 0x0

      UserID: 0x0                SRTunnelID: Invalid

    SID Type: N/A                       NID: Invalid

    FlushNID: Invalid                 BkNID: Invalid

  BkFlushNID: Invalid             StatFlags: 0x0

         SID: N/A

       BkSID: N/A

CommBlockLen: 0                    Priority: Critical

  MemberPort: N/A

 

 Destination: FE80::/10

    Protocol: Direct

  Process ID: 0

   SubProtID: 0x0                       Age: 19h29m12s

  FlushedAge: 15h28m49s

        Cost: 0                  Preference: 0

       IpPre: N/A                QosLocalID: N/A

         Tag: 0                       State: Active NoAdv

   OrigTblID: 0x0                   OrigVrf: default-vrf

     TableID: 0xa                    OrigAs: 0

       NibID: 0x20000002             LastAs: 0

      AttrID: 0xffffffff

    BkAttrID: 0xffffffff           Neighbor: ::

       Flags: 0x10084           OrigNextHop: ::

       Label: NULL              RealNextHop: ::

     BkLabel: NULL                BkNextHop: N/A

     SRLabel: NULL                Interface: InLoopBack0

   BkSRLabel: NULL              BkInterface: N/A

   Tunnel ID: Invalid           IPInterface: InLoopBack0

 BkTunnel ID: Invalid         BkIPInterface: N/A

     InLabel: NULL           ColorInterface: N/A

    SIDIndex: NULL         BkColorInterface: N/A

    FtnIndex: 0x0           TunnelInterface: N/A

TrafficIndex: N/A         BkTunnelInterface: N/A

   Connector: N/A                    PathID: 0x0

      UserID: 0x0                SRTunnelID: Invalid

    SID Type: N/A                       NID: Invalid

    FlushNID: Invalid                 BkNID: Invalid

  BkFlushNID: Invalid             StatFlags: 0x0

         SID: N/A

       BkSID: N/A

CommBlockLen: 0                    Priority: Critical

  MemberPort: N/A

For descriptions about the command output, see Table 12.

display ipv6 routing-table ipv6-address

Use display ipv6 routing-table ipv6-address to display information about routes to an IPv6 destination address.

Use display ipv6 routing-table ipv6-address1 to ipv6-address2 to display information about routes to a range of IPv6 destination addresses.

Syntax

display ipv6 routing-table [ vpn-instance vpn-instance-name ] ipv6-address [ prefix-length ] [ longer-match ] [ verbose ]

display ipv6 routing-table [ vpn-instance vpn-instance-name ] ipv6-address1 to ipv6-address2 [ verbose ]

display ipv6 routing-table [ vpn-instance vpn-instance-name ] fast-reroute ipv6-address [ prefix-length ]

Views

Any view

Predefined user roles

network-admin

network-operator

Parameters

vpn-instance vpn-instance-name: Specifies an MPLS L3VPN instance by its name, a case-sensitive string of 1 to 31 characters. If you do not specify a VPN instance, the command displays routing information for the public network.

ipv6-address: Specifies a destination IPv6 address.

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

longer-match: Displays the route entries that meet the matching rules as described in the usage guidelines.

ipv6-address1 to ipv6-address2: Specifies a destination IPv6 address range.

verbose: Displays detailed routing table information, including information about both active and inactive routes. If you do not specify this keyword, the command displays only brief information about active routes.

fast-reroute: Displays fast reroute routing table information.

Usage guidelines

Executing the command with different parameters yields different output.

·     display ipv6 routing-table ipv6-address

¡     The system ANDs the entered destination IPv6 address with the prefix length in each active route entry.

¡     The system ANDs the destination IPv6 address in each active route entry with the prefix length in the entry.

If the two operations yield the same result for an entry, the entry is displayed.

·     display ipv6 routing-table ipv6-address prefix-length

¡     The system ANDs the entered destination IPv6 address with the entered prefix length.

¡     The system ANDs the destination IPv6 address in each active route entry with the entered prefix length.

If the two operations yield the same result for an entry with a prefix length not greater than the entered prefix length, the entry is displayed.

·     display ipv6 routing-table ipv6-address longer-match

If you do not specify the prefix-length argument, the command yields the same result as the display ipv6 routing-table command.

·     display ipv6 routing-table ipv6-address prefix-length longer-match

¡     The system ANDs the entered destination IPv6 address with the entered prefix length.

¡     The system ANDs the destination IPv6 address in each active route entry with the entered prefix length.

If the two operations yield the same result for multiple entries, all the entries are displayed.

·     display ipv6 routing-table ipv6-address1 to ipv6-address2

The system displays route entries with destinations in the range of ipv6-address1/128 to ipv6-address2/128.

Examples

# Display brief information about the routes to the destination IPv6 address 10::1 127.

<Sysname> display ipv6 routing-table 10::1 127

 

Summary count: 3

 

Destination: 10::/64                                     Protocol  : Static

NextHop    : ::                                          Preference: 60

Interface  : NULL0                                       Cost      : 0

 

Destination: 10::/68                                     Protocol  : Static

NextHop    : ::                                          Preference: 60

Interface  : NULL0                                       Cost      : 0

 

Destination: 10::/120                                    Protocol  : Static

NextHop    : ::                                          Preference: 60

Interface  : NULL0                                       Cost      : 0

# Display brief information about the routes to the destination IPv6 address 10::1 with prefix length 127.

<Sysname> display ipv6 routing-table 10::1 127 longer-match

 

Summary count : 3

 

Destination: 10::/64                                     Protocol  : Static

NextHop    : ::                                          Preference: 60

Interface  : NULL0                                       Cost      : 0

 

Destination: 10::/68                                     Protocol  : Static

NextHop    : ::                                          Preference: 60

Interface  : NULL0                                       Cost      : 0

 

Destination: 10::/120                                    Protocol  : Static

NextHop    : ::                                          Preference: 60

Interface  : NULL0                                       Cost      : 0

# Display brief information about the routes to destination addresses in the range of 100:: to 300::.

<Sysname> display ipv6 routing-table 100:: to 300::

 

Summary count : 3

 

Destination: 100::/64                                    Protocol  : Static

NextHop    : ::                                          Preference: 60

Interface  : NULL0                                       Cost      : 0

 

Destination: 200::/64                                    Protocol  : Static

NextHop    : ::                                          Preference: 60

Interface  : NULL0                                       Cost      : 0

 

Destination: 300::/64                                    Protocol  : Static

NextHop    : ::                                          Preference: 60

Interface  : NULL0                                       Cost      : 0

For descriptions about the command output, see Table 11.

# Display brief fast reroute information about the routes to the destination IPv6 address 3:: with a prefix length of 32.

<Sysname> display ipv6 routing-table fast-reroute 3:: 32

 

Summary count : 1

 

Destination: 3::/32                                      Protocol  : Static

NextHop    : 11::2                                       Preference: 60

Interface  : XGE3/0/1                                     Cost      : 0

 

Destination: 3::/32                                      Protocol  :

NextHop    : 12::2                                       Preference:

Interface  : XGE3/0/2                                     Cost      :

# Display detailed information about the routes to destination IPv6 addresses 1:2::3:4/128.

<Sysname> display ipv6 routing-table 1:2::3:4 128 verbose

 

Summary count : 1

 

 Destination: 1:2::3:4/128

    Protocol: BGP4+ instance abc

  Process ID: 0

   SubProtID: 0x1                       Age: 00h01m14s

  FlushedAge: 15h28m49s

        Cost: 0                  Preference: 255

       IpPre: N/A                QosLocalID: N/A

         Tag: 0                       State: Active Adv

   OrigTblID: 0x0                   OrigVrf: default-vrf

     TableID: 0x1                    OrigAs: 200

       NibID: 0x26000000             LastAs: 200

      AttrID: 0x0

    BkAttrID: 0x0                  Neighbor: 2:2::3:4

       Flags: 0x10060           OrigNextHop: 2:2::3:4

       Label: NULL              RealNextHop: 2:2::3:4

     BkLabel: NULL                BkNextHop: N/A

     SRLabel: NULL                Interface: Ten-GigabitEthernet3/0/1

   BkSRLabel: NULL              BkInterface: N/A

   Tunnel ID: Invalid           IPInterface: Ten-GigabitEthernet3/0/1

 BkTunnel ID: Invalid         BkIPInterface: N/A

     InLabel: NULL           ColorInterface: N/A

    SIDIndex: NULL         BkColorInterface: N/A

    FtnIndex: 0x0           TunnelInterface: N/A

TrafficIndex: N/A         BkTunnelInterface: N/A

   Connector: N/A                    PathID: 0x0

      UserID: 0x0                SRTunnelID: Invalid

    SID Type: N/A                       NID: Invalid

    FlushNID: Invalid                 BkNID: Invalid

  BkFlushNID: Invalid             StatFlags: 0x0

         SID: N/A

       BkSID: N/A

CommBlockLen: 0                    Priority: Critical

  MemberPort: N/A

For descriptions about the command output, see Table 12.

Related commands

display ipv6 routing-table

display ipv6 routing-table prefix-list

Use display ipv6 routing-table prefix-list to display information about IPv6 routes permitted by an IPv6 prefix list.

Syntax

display ipv6 routing-table [ vpn-instance vpn-instance-name ] prefix-list prefix-list-name [ verbose ]

Views

Any view

Predefined user roles

network-admin

network-operator

Parameters

vpn-instance vpn-instance-name: Specifies an MPLS L3VPN instance by its name, a case-sensitive string of 1 to 31 characters. If you do not specify a VPN instance, the command displays routing information for the public network.

prefix-list-name: Specifies an IPv6 prefix list by its name, a case-sensitive string of 1 to 63 characters.

verbose: Displays detailed information about all IPv6 routes permitted by the IPv6 prefix list. If you do not specify this keyword, the command displays brief information about active IPv6 routes permitted by the IPv6 prefix list.

Usage guidelines

If the specified IPv6 prefix list does not exist, the command displays information about all routes.

Examples

# Create an IPv6 prefix list named test to permit the prefix ::1/128.

<Sysname> system-view

[Sysname] ipv6 prefix-list test permit ::1 128

# Display brief information about the active IPv6 route permitted by the IPv6 prefix list.

[Sysname] display ipv6 routing-table prefix-list test

 

Summary count : 1

 

Destination: ::1/128                                     Protocol  : Direct

NextHop    : ::1                                         Preference: 0

Interface  : InLoop0                                     Cost      : 0

For descriptions about the command output, see Table 11.

# Display detailed information about all routes permitted by the IPv6 prefix list.

[Sysname] display ipv6 routing-table prefix-list test verbose

 

Summary count : 1

 

 Destination: ::1/128

    Protocol: Direct

  Process ID: 0

   SubProtID: 0x0                       Age: 08h57m19s

  FlushedAge: 15h28m49s

        Cost: 0                  Preference: 0

       IpPre: N/A                QosLocalID: N/A

         Tag: 0                       State: Active NoAdv

   OrigTblID: 0x0                   OrigVrf: default-vrf

     TableID: 0xa                    OrigAs: 0

       NibID: 0x20000000             LastAs: 0

      AttrID: 0xffffffff

    BkAttrID: 0xffffffff           Neighbor: ::

       Flags: 0x10004           OrigNextHop: ::1

       Label: NULL              RealNextHop: ::1

     BkLabel: NULL                BkNextHop: N/A

     SRLabel: NULL                Interface: InLoopBack0

   BkSRLabel: NULL              BkInterface: N/A

   Tunnel ID: Invalid           IPInterface: InLoopBack0

 BkTunnel ID: Invalid         BkIPInterface: N/A

     InLabel: NULL           ColorInterface: N/A

    SIDIndex: NULL         BkColorInterface: N/A

    FtnIndex: 0x0           TunnelInterface: N/A

TrafficIndex: N/A         BkTunnelInterface: N/A

   Connector: N/A                    PathID: 0x0

      UserID: 0x0                SRTunnelID: Invalid

    SID Type: N/A                       NID: Invalid

    FlushNID: Invalid                 BkNID: Invalid

  BkFlushNID: Invalid             StatFlags: 0x0

         SID: N/A

       BkSID: N/A

CommBlockLen: 0                    Priority: Critical

  MemberPort: N/A

For descriptions about the command output, see Table 12.

display ipv6 routing-table protocol

Use display ipv6 routing-table protocol to display information about IPv6 routes installed by a protocol.

Syntax

display ipv6 routing-table [ vpn-instance vpn-instance-name ] protocol protocol [ fast-reroute | inactive | verbose ]

Views

Any view

Predefined user roles

network-admin

network-operator

Parameters

vpn-instance vpn-instance-name: Specifies an MPLS L3VPN instance by its name, a case-sensitive string of 1 to 31 characters. If you do not specify a VPN instance, the command displays routing information for the public network.

protocol: Specifies a routing protocol.

inactive: Displays information about inactive routes. If you do not specify this keyword, the command displays information about both active and inactive routes.

verbose: Displays detailed routing table information. If you do not specify this keyword, the command displays brief routing information.

fast-reroute: Displays fast reroute routing table information.

Examples

# Display brief information about IPv6 direct routes in the public network.

<Sysname> display ipv6 routing-table protocol direct

 

Summary count : 2

 

Direct Routing table status : <Active>

Summary count : 2

 

Destination: ::1/128                                     Protocol  : Direct

NextHop    : ::1                                         Preference: 0

Interface  : InLoop0                                     Cost      : 0

 

Destination: FE80::/10                                   Protocol  : Direct

NextHop    : ::                                          Preference: 0

Interface  : InLoop0                                     Cost      : 0

 

Direct Routing table status : <Inactive>

Summary count : 0

For descriptions about the command output, see Table 11.

# Display information about IPv6 static routes in the public network.

<Sysname> display ipv6 routing-table protocol static

 

Summary count : 3

 

Static Routing table status : <Active>

Summary count : 3

Destination: 2::2/128                                    Protocol  : Static

NextHop    : fe80::2                                     Preference: 60

Interface  : XGE3/0/2                                    Cost      : 0

 

Destination: 2::2/128                                    Protocol  : Static

NextHop    : fe80::3                                     Preference: 60

Interface  : XGE3/0/2                                    Cost      : 0

 

Destination: 3::3/128                                    Protocol  : Static

NextHop    : 2::2                                        Preference: 60

Interface  : XGE3/0/2                                    Cost      : 0

 

Static Routing table status : <Inactive>

Summary count : 0

For descriptions about the command output, see Table 11.

# Display fast reroute information about IPv6 static routes in the public network.

<Sysname> display ipv6 routing-table protocol static fast-reroute

 

Destinations : 1        Routes : 1

 

Destination: 3::/32                                      Protocol  : Static

NextHop    : 11::2                                       Preference: 60

Interface  : XGE3/0/1                                     Cost      : 0

 

Destination: 3::/64                                      Protocol  : Static

NextHop    : 12::2                                       Preference: 60

Interface  : XGE3/0/2                                     Cost      : 0

# Display detailed information about all IPv6 BGP routes in the public network.

<Sysname> display ipv6 routing-table protocol bgp4+ verbose

 

Summary count : 1

 

 Destination: 22::22/128

    Protocol: BGP4+ instance abc

  Process ID: 0

   SubProtID: 0x6                       Age: 00h04m15s

  FlushedAge: 15h28m49s

        Cost: 0                  Preference: 255

       IpPre: N/A                QosLocalID: N/A

         Tag: 0                       State: Active Adv

   OrigTblID: 0x0                   OrigVrf: default-vrf

     TableID: 0xa                    OrigAs: 200

       NibID: 0x25000001             LastAs: 200

      AttrID: 0x3

    BkAttrID: 0x3                  Neighbor: 121::2

       Flags: 0x10060           OrigNextHop: 121::2

       Label: NULL              RealNextHop: 121::2

     BkLabel: NULL                BkNextHop: N/A

     SRLabel: NULL                Interface: Ten-GigabitEthernet3/0/1

   BkSRLabel: NULL              BkInterface: N/A

   Tunnel ID: Invalid           IPInterface: Ten-GigabitEthernet3/0/1

 BkTunnel ID: Invalid         BkIPInterface: N/A

     InLabel: NULL           ColorInterface: N/A

    SIDIndex: NULL         BkColorInterface: N/A

    FtnIndex: 0x0           TunnelInterface: N/A

TrafficIndex: N/A         BkTunnelInterface: N/A

   Connector: N/A                    PathID: 0x0

      UserID: 0x0                SRTunnelID: Invalid

    SID Type: N/A                       NID: Invalid

    FlushNID: Invalid                 BkNID: Invalid

  BkFlushNID: Invalid             StatFlags: 0x0

         SID: N/A

       BkSID: N/A

CommBlockLen: 0                    Priority: Critical

  MemberPort: N/A

For descriptions about the command output, see Table 12.

display ipv6 routing-table record

Use display ipv6 routing-table record to display IPv6 routing entry records.

Syntax

display ipv6 routing-table record flush [ delete | update ] [ verbose ]

display ipv6 routing-table record notify [ delete | update ] [ verbose ]

display ipv6 routing-table record receive [ add | delete | update ] [ verbose ]

Views

Any view

Predefined user roles

network-admin

network-operator

Parameters

flush: Displays the records for the route entries issued by the IPv6 RIB to the FIB.

notify: Displays the records for the route entries notified by the IPv6 RIB to the routing protocol.

receive: Displays the records for the route entries received by the IPv6 RIB from the routing protocol.

add: Displays the records for the added route entries.

delete: Displays the records for the deleted route entries.

update: Displays the records for the updated route entries. If you specify the flush or notify keyword, the system takes added route entries as updated route entries when displaying the associated records.

verbose: Displays detailed information about IPv6 route entry records. If you do not specify this keyword, the command displays only brief information about IPv6 route entry records.

Usage guidelines

If you do not specify the add, delete, or update keyword, the command displays records for the added, deleted, and updated route entries.

When the system enters the level-1 memory threshold alarm status, it stops recording new route entry information. When the system enters the level-3 memory threshold alarm status, it clears existing route entry records. When the system exits the level-1 memory threshold alarm status, it starts recording new route entry information again.

Examples

# Display brief information about the records for the route entries issued by the IPv6 RIB to the FIB.

<Sysname> display ipv6 routing-table record flush

 

Total number of records: 2

 

Date   Time         Action Destination/PrefixLength/VNID/Vrf

210908 09:33:21:996 update 1001::/64/0x520000004/default-vrf

210908 09:33:23:386 update 1001::1/128/0x120000001/default-vrf

For descriptions about the command output, see Table 3.

# Display detailed information about the records for the updated route entries issued by the IPv6 RIB to the FIB.

<Sysname> display ipv6 routing-table record flush update verbose

 

Total number of records: 2

Limit of records: 1000

 

        Time: 210908 09:33:21:996    Action: update

 Destination: 1001::/64

    VrfIndex: 0                     VrfName: default-vrf

 SrcVrfIndex: 0                    PriNibID: 0x0

      OrigAs: 0                      LastAs: 0

        VNID: 0x520000004

       Flags: 0x10040000           ExtFlags: 0x0

       Label: 0xffffffff            BkLabel: 0xffffffff

IpPrecedence: 65535              QosLocalId: 65535

   FlowIndex: 65535                  UserID: 0x0

    SID Type: 0                    VsiIndex: 0xffffffff

      LinkId: 0xffffffff             ArgLen: 0

 

        Time: 210908 09:33:23:386    Action: update

 Destination: 1001::1/128

    VrfIndex: 0                     VrfName: default-vrf

 SrcVrfIndex: 0                    PriNibID: 0x0

      OrigAs: 0                      LastAs: 0

        VNID: 0x120000001

       Flags: 0x10040000           ExtFlags: 0x0

       Label: 0xffffffff            BkLabel: 0xffffffff

IpPrecedence: 65535              QosLocalId: 65535

   FlowIndex: 65535                  UserID: 0x0

    SID Type: 0                    VsiIndex: 0xffffffff

      LinkId: 0xffffffff             ArgLen: 0

For descriptions about the command output, see Table 4.

# Display brief information about the records for the route entries notified by the IPv6 RIB to the routing protocol.

<Sysname> display ipv6 routing-table record notify

 

Total number of records: 1

 

Date   Time         Action Destination/PrefixLength/NibID/Vrf

210908 10:47:03:698 update 2000::/64/0x21000000/default-vrf

For descriptions about the command output, see Table 5.

# Display detailed information about the records for the deleted route entries notified by the IPv6 RIB to the routing protocol.

<Sysname> display ipv6 routing-table record notify delete verbose

 

Total number of records: 1

Limit of records: 1000

 

        Time: 210908 10:49:47:787    Action: delete

 Destination: 2000::/64

     TableID: 0xa                     NibID: 0x0

      ActCnt: 0                  InactNibID: 0x0

    VrfIndex: 0                     VrfName: default-vrf

 OldProtocol: STATIC            NewProtocol: UnSpec

     RtFlags: 0xc00              ExtRtFlags: 0x22

For descriptions about the command output, see Table 6.

# Display brief information about the records for the route entries received by the IPv6 RIB from the routing protocol.

<Sysname> display ipv6 routing-table record receive

 

Total number of records: 1

 

Date   Time         Action Proto      Destination/PrefixLength/NibID/Vrf

210908 09:33:23:385 add    DIRECT     1001::1/128/0x20000001/default-vrf

For descriptions about the command output, see Table 7.

# Display detailed information about the records for the added route entries received by the IPv6 RIB from the routing protocol.

<Sysname> display ipv6 routing-table record receive add verbose

 

Total number of records: 1

Limit of records: 1000

 

        Time: 210908 09:33:23:385    Action: add

 Destination: 1001::1/128

     TableID: 0xa                 ProcessID: 0

    VrfIndex: 0                     VrfName: default-vrf

    Protocol: DIRECT              SubProtID: 0x0

       NibID: 0x20000001           NewNibID: N/A

      AttrID: 0xffffffff           BkAttrID: 0xffffffff

       Flags: 0x4                  ExtFlags: 0x0

  ResetFlags: 0x0                  ModFlags: 0x0

       Label: 0xffffffff            BkLabel: 0xffffffff

     SRLabel: 0xffffffff          BkSRLabel: 0xffffffff

     InLabel: 0xffffffff           SIDIndex: 0xffffffff

      CommID: 0x5000001                 Tag: 0

        Cost: 0                  Preference: 0

       IpPre: N/A                QosLocalID: N/A

   Connector: N/A                    PathID: 0x0

      UserID: 0x0                  SID Type: N/A

         SID: N/A

       BkSID: N/A

For descriptions about the command output, see Table 8.

display ipv6 routing-table statistics

Use display ipv6 routing-table statistics to display IPv6 route or route prefix statistics.

Syntax

display ipv6 routing-table [ all-routes | all-vpn-instance | vpn-instance vpn-instance-name ] [ prefix ] statistics

Views

Any view

Predefined user roles

network-admin

network-operator

Parameters

all-routes: Specifies the public network and all VPN instances.

all-vpn-instance: Specifies all VPN instances.

vpn-instance vpn-instance-name: Specifies an MPLS L3VPN instance by its name, a case-sensitive string of 1 to 31 characters.

prefix: Displays IPv6 route prefix statistics. If you do not specify this keyword, the command displays IPv6 route statistics.

Usage guidelines

If you do not specify any parameters, this command displays IPv6 route statistics for the public network.

Examples

# Display IPv6 route statistics for the public network.

<Sysname> display ipv6 routing-table statistics

 

Total prefixes: 8        Active prefixes: 8

 

Proto      Routes      Active      Added       Deleted

DIRECT     5           5           5           0

STATIC     3           3           3           0

UNR        0           0           0           0

RIPng      0           0           0           0

OSPFv3     0           0           0           0

IS-ISv6    0           0           0           0

LISP       0           0           0           0

SRv6       0           0           0           0

BGP4+      0           0           0           0

Total      8           8           8           0

# Display IPv6 route statistics for the public network and all VPN instances.

<Sysname> display ipv6 routing-table all-routes statistics

 

Total prefixes: 6        Active prefixes: 6

 

Proto      Routes      Active      Added       Deleted

DIRECT     3           3           3           0

STATIC     3           3           5           2

UNR        0           0           0           0

RIPng      0           0           0           0

OSPFv3     0           0           0           0

IS-ISv6    0           0           0           0

LISP       0           0           0           0

SRv6       0           0           0           0

BGP4+      0           0           0           0

Total      6           6           8           2

# Display IPv6 route statistics for VPN instance vpn1.

<Sysname> display ipv6 routing-table vpn-instance vpn1 statistics

 

Total prefixes: 11        Active prefixes: 11

 

Proto      Routes      Active      Added       Deleted

DIRECT     8           8           8           0

STATIC     3           3           5           2

UNR        0           0           0           0

RIPng      0           0           0           0

OSPFv3     0           0           0           0

IS-ISv6    0           0           0           0

LISP       0           0           0           0

SRv6       0           0           0           0

BGP4+      0           0           0           0

Total      11          11          13          2

# Display IPv6 route statistics for all VPN instances.

<Sysname> display ipv6 routing-table all-vpn-instance statistics

 

Total prefixes: 11        Active prefixes: 11

 

Proto      Routes      Active      Added       Deleted

DIRECT     8           8           8           0

STATIC     3           3           5           2

UNR        0           0           0           0

RIPng      0           0           0           0

OSPFv3     0           0           0           0

IS-ISv6    0           0           0           0

LISP       0           0           0           0

SRv6       0           0           0           0

BGP4+      0           0           0           0

Total      11          11          13          2

# Display IPv6 route prefix statistics for the public network.

<Sysname> display ipv6 routing-table prefix statistics

 

Proto      Prefixes      Active      Added       Deleted

DIRECT     5             5           5           0

STATIC     1             1           1           0

UNR        0           0           0           0

RIPng      0             0           0           0

OSPFv3     0             0           0           0

IS-ISv6    0             0           0           0

LISP       0             0           0           0

SRv6       0             0           0           0

BGP4+      0             0           0           0

Total      6             6           6           0

Table 13 Command output

Field

Description

Proto

Protocol that installed the route or route prefix.

Routes

Number of routes installed by the protocol.

Prefixes

Number of route prefixes installed by the protocol.

Active

Number of active routes or route prefixes.

Added

Number of routes or route prefixes added to the routing table after the router started up or the routing table was cleared most recently.

Deleted

Number of routes or route prefixes marked as deleted, which will be cleared after a period.

Total

Total number of routes or route prefixes.

 

display ipv6 routing-table summary

Use display ipv6 routing-table summary to display brief IPv6 routing table information, including maximum number of ECMP routes, maximum number of active routes, and number of remaining active routes.

Syntax

display ipv6 routing-table [ vpn-instance vpn-instance-name ] summary

Views

Any view

Predefined user roles

network-admin

network-operator

Parameters

vpn-instance vpn-instance-name: Specifies an MPLS L3VPN instance by its name, a case-sensitive string of 1 to 31 characters. If you do not specify a VPN instance, the command displays brief IPv6 routing table information for the public network.

Examples

# Display brief IPv6 routing table information for the public network.

<Sysname> display ipv6 routing-table summary

 

Max ECMP: 32

Max Active Route: 262144

Remain Active Route: 262126

For descriptions about the command output, see Table 10.

# Display brief IPv6 routing table information for the MPLS L3VPN instance vpn1.

<Sysname> display ipv6 routing-table vpn-instance vpn1 summary

 

Max ECMP: 32

Max Active Route: 262144

Remain Active Route: 262134

Threshold value of active routes alert: 65100

For descriptions about the command output, see Table 10.

display rib attribute

Use display rib attribute to display route attribute information in the RIB.

Syntax

display rib attribute [ attribute-id ]

Views

Any view

Predefined user roles

network-admin

network-operator

Parameters

attribute-id: Specifies a route attribute by its ID, a hexadecimal string in the range of 0 to ffffffff.

Examples

# Display route attribute information in the RIB.

<Sysname> display rib attribute

Total number of attribute(s): 10

 

Detailed information of attribute 0x0:

                  Flag: 0x0

              Protocol: BGP instance default

        Address family: IPv4

       Reference count: 0

Act-RT reference count: 0

            Flush flag: 0

      Local preference: 0

Ext-communities number: 26

 Ext-communities value: <RT: 1:1> <RT: 2:2> <RT: 3:3> <RT: 123.123.123.123:65535

                        > <RT: 1234567890:65535> <RT: 123.123.123.123:65534> <RT

                        : 4:4> <RT: 5:5> <RT: 6:6> <RT: 7:7> <RT: 8:8> <RT: 9:9>

                         <RT: 10:10> <RT: 10:1> <RT: 10:11> <RT: 10:12> <RT: 10:

                        13> <RT: 10:14> <RT: 10:15> <RT: 10:16> ...

    Communities number: 0

     Communities value: N/A

        AS-path number: 0

         AS-path value: N/A

  SFlow AS-path length: 0

   SFlow AS-path value: N/A

 

 

Detailed information of attribute 0x1:

                  Flag: 0x0

              Protocol: BGP

        Address family: IPv4

       Reference count: 0

Act-RT reference count: 0

            Flush flag: 0

      Local preference: 0

Ext-communities number: 1

 Ext-communities value: <RT: 1.1.1.1:2>

  Ext-comm-ipv6 number: 1

   Ext-comm-ipv6 value: <RT Import: 303::3:9>

    Communities number: 0

     Communities value: N/A

        AS-path number: 0

         AS-path value: N/A

  SFlow AS-path length: 0

   SFlow AS-path value: N/A

Table 14 Command output

Field

Description

Protocol

Protocol that generates the attribute.

Act-RT reference count

Reference count of active routes.

Flush flag

Flag of flushing route attribute information to the FIB:

·     0—The route attribute information is not flushed to the FIB.

·     1—The route attribute information is flushed to the FIB.

Ext-communities number

Number of the IPv4 extended community attribute values.

Ext-communities value

Values of the IPv4 extended community attribute. This field displays N/A when no values exist, and it can display a maximum of 20 values.

Ext-comm-ipv6 number

Number of the IPv6 extended community attribute values.

Ext-comm-ipv6 value

Values of the IPv6 extended community attribute. This field displays N/A when no values exist, and it can display a maximum of 20 values.

Communities number

Number of the COMMUNITY attribute values.

Communities value

Values of the COMMUNITY attribute. This field displays N/A when no values exist, and it can display a maximum of 20 values.

AS-path number

Number of ASs in the AS_PATH attribute.

AS-path value

Values of the AS_PATH attribute, including AS_SET, AS_SEQUENCE, confederation AS_SET, and confederation AS_SEQUENCE. This field displays N/A when no values exist, and it can display a maximum of 20 values.

SFlow AS-path length

This field is not supported in the current software version.

Length of the sFlow AS-path attribute.

SFlow AS-path value

This field is not supported in the current software version.

Value of the sFlow AS-path attribute. This field displays N/A if the length of the sFlow AS-path attribute is 0. This field can display a maximum of 20 characters.

 

display rib graceful-restart

Use display rib graceful-restart to display RIB GR state information.

Syntax

display rib graceful-restart

Views

Any view

Predefined user roles

network-admin

network-operator

Examples

# Display RIB GR state information.

<Sysname> display rib graceful-restart

RIB GR state     : Phase2-calculation end

RCOM GR state    : Flush end

Protocol GR state:

 No.  Protocol   Lifetime FD   State    Start/End

--------------------------------------------------

 1    DIRECT     900      30   End      No/No

 2    STATIC     900      34   End      No/No

 3    OSPF       900      36   End      No/No

 4    ISIS       900      32   End      No/No

 5    BGP instance abc

                 900      22   End      No/No

 6    BGP instance default

                 900      25   End      No/No

 7    LDP        900      35   End      No/No

 8    SLSP       900      29   End      No/No

 9    UNR instance UCM

                 900      33   End      No/No

Table 15 Command output

Field

Description

RIB GR state

RIB GR status:

·     Start—GR starts.

·     IGP end—All IGP protocols complete GR.

·     VPN-triggering end—Optimal route selection triggered by VPN routes completes.

·     VPN-calculation end—Optimal VPN route selection completes.

·     Routing protocol end—All routing protocols complete GR.

·     NSR-calculation unfinished—NSR has not finished optimal route selection.

·     Triggering start—All triggered optimal route selection starts.

·     Triggering end—All triggered optimal route selection completes.

·     Phase1-calculation end—Optimal route selection phase 1 completes.

·     All end—All protocols complete GR.

·     Phase2-calculation end—Optimal route selection phase 2 completes.

RCOM GR state

RCOM GR status:

·     Start—GR starts.

·     VPN-calculation end—Optimal VPN route selection completes.

·     VPN-notification end—VPN routes have been delivered to the route management module.

·     Routing protocol end—All routing protocols complete GR.

·     NSR-calculation unfinished—NSR has not finished optimal route selection.

·     Phase1-calculation end—Optimal route selection phase 1 completes.

·     Notification end—All routes have been delivered to the route management module.

·     Phase2-calculation end—Optimal route selection phase 2 completes.

·     Flush start—Starts to flush routes to the FIB.

·     Flush end—Completes flushing routes to the FIB.

No.

Protocol number.

Lifetime

Lifetime (in seconds) of routes/labels in the RIB during GR.

FD

Handle between the protocol and the RIB.

State

Protocol GR state:

·     Init—Initialization state.

·     Listen—Listening state.

·     Idle.

·     Active.

·     Start—GR starts.

·     End—GR completes.

Start/End

Message sending state:

·     No—The message has not been sent.

·     Yes—The message has been sent.

 

display rib nib

Use display rib nib to display next hop information in the RIB.

Syntax

display rib nib [ self-originated ] [ nib-id ] [ verbose ]

display rib nib [ sub-nib nib-id ] [ verbose ]

display rib nib protocol protocol [ fast-reroute ] [ verbose ]

Views

Any view

Predefined user roles

network-admin

network-operator

Parameters

self-originated: Displays information about next hops of self-originated routes in the RIB.

sub-nib nib-id: Specifies a sub-NIB by its ID to display information about its parent NIB.

nib-id: Specifies a NIB by its ID, a hexadecimal string in the range of 0 to ffffffff.

verbose: Displays detailed next hop information in the RIB. If you do not specify this keyword, the command displays brief next hop information in the RIB.

protocol protocol: Specifies a protocol by its name.

fast-reroute: Displays next hop information about fast rerouting.

Usage guidelines

If you do not specify any parameters, this command displays brief information about all next hops in the RIB.

Examples

# Display brief next hop information in the RIB.

<Sysname> display rib nib

Total number of nexthop(s): 176

 

      NibID: 0x10000000        Sequence: 0

       Type: 0x1                Flushed: Yes

        Age: 00h01m50s

   UserKey0: 0x0                VrfNthp: 0

   UserKey1: 0x0                Nexthop: 0.0.0.0

    IFIndex: 0x111            LocalAddr: 0.0.0.0

 MemberPort: 0x0

   TopoNthp: 0                  ExtType: 0x0

      Color: 0                   COFlag: 0x0

   SIDIndex: 0x0                SRPName:

 OriNexthop: 0.0.0.0

 

      NibID: 0x10000001        Sequence: 1

       Type: 0x1                Flushed: Yes

        Age: 00h01m50s

   UserKey0: 0x0                VrfNthp: 0

   UserKey1: 0x0                Nexthop: 127.0.0.1

    IFIndex: 0x112            LocalAddr: 127.0.0.1

 MemberPort: 0x0

   TopoNthp: 0                  ExtType: 0x0

      Color: 0                   COFlag: 0x0

   SIDIndex: 0x0                SRPName:

 OriNexthop: 0.0.0.0

 

      NibID: 0x10000002        Sequence: 2

       Type: 0x5                Flushed: Yes

        Age: 00h01m50s

   UserKey0: 0x0                VrfNthp: 0

   UserKey1: 0x0                Nexthop: 127.0.0.1

    IFIndex: 0x112            LocalAddr: 127.0.0.1

 MemberPort: 0x0

   TopoNthp: 0                  ExtType: 0x0

      Color: 0                   COFlag: 0x0

   SIDIndex: 0x0                SRPName:

 OriNexthop: 0.0.0.0

 

      NibID: 0x16000000        Sequence: 3

       Type: 0x21               Flushed: No

        Age: 00h01m50s

   UserKey0: 0x0                VrfNthp: 0

   UserKey1: 0x0                Nexthop: 12.1.1.2

    IFIndex: 0x0              LocalAddr: 0.0.0.0

 MemberPort: 0x0

   TopoNthp: 0                  ExtType: 0x0

      Color: 0                   COFlag: 0x0

   SIDIndex: 0x0                SRPName:

 OriNexthop: 0.0.0.0

   Instance: abc

 

...

Table 16 Command output

Field

Description

NibID

ID of the next hop.

Sequence

Sequence number of the next hop.

Type

Type of the next hop.

Flushed

Indicates whether the route with the next hop has been flushed to the FIB.

Age

Time when the next hop was updated most recently.

UserKey0

Reserved data 1.

UserKey1

Reserved data 2.

VrfNthp

Index of the VPN instance to which the next hop belongs. This field displays 0 if the next hop is on the public network.

Nexthop

Next hop address.

IFIndex

Interface index.

LocalAddr

Local interface address.

MemberPort

Index of a member port in an aggregation group.

NewUK0

New reserved data 1.

This field is not displayed if the attribute is not available.

NewUK1

New reserved data 2.

This field is not displayed if the attribute is not available.

NewUK2

New reserved data 3.

This field is not displayed if the attribute is not available.

NewUK3

New reserved data 4.

This field is not displayed if the attribute is not available.

NewUK4

New reserved data 5.

This field is not displayed if the attribute is not available.

NewUK5

New reserved data 6.

This field is not displayed if the attribute is not available.

NewUK6

New reserved data 7.

This field is not displayed if the attribute is not available.

NewUK7

New reserved data 8.

This field is not displayed if the attribute is not available.

NewUK8

New reserved data 9.

This field is not displayed if the attribute is not available.

NewUK9

New reserved data 10.

This field is not displayed if the attribute is not available.

NewUK10

New reserved data 11.

This field is not displayed if the attribute is not available.

NewUK11

New reserved data 12.

This field is not displayed if the attribute is not available.

NewUK12

New reserved data 13.

This field is not displayed if the attribute is not available.

TopoNthp

Non-base topologies are not supported in the current software version.

Index of the topology that contains the next hop. This field displays 0 if the next hop is on the IPv4 public network. This field displays Invalid if the next hop is on an IPv6 network, because the router does not support non-base topologies.

ExtType

Extension type of the next hop.

Color

Color extended community attribute.

COFlag

Flag of the color extended community attribute.

SIDIndex

SID index value.

SRPName

SR-MPLS TE policy name.

OriNexthop

Original next hop address of the route.

If the route is obtained from a BGP UPDATE message, the address is the next hop IP address in the BGP UPDATE message.

Instance

BGP instance name.

SubNibID

ID of the sub-next hop.

SubSeq

Sequence number of the sub-next hop.

NthpCnt

Number of sub-next hops.

Samed

Number of the same sub-next hops.

NthpType

Type of the sub-next hop:

·     IP—IP forwarding.

·     MPLS—MPLS forwarding.

 

# Display detailed next hop information in the RIB.

<Sysname> display rib nib verbose

Total number of nexthop(s): 176

 

      NibID: 0x10000000        Sequence: 0

       Type: 0x1                Flushed: Yes

        Age: 00h01m50s

   UserKey0: 0x0                VrfNthp: 0

   UserKey1: 0x0                Nexthop: 0.0.0.0

    IFIndex: 0x111            LocalAddr: 0.0.0.0

 MemberPort: 0x0

   TopoNthp: 0                  ExtType: 0x0

      Color: 0                   COFlag: 0x0

   SIDIndex: 0x0                SRPName:

 OriNexthop: 0.0.0.0

     RefCnt: 6              FlushRefCnt: 2

       Flag: 0x84               Version: 1

    ExtFlag: 0x0

 1 nexthop(s):

PrefixIndex: 0              OrigNexthop: 0.0.0.0

  RelyDepth: 0              RealNexthop: 0.0.0.0

  Interface: NULL0            LocalAddr: 0.0.0.0

  TunnelCnt: 0                      Vrf: default-vrf

   TunnelID: N/A               Topology: base

     Weight: 0                    Flags: 0x0

SRPolicyNID: 4294967295     SRInterface:

ColorWeight: 0                  Locator: N/A

 MemberPort: N/A

 

      NibID: 0x10000001        Sequence: 1

       Type: 0x1                Flushed: Yes

        Age: 00h01m50s

   UserKey0: 0x0                VrfNthp: 0

   UserKey1: 0x0                Nexthop: 127.0.0.1

    IFIndex: 0x112            LocalAddr: 127.0.0.1

 MemberPort: 0x0

   TopoNthp: 0                  ExtType: 0x0

      Color: 0                   COFlag: 0x0

   SIDIndex: 0x0                SRPName:

 OriNexthop: 0.0.0.0

     RefCnt: 13             FlushRefCnt: 5

       Flag: 0x84               Version: 1

    ExtFlag: 0x0

 1 nexthop(s):

PrefixIndex: 0              OrigNexthop: 127.0.0.1

  RelyDepth: 0              RealNexthop: 127.0.0.1

  Interface: InLoop0          LocalAddr: 127.0.0.1

  TunnelCnt: 0                      Vrf: default-vrf

   TunnelID: N/A               Topology: base

     Weight: 0                    Flags: 0x0

SRPolicyNID: 4294967295     SRInterface:

ColorWeight: 0                  Locator: N/A

 MemberPort: N/A

 

      NibID: 0x15000003        Sequence: 3

       Type: 0x43               Flushed: Yes

        Age: 00h01m50s

   UserKey0: 0x100010000        VrfNthp: 0

   UserKey1: 0x0                Nexthop: 22.22.22.22

    IFIndex: 0x0              LocalAddr: 0.0.0.0

 MemberPort: 0x0

   TopoNthp: 0                  ExtType: 0x0

      Color: 0                   COFlag: 0x0

   SIDIndex: 0x0                SRPName:

 OriNexthop: 0.0.0.0

   Instance: default

     RefCnt: 9              FlushRefCnt: 3

       Flag: 0x84               Version: 1

    ExtFlag: 0x0

     Policy: tnl-policy1

 1 nexthop(s):

PrefixIndex: 0              OrigNexthop: 22.22.22.22

  RelyDepth: 1              RealNexthop: 13.1.1.2

  Interface: XGE3/0/1         LocalAddr: 13.1.1.1

  TunnelCnt: 1                      Vrf: default-vrf

   TunnelID: 1025              Topology: base

     Weight: 0                    Flags: 0x0

SRPolicyNID: 4294967295     SRInterface:

ColorWeight: 0                  Locator: N/A

 MemberPort: N/A

 

...

Table 17 Command output

Field

Description

NibID

ID of the next hop.

Sequence

Sequence number of the next hop.

Type

Type of the next hop.

Flushed

Indicates whether the route with the next hop has been flushed to the FIB.

Age

Time when the next hop was updated most recently.

UserKey0

Reserved data 1.

VrfNthp

Index of the VPN instance that the next hop belongs to. This field displays 0 if the next hop is on the public network.

UserKey1

Reserved data 2.

Nexthop

Next hop address.

IFIndex

Interface index.

LocalAddr

Local interface address.

MemberPort

Index of a member port in an aggregation group.

NewUK0

New reserved data 1.

This field is not displayed if the attribute is not available.

NewUK1

New reserved data 2.

This field is not displayed if the attribute is not available.

NewUK2

New reserved data 3.

This field is not displayed if the attribute is not available.

NewUK3

New reserved data 4.

This field is not displayed if the attribute is not available.

NewUK4

New reserved data 5.

This field is not displayed if the attribute is not available.

NewUK5

New reserved data 6.

This field is not displayed if the attribute is not available.

NewUK6

New reserved data 7.

This field is not displayed if the attribute is not available.

NewUK7

New reserved data 8.

This field is not displayed if the attribute is not available.

NewUK8

New reserved data 9.

This field is not displayed if the attribute is not available.

NewUK9

New reserved data 10.

This field is not displayed if the attribute is not available.

NewUK10

New reserved data 11.

This field is not displayed if the attribute is not available.

NewUK11

New reserved data 12.

This field is not displayed if the attribute is not available.

NewUK12

New reserved data 13.

This field is not displayed if the attribute is not available.

TopoNthp

Non-base topologies are not supported in the current software version.

Index of the topology that contains the next hop. This field displays 0 if the next hop is on the IPv4 public network. This field displays Invalid if the next hop is on an IPv6 network, because the router does not support non-base topologies.

ExtType

Extension type of the next hop.

Color

Color extended community attribute.

COFlag

Flag of the color extended community attribute.

SIDIndex

SID index value.

SRPName

SR-MPLS TE policy name.

OriNexthop

Original next hop address of the route.

If the route is obtained from a BGP UPDATE message, the address is the next hop IP address in the BGP UPDATE message.

Instance

BGP instance name.

RefCnt

Reference count of the next hop.

FlushRefCnt

Reference count of the next hop that is flushed to the FIB.

Flag

Flag of the next hop.

Version

Version of the next hop.

ExtFlag

Extended flag of the next hop.

Policy

Tunnel policy name.

x nexthop (s)

Number of next hops.

PrefixIndex

Prefix index of the next hop for an ECMP route.

OrigNexthop

Original next hop.

RelyDepth

Recursion depth.

RealNexthop

Real next hop.

Interface

Output interface.

LocalAddr

Local interface address.

TunnelCnt

Number of tunnels after route recursion.

Vrf

VPN instance name. For the public network, this field displays default-vrf.

TunnelID

ID of the tunnel after route recursion.

Topology

Non-base topologies are not supported in the current software version.

Topology name. The topology name for the IPv4 public network is base. This field is blank for IPv6, because IPv6 does not support non-base topologies.

Weight

ECMP route weight. This field displays 0 for non-ECMP routes.

Flags

Flags of the detailed next hop.

SRPolicyNID

NIB ID of the route obtained from an SR-MPLS TE policy through route recursion.

SRInterface

Output interface of the route obtained from the SR-MPLS TE policy through route recursion.

ColorWeight

Weight value of the color attribute in the SR-MPLS TE policy.

Locator

IPv6 prefix of the locator to which the SID belongs.

If no locator is available, this field displays N/A.

MemberPort

Number of a member port in an aggregation group.

If this attribute is not available, this field displays N/A.

display rib nib record

Use display rib nib record to display next hop records in the RIB.

Syntax

display rib nib record flush [ delete | update ] [ verbose ]

display rib nib record receive [ add | delete | update ] [ verbose ]

Views

Any view

Predefined user roles

network-admin

network-operator

Parameters

flush: Displays the records for the next hops issued by the RIB to the FIB.

receive: Displays the records for the next hops received by the RIB from the routing protocol.

add: Displays the records for the added next hops.

delete: Displays the records for the deleted next hops.

update: Displays the records for the updated next hops. If you specify the flush keyword, the system takes added next hops as updated next hops when displaying the associated records.

verbose: Displays detailed information about next hop records. If you do not specify this keyword, the command displays only brief information about next hop records.

Usage guidelines

If you do not specify the add, delete, or update keyword, the command displays records for the added, deleted, and updated next hops.

When the system enters the level-1 memory threshold alarm status, it stops recording new next hop information. When the system enters the level-3 memory threshold alarm status, it clears existing next hop records. When the system exits the level-1 memory threshold alarm status, it starts recording new next hop information again.

Examples

# Display brief information about the records for the next hops issued by the RIB to the FIB.

<Sysname> display rib nib record flush

 

Total number of records: 2

 

Date   Time         Action VNID

210908 15:31:58:753 update 0x10000000

210908 15:31:58:755 update 0x110000001

Table 18 Command output

Field

Description

Total number of records

Total number of next hop records.

Date

Date when a record was generated.

Time

Time when the record was generated.

Action

Action on the next hop in the record:

·     add.

·     update.

·     delete.

VNID

VN entry ID.

 

# Display detailed information about the records for the updated next hops issued by the RIB to the FIB.

<Sysname> display rib nib record flush update verbose

 

Total number of records: 1

Limit of records: 1000

 

        Time: 210928 14:39:14:162    Action: update

       NibID: 0x10000000               VNID: 0x10000000

    Sequence: 0                     Version: 1

        Flag: 0x80                 ExtFlags: 0x0

      RefCnt: 5                 FlushRefCnt: 1

        Type: 0x1

    VrfIndex: 0x0                   Nexthop: 127.0.0.1

     IfIndex: 1410                LocalAddr: 127.0.0.1

     ExtType: 0x0               NibInstance: IFM

    UserKey0: 0x0                  UserKey1: 0x0

      NewUK0: 0x0                    NewUK1: 0x0

      NewUK2: 0x0                    NewUK3: 0x0

      NewUK4: 0x0                    NewUK5: 0x0

      NewUK6: 0x0                    NewUK7: 0x0

    SIDIndex: 0x0              SrPolicyName:

       Color: 0                  OriNexthop: 0.0.0.0

      COFlag: 0x0                   Locator: N/A

 1 nexthop(s):

 PrefixIndex: 0                 OrigNexthop: 127.0.0.1

   RelyDepth: 0                 RealNexthop: 127.0.0.1

   Interface: 1410                LocalAddr: 127.0.0.1

    VrfIndex: 0                    Topology: base

      Weight: 0                       Flags: 0x0

 SRPolicyNID: 4294967295        SRInterface: 0

 ColorWeight: 0                     Locator: N/A

  MemberPort: 0               SRL2Interface: 0

Table 19 Command output

Field

Description

Total number of records

Total number of next hop records.

Limit of records

Maximum number of next hop records.

Time

Date and time when a record was generated.

Action

Action on the next hop in the record:

·     update.

·     delete.

NibID

ID of the next hop.

VNID

VN entry ID.

Sequence

Sequence number of the next hop.

Version

Version of the next hop.

Flag

Flag of the next hop.

ExtFlags

Flags of extended next hop information.

RefCnt

Reference count of the next hop.

FlushRefCnt

Reference count of the next hop that is flushed to the FIB.

Type

Next hop type.

VrfIndex

VPN instance index.

Nexthop

Next hop address.

IfIndex

Output interface index.

LocalAddr

Local interface address.

ExtType

Extended type of the next hop.

NibInstance

Instance or protocol generated the next hop information:

·     IFM—Interface management instance.

·     USR—Static routing.

·     RIP—RIP or RIPng.

·     OSPF—OSPF or OSPFv3.

·     ISIS—IS-IS or IPv6 IS-IS.

·     LISP—LISP.

·     BGP—BGP or BGP4+.

·     RIB—IP routing table instance.

·     EVPN—EVPN instance.

·     EIGRP—EIGRP or EIGRPv6.

·     UNR—User network routing instance.

·     SRV6—SRv6.

·     None—Unknown or invalid instance.

UserKey0

Reserved data 1.

UserKey1

Reserved data 2.

NewUK0

New reserved data 1.

NewUK1

New reserved data 2.

NewUK2

New reserved data 3.

NewUK3

New reserved data 4.

NewUK4

New reserved data 5.

NewUK5

New reserved data 6.

NewUK6

New reserved data 7.

NewUK7

New reserved data 8.

SIDIndex

SID index value.

SrPolicyName

Name of an SR-MPLS TE policy.

Color

Color extended community attribute.

OriNexthop

Original next hop address of the route.

If the route is obtained from a BGP UPDATE message, the address is the next hop IP address in the BGP UPDATE message.

COFlag

Flag of the color extended community attribute.

Locator

IPv6 prefix of the locator to which the SID belongs.

If no locator is available, this field displays N/A.

SubType

Subtype of the parent NIB.

SubNibID

ID of the sub-next hop.

SubSeq

Sequence number of the sub-next hop.

NthpCnt

Number of sub-next hops.

Samed

Number of the same sub-next hops.

NthpType

Type of the sub-next hop:

·     IP—IP forwarding.

·     MPLS—MPLS forwarding.

x nexthop (s)

Number of next hops.

PrefixIndex

Prefix index of the next hop for an ECMP route.

OrigNexthop

Original next hop.

RelyDepth

Recursion depth.

RealNexthop

Real next hop.

Interface

Output interface.

Topology

Topology name. The topology name for the IPv4 public network is base. This field is blank for IPv6, because IPv6 does not support non-base topologies.

Weight

ECMP route weight. This field displays 0 for non-ECMP routes.

Flags

Flags of the current next hop.

SRPolicyNID

NIB ID of the route obtained from an SR-MPLS TE policy through route recursion.

SRInterface

Output interface of the route obtained from the SR-MPLS TE policy through route recursion.

ColorWeight

Weight value of the color attribute in the SR-MPLS TE policy.

Locator

IPv6 prefix of the locator to which the SID belongs.

If no locator is available, this field displays N/A.

MemberPort

Index of a member port in an aggregation group. When this attribute is not available, the field displays 0.

SRL2Interface

Number of a member port in an aggregation group. When this attribute is not available, the field displays 0.

 

# Display brief information about the records for the next hops received by the RIB from the routing protocol.

<Sysname> display rib nib record receive

 

Total number of records: 2

 

Date   Time         Action NibID      NibInstance

210907 14:42:09:471 add    0x10000003 IFM

210907 15:35:45:190 delete 0x10000003 IFM

Table 20 Command output

Field

Description

Total number of records

Total number of next hop records.

Date

Date when a record was generated.

Time

Time when the record was generated.

Action

Action on the next hop in the record:

·     add.

·     update.

·     delete.

NibID

ID of the next hop.

NibInstance

Instance or protocol generated the next hop information:

·     IFM—Interface management instance.

·     USR—Static routing.

·     RIP—RIP or RIPng.

·     OSPF—OSPF or OSPFv3.

·     ISIS—IS-IS or IPv6 IS-IS.

·     LISP—LISP.

·     BGP—BGP or BGP4+.

·     RIB—IP routing table instance.

·     EVPN—EVPN instance.

·     EIGRP—EIGRP or EIGRPv6.

·     UNR—User network routing instance.

·     SRV6—SRv6.

·     None—Unknown or invalid instance.

 

# Display detailed information about the records for the added next hops received by the RIB from the routing protocol.

<Sysname> display rib nib record receive add verbose

 

Total number of records: 1

Limit of records: 1000

 

        Time: 210928 14:39:14:148    Action: add

       NibID: 0x10000000           Sequence: 0

 NibInstance: IFM                   Version: 1

        Flag: 0x0                   UsrData: 0xffffffffffffffff

        Type: 0x1                   ExtType: 0x0

    VrfIndex: 0                     VrfName: default-vrf

  InstanceId: 0                     Nexthop: 127.0.0.1

     IfIndex: 1410                LocalAddr: 127.0.0.1

    UserKey0: 0x0                  UserKey1: 0x0

      NewUK0: 0x0                    NewUK1: 0x0

      NewUK2: 0x0                    NewUK3: 0x0

      NewUK4: 0x0                    NewUK5: 0x0

      NewUK6: 0x0                    NewUK7: 0x0

       Color: 0                      COFlag: 0x0

   BandWidth: 0                      Weight: 0

   ProtNibID: 0xffffffff           NibFlags: 0x0

    SIDIndex: 0x0              SrPolicyName:

 1 nexthop(s):

 PrefixIndex: 0                 OrigNexthop: 127.0.0.1

   RelyDepth: 0                 RealNexthop: 127.0.0.1

   Interface: 1410                LocalAddr: 127.0.0.1

    VrfIndex: 0                    Topology: base

      Weight: 0                       Flags: 0x0

 SRPolicyNID: 4294967295        SRInterface: 0

 ColorWeight: 0                     Locator: N/A

  MemberPort: 0               SRL2Interface: 0

Table 21 Command output

Field

Description

Total number of records

Total number of next hop records.

Limit of records

Maximum number of next hop records.

Time

Date and time when a record was generated.

Action

Action on the next hop in the record:

·     add.

·     update.

·     delete.

NibID

Next hop ID.

Sequence

Next hop sequence number.

NibInstance

Instance or protocol generated the next hop information:

·     IFM—Interface management instance.

·     USR—Static routing.

·     RIP—RIP or RIPng.

·     OSPF—OSPF or OSPFv3.

·     ISIS—IS-IS or IPv6 IS-IS.

·     LISP—LISP.

·     BGP—BGP or BGP4+.

·     RIB—IP routing table instance.

·     EVPN—EVPN instance.

·     EIGRP—EIGRP or EIGRPv6.

·     UNR—User network routing instance.

·     SRV6—SRv6.

·     None—Unknown or invalid instance.

Version

Version of the next hop.

Flag

Flag of the next hop.

UsrData

Protocol private data.

VrfIndex

VPN instance index.

VrfName

Name of the VPN instance to which the route belongs. If the route belongs to the public network, this field displays default-vrf.

Type

Next hop type.

Nexthop

Next hop address.

ExtType

Extended type of the next hop.

LocalAddr

Local interface address.

InstanceId

ID of the multi-instance process.

IfIndex

Interface index.

UserKey0

Reserved data 1.

UserKey1

Reserved data 2.

NewUK0

New reserved data 1.

NewUK1

New reserved data 2.

NewUK2

New reserved data 3.

NewUK3

New reserved data 4.

NewUK4

New reserved data 5.

NewUK5

New reserved data 6.

NewUK6

New reserved data 7.

NewUK7

New reserved data 8.

Color

Color extended community attribute.

COFlag

Flag of the color extended community attribute.

BandWidth

Bandwidth of the link associated with the next hop.

Weight

ECMP route weight. This field displays 0 for non-ECMP routes.

ProtNibID

Next hop ID carried by the protocol.

NibFlags

Flags of the next hop.

SIDIndex

SID index value.

SrPolicyName

SR-MPLS TE policy name.

SubType

Subtype of the parent NIB.

SubNibID

ID of the sub-next hop.

SubSeq

Sequence number of the sub-next hop.

NthpCnt

Number of sub-next hops.

Samed

Number of the same sub-next hops.

NthpType

Type of the sub-next hop:

·     IP—IP forwarding.

·     MPLS—MPLS forwarding.

x nexthop (s)

Number of next hops.

PrefixIndex

Prefix index of the next hop for an ECMP route.

OrigNexthop

Original next hop.

RelyDepth

Recursion depth.

RealNexthop

Real next hop.

Interface

Output interface.

Topology

Topology name. The topology name for the IPv4 public network is base. This field is blank for IPv6, because IPv6 does not support non-base topologies.

Flags

Flags of the detailed next hop.

SRPolicyNID

NIB ID of the route obtained from an SR-MPLS TE policy through route recursion.

SRInterface

Output interface of the route obtained from the SR-MPLS TE policy through route recursion.

ColorWeight

Weight value of the color attribute in the SR-MPLS TE policy.

Locator

IPv6 prefix of the locator to which the SID belongs.

If no locator is available, this field displays N/A.

MemberPort

Index of a member port in an aggregation group. When this attribute is not available, the field displays 0.

SRL2Interface

Number of a member port in an aggregation group. When this attribute is not available, the field displays 0.

display route-direct nib

Use display route-direct nib to display next hop information for direct routes.

Syntax

display route-direct nib [ nib-id ] [ verbose ]

Views

Any view

Predefined user roles

network-admin

network-operator

Parameters

nib-id: Specifies a NIB by its ID, a hexadecimal string in the range of 0 to ffffffff.

verbose: Displays detailed next hop information for direct routes. If you do not specify this keyword, the command displays brief next hop information for direct routes.

Examples

# Display brief next hop information for direct routes.

<Sysname> display route-direct nib

Total number of nexthop(s): 116

 

      NibID: 0x10000000        Sequence: 0

       Type: 0x1                Flushed: Yes

        Age: 00h01m50s

   UserKey0: 0x0                VrfNthp: 0

   UserKey1: 0x0                Nexthop: 0.0.0.0

    IFIndex: 0x111            LocalAddr: 0.0.0.0

 MemberPort: 0x0

   TopoNthp: 0                  ExtType: 0x0

      Color: 0                   COFlag: 0x0

   SIDIndex: 0x0                SRPName:

 OriNexthop: 0.0.0.0

 

      NibID: 0x10000001        Sequence: 1

       Type: 0x1                Flushed: Yes

        Age: 00h01m50s

   UserKey0: 0x0                VrfNthp: 0

   UserKey1: 0x0                Nexthop: 127.0.0.1

    IFIndex: 0x112            LocalAddr: 127.0.0.1

 MemberPort: 0x0

   TopoNthp: 0                  ExtType: 0x0

      Color: 0                   COFlag: 0x0

   SIDIndex: 0x0                SRPName:

 OriNexthop: 0.0.0.0

 

...

Table 22 Command output

Field

Description

NibID

ID of the NIB.

Sequence

Sequence number of the NIB.

Type

Type of the NIB.

Flushed

Indicates whether the route with the NIB has been flushed to the FIB.

Age

Time when the next hop information was updated most recently.

UserKey0

Reserved data 1.

UserKey1

Reserved data 2.

VrfNthp

Index of the VPN instance to which the next hop belongs. This field displays 0 if the next hop is on the public network.

Nexthop

Next hop address.

IFIndex

Interface index.

LocalAddr

Local interface IP address.

MemberPort

Index of a member port in an aggregation group.

NewUK0

New reserved data 1.

This field is not displayed if the attribute is not available.

NewUK1

New reserved data 2.

This field is not displayed if the attribute is not available.

NewUK2

New reserved data 3.

This field is not displayed if the attribute is not available.

NewUK3

New reserved data 4.

This field is not displayed if the attribute is not available.

NewUK4

New reserved data 5.

This field is not displayed if the attribute is not available.

NewUK5

New reserved data 6.

This field is not displayed if the attribute is not available.

NewUK6

New reserved data 7.

This field is not displayed if the attribute is not available.

NewUK7

New reserved data 8.

This field is not displayed if the attribute is not available.

NewUK8

New reserved data 9.

This field is not displayed if the attribute is not available.

NewUK9

New reserved data 10.

This field is not displayed if the attribute is not available.

NewUK10

New reserved data 11.

This field is not displayed if the attribute is not available.

NewUK11

New reserved data 12.

This field is not displayed if the attribute is not available.

NewUK12

New reserved data 13.

This field is not displayed if the attribute is not available.

TopoNthp

Non-base topologies are not supported in the current software version.

Index of the topology that contains the next hop. This field displays 0 if the next hop is on the IPv4 public network. This field displays Invalid if the next hop is on an IPv6 network, because the router does not support non-base topologies.

ExtType

Extension type of the next hop.

Color

Color extended community attribute.

COFlag

Flag of the color extended community attribute.

SIDIndex

SID index value.

SRPName

SR-MPLS TE policy name.

OriNexthop

Original next hop address of the route.

If the route is obtained from a BGP UPDATE message, the address is the next hop IP address in the BGP UPDATE message.

 

# Display detailed next hop information for direct routes.

<Sysname> display route-direct nib verbose

Total number of nexthop(s): 116

 

      NibID: 0x10000000        Sequence: 0

       Type: 0x1                Flushed: Yes

        Age: 00h01m50s

   UserKey0: 0x0                VrfNthp: 0

   UserKey1: 0x0                Nexthop: 0.0.0.0

    IFIndex: 0x111            LocalAddr: 0.0.0.0

 MemberPort: 0x0

   TopoNthp: 0                  ExtType: 0x0

      Color: 0                   COFlag: 0x0

   SIDIndex: 0x0                SRPName:

 OriNexthop: 0.0.0.0

     RefCnt: 2              FlushRefCnt: 0

       Flag: 0x2                Version: 1

    ExtFlag: 0x0

 1 nexthop(s):

PrefixIndex: 0              OrigNexthop: 0.0.0.0

  RelyDepth: 0              RealNexthop: 0.0.0.0

  Interface: NULL0            LocalAddr: 0.0.0.0

  TunnelCnt: 0                      Vrf: default-vrf

   TunnelID: N/A               Topology: base

     Weight: 0                    Flags: 0x0

SRPolicyNID: 4294967295     SRInterface:

ColorWeight: 0                  Locator: N/A

 MemberPort: N/A

 

      NibID: 0x10000001        Sequence: 1

       Type: 0x1                Flushed: Yes

        Age: 00h01m50s

   UserKey0: 0x0                VrfNthp: 0

   UserKey1: 0x0                Nexthop: 127.0.0.1

    IFIndex: 0x112            LocalAddr: 127.0.0.1

 MemberPort: 0x0

   TopoNthp: 0                  ExtType: 0x0

      Color: 0                   COFlag: 0x0

   SIDIndex: 0x0                SRPName:

 OriNexthop: 0.0.0.0

     RefCnt: 5              FlushRefCnt: 0

       Flag: 0x2                Version: 1

    ExtFlag: 0x0

 1 nexthop(s):

PrefixIndex: 0              OrigNexthop: 127.0.0.1

  RelyDepth: 0              RealNexthop: 127.0.0.1

  Interface: InLoop0          LocalAddr: 127.0.0.1

  TunnelCnt: 0                      Vrf: default-vrf

   TunnelID: N/A               Topology: base

     Weight: 0                    Flags: 0x0

SRPolicyNID: 4294967295     SRInterface:

ColorWeight: 0                  Locator: N/A

 MemberPort: N/A

...

Table 23 Command output

Field

Description

NibID

ID of the next hop.

Sequence

Sequence number of the next hop.

Type

Type of the next hop.

Flushed

Indicates whether the route with the next hop has been flushed to the FIB.

Age

Time when the next hop information was updated most recently.

UserKey0

Reserved data 1.

VrfNthp

Index of the VPN instance to which the next hop belongs. This field displays 0 if the next hop is on the public network.

UserKey1

Reserved data 2.

Nexthop

Next hop address.

IFIndex

Interface index.

LocalAddr

Local interface address.

MemberPort

Index of a member port in an aggregation group.

NewUK0

New reserved data 1.

This field is not displayed if the attribute is not available.

NewUK1

New reserved data 2.

This field is not displayed if the attribute is not available.

NewUK2

New reserved data 3.

This field is not displayed if the attribute is not available.

NewUK3

New reserved data 4.

This field is not displayed if the attribute is not available.

NewUK4

New reserved data 5.

This field is not displayed if the attribute is not available.

NewUK5

New reserved data 6.

This field is not displayed if the attribute is not available.

NewUK6

New reserved data 7.

This field is not displayed if the attribute is not available.

NewUK7

New reserved data 8.

This field is not displayed if the attribute is not available.

NewUK8

New reserved data 9.

This field is not displayed if the attribute is not available.

NewUK9

New reserved data 10.

This field is not displayed if the attribute is not available.

NewUK10

New reserved data 11.

This field is not displayed if the attribute is not available.

NewUK11

New reserved data 12.

This field is not displayed if the attribute is not available.

NewUK12

New reserved data 13.

This field is not displayed if the attribute is not available.

TopoNthp

Non-base topologies are not supported in the current software version.

Index of the topology that contains the next hop. This field displays 0 if the next hop is on the IPv4 public network. This field displays Invalid if the next hop is on an IPv6 network, because the router does not support non-base topologies.

ExtType

Extension type of the next hop.

Color

Color extended community attribute.

COFlag

Flag of the color extended community attribute.

SIDIndex

SID index value.

SRPName

SR-MPLS TE policy name.

OriNexthop

Original next hop address of the route.

If the route is obtained from a BGP UPDATE message, the address is the next hop IP address in the BGP UPDATE message.

RefCnt

Reference count of the next hop.

FlushRefCnt

Reference count of the next hop that is flushed to the FIB.

Flag

Flag of the next hop.

Version

Version of the next hop.

ExtFlag

Extended flag of the next hop.

x nexthop(s)

Number of next hops.

PrefixIndex

Prefix index of the next hop for an ECMP route.

OrigNexthop

Original next hop.

RelyDepth

Recursion depth.

RealNexthop

Real next hop.

Interface

Output interface.

LocalAddr

Local interface address.

TunnelCnt

Number of tunnels after route recursion.

Vrf

VPN instance name. For the public network, this field displays default-vrf.

TunnelID

ID of the tunnel after route recursion.

Topology

Non-base topologies are not supported in the current software version.

Topology name. The topology name for the IPv4 public network is base. This field is blank for IPv6, because IPv6 does not support non-base topologies.

Weight

ECMP route weight. This field displays 0 for non-ECMP routes.

Flags

Flags of the detailed next hop.

SRPolicyNID

NIB ID of the route obtained from an SR-MPLS TE policy through route recursion.

SRInterface

Output interface of the route obtained from the SR-MPLS TE policy through route recursion.

ColorWeight

Weight value of the color attribute in the SR-MPLS TE policy.

Locator

IPv6 prefix of the locator to which the SID belongs.

If no locator is available, this field displays N/A.

MemberPort

Number of a member port in an aggregation group.

If this attribute is not available, this field displays N/A.

fib lifetime

Use fib lifetime to set the maximum lifetime for IPv4 or IPv6 routes in the FIB.

Use undo fib lifetime to restore the default.

Syntax

fib lifetime seconds

undo fib lifetime

Default

The maximum lifetime for IPv4 or IPv6 routes in the FIB is 600 seconds.

Views

RIB IPv4 address family view

RIB IPv6 address family view

Predefined user roles

network-admin

Parameters

seconds: Specifies the maximum lifetime for routes in the FIB, in the range of 0 to 6000 seconds. When this argument is set to 0, FIB entries immediately age out after a protocol or RIB process switchover.

Usage guidelines

When a protocol or RIB process switchover occurs and GR is not configured, FIB entries age out after the time specified in this command.

Examples

# Set the maximum lifetime for IPv4 routes in the FIB to 60 seconds.

<Sysname> system-view

[Sysname] rib

[Sysname-rib] address-family ipv4

[Sysname-rib-ipv4] fib lifetime 60

flush route-attribute

Use flush route-attribute to enable the RIB to flush route attribute information to the FIB.

Use undo flush route-attribute remove the configuration.

Syntax

flush route-attribute protocol

undo flush route-attribute protocol

Default

The RIB does not flush route attribute information to the FIB.

Views

RIB IPv4 address family view

RIB IPv6 address family view

Predefined user roles

network-admin

Parameters

protocol: Specifies a routing protocol. In the current software version, only BGP is supported.

Examples

# Enable the RIB to flush BGP route attribute information to the FIB.

<Sysname> system-view

[Sysname] rib

[Sysname-rib] address-family ipv4

[Sysname-rib-ipv4] flush route-attribute bgp

inter-protocol ecmp

Use inter-protocol ecmp to enable routes from different protocols in the RIB IPv4 or IPv6 address family to form ECMP routes.

Use undo inter-protocol ecmp to restore the default.

Syntax

inter-protocol ecmp [ ignore-preference ] [ vpn-instance vpn-instance-name ]

undo inter-protocol ecmp [ vpn-instance vpn-instance-name ]

Default

Routes from different protocols cannot form ECMP routes.

Views

RIB IPv4 address family view

RIB IPv6 address family view

Predefined user roles

network-admin

Parameters

ignore-preference: Allows routes with different preferences to form ECMP routes. If you do not specify this keyword, only routes with the same preference can form ECMP routes.

vpn-instance vpn-instance-name: Specifies an MPLS L3VPN instance by its name, a case-sensitive string of 1 to 31 characters. If you do not specify a VPN instance, the command enables routes from different protocols in the public network to form ECMP routes.

Usage guidelines

By default, routes from different protocols have different preferences, and the route costs are calculated in different ways. Such routes cannot form ECMP routes. Configure this command to ignore the costs for routes from different protocols, so that they can form ECMP routes.

For routes from multiple protocols with the same destination to form ECMP routes, follow these restrictions and guidelines:

·     If you do not specify the ignore-preference keyword, routes with the highest priority will form ECMP routes. You can edit the preferences for routes from different protocols to the same value, so that they can form ECMP routes.

·     If you specify the ignore-preference keyword, multiple routes will form ECMP routes.

If you configure both this command and the inter-protocol fast-reroute command, only this command takes effect.

Examples

# Enable routes from different protocols in the RIB IPv4 address family of the public network to form ECMP routes.

<Sysname> system-view

[Sysname] rib

[Sysname-rib] address-family ipv4

[Sysname-rib-ipv4] inter-protocol ecmp

inter-protocol fast-reroute

Use inter-protocol fast-reroute to enable IPv4 or IPv6 RIB inter-protocol FRR.

Use undo inter-protocol fast-reroute to disable IPv4 or IPv6 RIB inter-protocol FRR.

Syntax

inter-protocol fast-reroute [ ecmp-shared ] [ vpn-instance vpn-instance-name ]

undo inter-protocol fast-reroute [ vpn-instance vpn-instance-name ]

Default

Inter-protocol FRR is disabled.

Views

RIB IPv4 address family view

RIB IPv6 address family view

Predefined user roles

network-admin

Parameters

ecmp-shared: Specify a shared next hop for ECMP routes. Multiple ECMP routes use the same backup next hop. If you do not specify this keyword, the device performs backup next hop calculation for only non-ECMP routes.

vpn-instance vpn-instance-name: Specifies an MPLS L3VPN instance by its name, a case-sensitive string of 1 to 31 characters. If you do not specify a VPN instance, the command enables IPv4 or IPv6 RIB inter-protocol FRR for the public network.

Usage guidelines

This command allows a device to perform fast rerouting between routes of different protocols. A backup next hop is automatically selected to reduce the service interruption time caused by unreachable next hops. When the next hop of the primary link fails, the traffic is redirected to the backup next hop.

This command uses the next hop of a route from a different protocol as the backup next hop for the faulty route, which might cause loops.

Inter-protocol FRR cannot select a backup next hop from routes in the RIB that have the same next hop, output interface, and destination as those of the faulty route.

If you specify the ecmp-shared keyword, the device calculates a shared backup next hop for multiple ECMP routes with the same destination. This backup next hop is from a different protocol than the ECMP routes. When all next hops of the ECMP routes fail, RIB replaces them with the backup next hop, and issues the backup next hop to the FIB as an ECMP route. You can view the detailed route information with the display ip routing-table command. The route with the Backup state in the output indicates the backup next hop. If the backup next hop is the same as a next hop of an ECMP route, RIP will not issue the backup next hop to the FIB. In this case, the backup next hop will not take effect.

If you configure both this command and the inter-protocol ecmp command, this command will not take effect.

Examples

# Enable IPv4 RIB inter-protocol FRR for the public network.

<Sysname> system-view

[Sysname] rib

[Sysname-rib] address-family ipv4

[Sysname-rib-ipv4] inter-protocol fast-reroute

ipv6 route-direct track

Use ipv6 route-direct track to associate a track entry with the IPv6 direct route on an interface and apply a cost value to the IPv6 direct route after the track entry changes to Negative state.

Use undo ipv6 route-direct track to restore the default.

Syntax

ipv6 route-direct track track-entry-number degrade-cost cost-value

undo ipv6 route-direct track

Default

No track entry is associated with the IPv6 direct route on an interface.

Views

Interface view

Predefined user roles

network-admin

Parameters

track-entry-number: Specifies a track entry ID in the range of 1 to 1024.

degrade-cost cost-value: Specifies a cost value to apply to the IPv6 direct route after the track entry changes to Negative state. The value range for the cost-value argument is 1 to 4294967295.

Usage guidelines

On a network where an IPv6 VRRP group is used as the default gateway, upstream traffic is always forwarded through the master device in the IPv6 VRRP group. The corresponding downstream traffic might take a different path because the route selection is determined by the configured dynamic routing protocol. The mismatching forwarding paths might cause the traffic to be blocked by firewalls (if configured), and increase the complexity and overhead for traffic monitoring and statistics collection operations.

You can resolve the issue by configuring IPv6 direct route-Track-IPv6 VRRP collaboration. The collaboration ensures that the upstream traffic and the corresponding downstream traffic are forwarded through matching paths (both through the master device in the IPv6 VRRP group).

To configure IPv6 direct route-Track-IPv6 VRRP collaboration, perform the following tasks on each member device of the IPv6 VRRP group:

1.     Create a track entry associated with the IPv6 VRRP group member device so the track entry state changes according to the status of the device in the IPv6 VRRP group.

¡     If the device state is Backup or Initialize, the track entry state changes to Negative.

¡     If the device state is Master, the track entry state changes to Positive.

¡     If the device state is Inactive or the IPv6 VRRP group does not exist, the track entry state changes to NotReady.

2.     Associate the track entry with the IPv6 direct route on the interface connected to the downstream device. The cost value of the IPv6 direct route on the interface changes according to the status of the track entry.

¡     If the track entry does not exist or the track entry is in NotReady or Positive state, the cost of the IPv6 direct route changes to 0.

¡     If the track entry is in Negative state, the cost of the IPv6 direct route changes to the value configured by using the ipv6 route-direct track command.

 

IMPORTANT

IMPORTANT:

The IPv6 direct route that has a lower cost value is preferentially used.

 

3.     Enable IPv6 direct route redistribution on the IPv6 VRRP group member device for the dynamic routing protocol.

For more information about associating Track with an IPv6 VRRP group, see Track configuration in High Availability Configuration Guide.

The IPv6 direct route on an interface can be associated only with one track entry. To change the track entry associated with the IPv6 direct route on an interface, you must first execute the undo ipv6 route-direct track command to remove the original association.

Examples

# Associate track entry 1 with the IPv6 direct route on Ten-GigabitEthernet 3/0/1 and apply cost 200 to the IPv6 direct route after the track entry changes to Negative state.

<Sysname> system-view

[Sysname] interface ten-gigabitethernet 3/0/1

[Sysname-Ten-GigabitEthernet3/0/1] ipv6 route-direct track 1 degrade-cost 200

Related commands

track vrrp ipv6 (High Availability Command Reference)

maintenance-probe enable

Use maintenance-probe enable to enable maintenance probe (MTP).

Use undo maintenance-probe enable to disable MTP.

Syntax

maintenance-probe enable

undo maintenance-probe enable

Default

MTP is disabled.

Views

System view

Predefined user roles

network-admin

Usage guidelines

MTP enables the device to automatically perform the following operations upon expiration of a neighbor's hold timer:

1.     Ping the neighbor or trace the route to the neighbor.

2.     Record the ping or tracert results.

To view fault information, use the display commands of routing protocols, for example, the display ospf troubleshooting command. To view detailed MTP information, use the display logbuffer command.

Examples

# Enable MTP.

<Sysname> system-view

[Sysname] maintenance-probe enable

Related commands

display bgp troubleshooting

display logbuffer (Network Management and Monitoring Command Reference)

display ospf troubleshooting

nexthop recursive-lookup restrain

Use nexthop recursive-lookup restrain to configure route recursion suppression.

Use undo nexthop recursive-lookup restrain to restore the default.

Syntax

nexthop recursive-lookup restrain { maximum-interval [ minimum-interval [ incremental-interval ] ] | millisecond interval }

undo nexthop recursive-lookup restrain

Default

Route recursion suppression is disabled.

Views

RIB IPv4 address family view

RIB IPv6 address family view

Predefined user roles

network-admin

Parameters

maximum-interval: Specifies the maximum suppression timer in the range of 1 to 60 seconds.

minimum-interval: Specifies the minimum suppression timer in the range of 10 to 60000 milliseconds. The default value is 50.

incremental-interval: Specifies the incremental timer in the range of 10 to 60000 milliseconds. The default value is 200.

millisecond interval: Specifies a fixed suppression timer in the range of 10 to 10000 milliseconds.

Usage guidelines

A change of a related route or tunnel obtained through nexthop recursion triggers another recursion for the recursive route. When the network changes frequently, the route recursion is performed repeatedly, which causes high CPU usage. To solve this issue, use this command for the RIB to wait for the suppression timer to expire before obtaining the recursion result. In this way, the route recursion is performed less often and the CPU usage can be reduced. However, this command can result in lower route recursion efficiency and slow route convergence. Use this command as needed make sure the parameters are appropriate.

After you use this command, no matter how the route recursion results change within the suppression timer, the RIB always obtains the most recent results after the suppression timer expires.

To dynamically suppress route recursion, configure at least the maximum suppression timer. If the route recursion results keep changing, the suppression time increases until the maximum suppression timer expires or the recursion results stop changing.

The dynamic suppression time (T) is calculated based on the number of route recursions (N), as follows:

·     When N = 1, T = minimum-interval.

·     When N ≥ 2, T = minimum-interval + incremental-interval × [ 2 ^ ( N - 2 ) ], and T ≤ maximum-interval.

·     When T reaches maximum-interval for three consecutive times, T = minimum-interval in the next recursion, and N becomes 1.

·     If the recursion results have not changed in two times the maximum-interval, T = minimum-interval in the next recursion, and N becomes 1.

The value for the minimum-interval or incremental-interval argument cannot be greater than that for the maximum-interval argument.

The suppression timer settings apply to only the next route recursion.

If you execute this command multiple times, the most recent configuration takes effect.

The actual suppression timer equals the sum of the suppression timer configured in this command and the timer configured in any of the following commands:

·     nexthop recursive-lookup restrain (BGP instance view/BGP-VPN instance view)

·     nexthop recursive-lookup delay (BGP address family view)

Examples

# Set the maximum suppression timer, minimum suppression timer, and incremental timer for IPv4 route recursion to 60 seconds, 500 milliseconds, and 1000 milliseconds, respectively.

<Sysname> system-view

[Sysname] rib

[Sysname-rib] address-family ipv4

[Sysname-rib-ipv4] nexthop recursive-lookup restrain 60 500 1000

# Set the fixed suppression timer for IPv6 route recursion to 1000 milliseconds.

<Sysname> system-view

[Sysname] rib

[Sysname-rib] address-family ipv6

[Sysname-rib-ipv6] nexthop recursive-lookup restrain millisecond 1000

Related commands

nexthop recursive-lookup delay

nexthop recursive-lookup restrain

nexthop recursive-lookup restrain clear-interval

Use nexthop recursive-lookup restrain clear-interval to set the interval for clearing the recursion loop counter.

Use undo nexthop recursive-lookup restrain clear-interval to restore the default.

Syntax

nexthop recursive-lookup restrain clear-interval interval

undo nexthop recursive-lookup restrain clear-interval

Default

The interval for clearing the recursion loop counter is 600 seconds.

Views

RIB IPv4 address family view

RIB IPv6 address family view

Predefined user roles

network-admin

Parameters

clear-interval interval: Specifies the interval for clearing the recursion loop counter, in the range of 1 to 65535 seconds.

Usage guidelines

Recursion loop suppression enables the system to use a counter to record the number of route recursion failures. When the counter reaches 20, the system suppresses route recursion for a specified period of time. When the suppression time expires, the system resets the counter and disables route recursion suppression.

Examples

# Set the interval for clearing the recursion loop counter to 100 seconds.

<Sysname> system-view

[Sysname] rib

[Sysname-rib] address-family ipv4

[Sysname-rib-ipv4] nexthop recursive-lookup restrain clear-interval 100

nexthop recursive-lookup restrain disable

Use nexthop recursive-lookup restrain disable to disable the suppression for next hop recursion loop.

Use undo nexthop recursive-lookup restrain disable to enable the suppression for next hop recursion loop.

Syntax

nexthop recursive-lookup restrain disable

undo nexthop recursive-lookup restrain disable

Default

Suppression for next hop recursion loop is enabled.

Views

RIB IPv4 address family view

RIB IPv6 address family view

Predefined user roles

network-admin

Usage guidelines

A recursion loop occurs when a route recurses to a related route that recurses back to the route. It causes a route recursion failure and further lookup for a related route. If recursion loop persists, continuous route flapping will cause high system resource consumption and CPU utilization.

This command enables the system to use a counter to record the number of route recursion failures. When the counter reaches 20, the system suppresses route recursion for a specified period of time to save system resources on the device.

Examples

# Disable the suppression for next hop recursion loop.

<Sysname> system-view

[Sysname] rib

[Sysname-rib] address-family ipv4

[Sysname-rib-ipv4] nexthop recursive-lookup restrain disable

primary-path-detect bfd

Use primary-path-detect bfd to use BFD to detect the next hop availability of the primary route for inter-protocol FRR or ECMP routes.

Use undo primary-path-detect bfd to cancel the configuration that uses BFD to detect the next hop availability of the primary route for inter-protocol FRR or ECMP routes.

Syntax

primary-path-detect bfd { ctrl | echo } [ inter-protocol-frr | protocol-ecmp protocol ]

undo primary-path-detect bfd [ inter-protocol-frr | protocol-ecmp protocol ]

Default

BFD is not used for detecting the next hop availability of the primary route for inter-protocol FRR or ECMP routes.

Views

RIB IPv4 address family view

RIB IPv6 address family view

Predefined user roles

network-admin

Parameters

ctrl: Specifies the BFD control packet mode.

echo: Specifies the BFD echo packet mode.

inter-protocol-frr: Detects the next hop availability of the primary route for inter-protocol FRR.

protocol-ecmp protocol: Detects the next hop availability of the primary route for ECMP routes of a routing protocol.

·     In RIB IPv4 address family view, the value for the protocol argument can be bgp, isis, ospf, or static.

·     In RIB IPv6 address family view, the value for the protocol argument depends on the BFD mode.

¡     In BFD control packet mode, the value can be bgp4+, isisv6, ospfv3, or static.

¡     In BFD echo packet mode, the value can be bgp4+ or static.

Usage guidelines

This command enables the device to automatically create an IPFRR type of BFD session. The device uses this BFD session to detect the next hop availability of the primary route to speed traffic switchover when the next hop of the primary route fails.

·     For inter-protocol FRR, the primary route is the route with the highest preference among the routes to the same destination.

·     For ECMP routes of a routing protocol, the primary route is each ECMP route. If you specify the ecmp-shared keyword when configuring FRR for a routing protocol, the device will use the LFA algorithm to calculate backup next hops for each ECMP route. The routes destined for the backup next hops are also added to the routing table as ECMP routes and the state of these routes is backup. BFD does not detect these backup ECMP routes.

This command can take effect and automatically establish the IPFRR type of BFD session only when a primary route exists and the primary route has backup next hops.

You can execute this command multiple times to change the BFD mode (echo packet mode or control packet mode).

If you do not specify the inter-protocol-frr or protocol-ecmp keyword, the command applies to both inter-protocol FRR and ECMP routes. The command without the inter-protocol-frr and protocol-ecmp keywords takes precedence over that with the inter-protocol-frr or protocol-ecmp keyword. For example, if you have used the primary-path-detect bfd ctrl command, you can use only the following commands to modify or cancel the command configuration:

·     primary-path-detect bfd echo.

·     undo primary-path-detect bfd.

When you use a BFD session in control packet mode to detect the next hop availability of the primary route, you must manually create a static BFD session on the next hop device. The reason is that the BFD session in control packet mode requires negotiation of both ends for successful establishment. The local device can use the BFD session in control packet mode to detect the next hop availability of the primary route only when the static BFD session created on the next hop device of the primary route meets the following requirements:

·     The static BFD session is a single-hop BFD session in control packet mode.

·     The source IP address of the static BFD session is the destination IP address of the local automatically created BFD session.

·     The destination IP address of the static BFD session is the source IP address of the local automatically created BFD session.

·     The remote discriminator of the static BFD session is the local discriminator of the local automatically created BFD session.

For more information about static BFD session creation, see BFD configuration in High Availability Configuration Guide.

When service modules other than RIB, for example, BGP, OSPF, or IS-IS, use BFD to detect the next hop availability of the primary route, they also automatically create a BFD session. If the BFD session automatically created by these service modules detects the availability of the same next hop as RIB, the device does not automatically create the same type of BFD session for RIB. Instead, RIB will use the existing BFD session.

Examples

# Use BFD in control packet mode to detect the next hop availability of the primary route for IS-IS ECMP routes.

<Sysname> system-view

[Sysname] rib

[Sysname-rib] address-family ipv4

[Sysname-rib-ipv4] primary-path-detect bfd ctrl protocol-ecmp isis

Related commands

display ip routing-table

fast-reroute

inter-protocol fast-reroute

protocol lifetime

Use protocol lifetime to set the maximum lifetime for IPv4 or IPv6 routes and labels in the RIB.

Use undo protocol lifetime to restore the default.

Syntax

protocol protocol [ instance instance-name ] lifetime seconds

undo protocol protocol [ instance instance-name ] lifetime

Default

The maximum lifetime for IPv4 or IPv6 routes and labels in the RIB is 900 seconds.

Views

RIB IPv4 address family view

RIB IPv6 address family view

Predefined user roles

network-admin

Parameters

protocol: Specifies a routing protocol.

instance instance-name: Specifies a BGP instance by its name, a case-sensitive string of 1 to 31 characters. This argument applies only to the BGP protocol. If you do not specify a BGP instance, this command sets the maximum lifetime for all BGP routes and labels in the RIB.

seconds: Specifies the maximum lifetime for routes and labels in the RIB, in the range of 1 to 6000 seconds.

Usage guidelines

When GR is enabled, make sure the protocol can complete GR and install all route entries to the RIB within the lifetime configured in this command.

Examples

# Set the maximum lifetime for RIP routes and labels in the RIB to 60 seconds.

<Sysname> system-view

[Sysname] rib

[Sysname-rib] address-family ipv4

[Sysname-rib-ipv4] protocol rip lifetime 60

protocol nexthop recursive-lookup

Use protocol nexthop recursive-lookup to configure routing policy-based recursive lookup.

Use undo protocol nexthop recursive-lookup to remove the configuration.

Syntax

protocol protocol nexthop recursive-lookup route-policy route-policy-name

undo protocol protocol nexthop recursive-lookup route-policy

Default

Routing policy-based recursive lookup is not configured.

Views

RIB IPv4 address family view

RIB IPv6 address family view

Predefined user roles

network-admin

Parameters

protocol: Specifies a routing protocol, which can be bgp or static in RIB IPv4 address family view or bgp4+ in RIB IPv6 address family view.

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

Usage guidelines

Configure routing policy-based recursive lookup to control route recursion results. For example, when a route changes, the routing protocol has to perform a route recursion if the next hop is indirectly connected. The routing protocol might select an incorrect path, which can cause traffic loss. To prevent this problem, you can use a routing policy to filter out incorrect routes. The routes that pass the filtering of the routing policy will be used for route recursion.

The apply clauses in the specified routing policy cannot take effect.

Make sure a minimum of one related route can match the routing policy for correct traffic forwarding.

The routing policy does not apply to routes received from directly connected BGP neighbors.

Examples

# Configure recursive lookup based on routing policy policy1 for BGP routes.

<Sysname> system-view

[Sysname] rib

[Sysname-rib] address-family ipv4

[Sysname-rib-ipv4] protocol bgp nexthop recursive-lookup route-policy policy1

record-limit

Use record-limit to set the maximum number of RIB next hop records or route entry records.

Use undo record-limit to restore the default.

Syntax

record-limit limit [ rib nib [ flush [ delete | update ] | receive [ add | delete | update ] ] ]

undo record-limit [ rib nib [ flush [ delete | update ] | receive [ add | delete | update ] ] ]

record-limit limit [ routing-table [ flush [ delete | update ] | notify [ delete | update ] | receive [ add | delete | update ] ] ]

undo record-limit [ routing-table [ flush [ delete | update ] | notify [ delete | update ] | receive [ add | delete | update ] ] ]

Default

The maximum number of RIB next hop records or route entry records is 1000.

Views

RIB IPv4 address family view

RIB IPv6 address family view

Predefined user roles

network-admin

Parameters

limit: Sets the maximum number of RIB next hop records or route entry records. The value range is 0 to 10000. To disable recording for RIB next hops or route entries, set the value to 0. When the number of records reaches the maximum number, the system can record new next hops or route entries. However, the new next hop or route entry records overwrite the oldest next hop or route entry records.

rib nib: Sets the maximum number of RIB next hop records.

routing-table: Sets the maximum number of route entry records.

flush: Sets the maximum number of records flushed from RIB to FIB.

notify: Sets the maximum number of records reported by RIB to routing protocols.

receive: Sets the maximum number of records received by RIB from routing protocols.

add: Sets the maximum number of records that contain the add action.

update: Sets the maximum number of records that contain the update action. If you specify the flush or notify keyword, records that contain the add action are also counted into the update category.

delete: Sets the maximum number of records that contain the delete action.

Usage guidelines

Repeat the command to set the maximum number for different types of records.

If you do not specify the rib nib or routing-table keywords, the command sets the maximum number for all types of RIB next hop and route entry records.

If you do not specify the add, delete, or update keyword, the command sets the maximum number for records that contain the add, delete, and update actions.

Examples

# Set the maximum number of next hop records and route entry records to 100 in the IPv4 RIB.

<Sysname> system-view

[Sysname] rib

[Sysname-rib] address-family ipv4

[Sysname-rib-ipv4] record-limit 100

# Set the maximum number of IPv4 route entry records to 200.

<Sysname> system-view

[Sysname] rib

[Sysname-rib] address-family ipv4

[Sysname-rib-ipv4] record-limit 200 routing-table

# Set the maximum number of next hop records that contain the add action to 300. The records are received by IPv4 RIB from routing protocols.

<Sysname> system-view

[Sysname] rib

[Sysname-rib] address-family ipv4

[Sysname-rib-ipv4] record-limit 300 rib nib receive

# Set the maximum number of route entry records that contain the update action to 400. The records are reported by IPv6 RIB to routing protocols.

<Sysname> system-view

[Sysname] rib

[Sysname-rib] address-family ipv6

[Sysname-rib-ipv6] record-limit 400 routing-table notify update

# Set the maximum number of next hop records that contain the delete action to 500. The records are flushed from IPv6 RIB to FIB.

<Sysname> system-view

[Sysname] rib

[Sysname-rib] address-family ipv6

[Sysname-rib-ipv6] record-limit 500 rib nib flush delete

reset ip routing-table record

Use reset ip routing-table record to clear IPv4 routing entry records.

Syntax

reset ip routing-table record

Views

User view

Predefined user roles

network-admin

Examples

# Clear IPv4 routing entry records.

<Sysname> reset ip routing-table record

reset ip routing-table statistics protocol

Use reset ip routing-table statistics protocol to clear IPv4 route statistics.

Syntax

reset ip routing-table statistics protocol [ vpn-instance vpn-instance-name ] { protocol | all }

reset ip routing-table [ all-routes | all-vpn-instance ] statistics protocol { protocol | all }

Views

User view

Predefined user roles

network-admin

Parameters

vpn-instance vpn-instance-name: Specifies an MPLS L3VPN instance by its name, a case-sensitive string of 1 to 31 characters.

all-routes: Clears route statistics for the public network and all VPN instances.

all-vpn-instance: Clears route statistics for all VPN instances.

protocol: Clears route statistics for a routing protocol.

all: Clears route statistics for all IPv4 routing protocols.

Usage guidelines

This command clears IPv4 route statistics for the public network if you do not specify the all-routes, vpn-instance, or all-vpn-instance keyword.

Examples

# Clear all IPv4 route statistics for the public network.

<Sysname> reset ip routing-table statistics protocol all

reset ipv6 rib nib record

Use reset ipv6 rib nib record to clear next hop records in the IPv6 RIB.

Syntax

reset ipv6 rib nib record

Views

User view

Predefined user roles

network-admin

Examples

# Clear next hop records in the IPv6 RIB.

<Sysname> reset ipv6 rib nib record

reset ipv6 routing-table record

Use reset ipv6 routing-table record to clear IPv6 routing entry records.

Syntax

reset ipv6 routing-table record

Views

User view

Predefined user roles

network-admin

Examples

# Clear IPv6 routing entry records.

<Sysname> reset ipv6 routing-table record

reset ipv6 routing-table statistics protocol

Use reset ipv6 routing-table statistics protocol to clear IPv6 route statistics.

Syntax

reset ipv6 routing-table statistics protocol [ vpn-instance vpn-instance-name ] { protocol | all }

reset ipv6 routing-table [ all-routes | all-vpn-instance ] statistics protocol { protocol | all }

Views

User view

Predefined user roles

network-admin

Parameters

vpn-instance vpn-instance-name: Specifies an MPLS L3VPN instance by its name, a case-sensitive string of 1 to 31 characters.

all-routes: Clears route statistics for the public network and all VPN instances.

all-vpn-instance: Clears route statistics for all VPN instances.

protocol: Clears route statistics for an IPv6 routing protocol.

all: Clears route statistics for all IPv6 routing protocols.

Usage guidelines

This command clears IPv6 route statistics for the public network if you do not specify the all-routes, vpn-instance, or all-vpn-instance keyword.

Examples

# Clear all IPv6 route statistics for the public network.

<Sysname> reset ipv6 routing-table statistics protocol all

reset rib nib record

Use reset rib nib record to clear next hop records in the IPv4 RIB.

Syntax

reset rib nib record

Views

User view

Predefined user roles

network-admin

Examples

# Clear next hop records in the IPv4 RIB.

<Sysname> reset rib nib record

rib

Use rib to enter RIB view.

Use undo rib to remove all configurations in RIB view.

Syntax

rib

undo rib

Views

System view

Predefined user roles

network-admin

Examples

# Enter RIB view.

<Sysname> system-view

[Sysname] rib

[Sysname-rib]

route-direct track

Use route-direct track to associate a track entry with the IPv4 direct route on an interface and apply a cost value to the IPv4 direct route after the track entry changes to Negative state.

Use undo route-direct track to restore the default.

Syntax

route-direct track track-entry-number degrade-cost cost-value

undo route-direct track

Default

No track entry is associated with the IPv4 direct route on an interface.

Views

Interface view

Predefined user roles

network-admin

Parameters

track-entry-number: Specifies a track entry ID in the range of 1 to 1024.

degrade-cost cost-value: Specifies a cost value to apply to the IPv4 direct route after the track entry changes to Negative state. The value range for the cost-value argument is 1 to 4294967295.

Usage guidelines

On a network where an IPv4 VRRP group is used as the default gateway, upstream traffic is always forwarded through the master device in the IPv4 VRRP group. The corresponding downstream traffic might take a different path because the route selection is determined by the configured dynamic routing protocol. The mismatching forwarding paths might cause the traffic to be blocked by firewalls (if configured), and increase the complexity and overhead for traffic monitoring and statistics collection operations.

You can resolve the issue by configuring IPv4 direct route-Track-IPv4 VRRP collaboration. The collaboration ensures that the upstream traffic and the corresponding downstream traffic are forwarded through matching paths (both through the master device in the IPv4 VRRP group).

To configure IPv4 direct route-Track-IPv4 VRRP collaboration, perform the following tasks on each member device of the IPv4 VRRP group:

1.     Create a track entry associated with the IPv4 VRRP group member device so the track entry state changes according to the status of the device in the IPv4 VRRP group.

¡     If the device state is Backup or Initialize, the track entry state changes to Negative.

¡     If the device state is Master, the track entry state changes to Positive.

¡     If the device state is Inactive or the IPv4 VRRP group does not exist, the track entry state changes to NotReady.

2.     Associate the track entry with the IPv4 direct route on the interface connected to the downstream device. The cost value of the IPv4 direct route on the interface changes according to the status of the track entry.

¡     If the track entry does not exist or the track entry is in NotReady or Positive state, the cost of the IPv4 direct route changes to 0.

¡     If the track entry is in Negative state, the cost of the IPv4 direct route changes to the value configured by using the route-direct track command.

 

IMPORTANT

IMPORTANT:

The IPv4 direct route that has a lower cost value is preferentially used.

 

3.     Enable IPv4 direct route redistribution on the IPv4 VRRP group member device for the dynamic routing protocol.

The IPv4 direct route on an interface can be associated only with one track entry. To change the track entry associated with the IPv4 direct route on an interface, you must first execute the undo route-direct track command to remove the original association.

Examples

# Associate track entry 1 with the IPv4 direct route on Ten-GigabitEthernet 3/0/1 and apply cost 200 to the IPv4 direct route after the track entry changes to Negative state.

<Sysname> system-view

[Sysname] interface ten-gigabitethernet 3/0/1

[Sysname-Ten-GigabitEthernet3/0/1] route-direct track 1 degrade-cost 200

Related commands

track vrrp (High Availability Command Reference)

routing-table limit

Use routing-table limit to set the maximum number of active IPv4/IPv6 routes supported by the device.

Use undo routing-table limit to restore the default.

Syntax

routing-table limit number simply-alert

undo routing-table limit

Default

The maximum number of active IPv4/IPv6 routes is not set for the device.

Views

RIB IPv4 address family view

RIB IPv6 address family view

Predefined user roles

network-admin

Parameters

number: Specifies the maximum number of active IPv4/IPv6 routes supported by the device, in the range of 1 to 4294967295.

simply-alert: Enables the device to still accept active routes but generate a log message when the number of active IPv4/IPv6 routes exceeds the maximum number.

Usage guidelines

Configuration in RIB IPv4 address family view limits the number of active IPv4 routes for the public network and all VPN instances.

Configuration in RIB IPv6 address family view limits the number of active IPv6 routes for the public network and all VPN instances.

Examples

# In RIB IPv4 address family view, set the maximum number of active IPv4 routes to 1000 for the public network and all VPN instances. The device still accepts new active routes but generates a system log message when the maximum number of active routes is exceeded.

<Sysname> system-view

[Sysname] rib

[Sysname-rib] address-family ipv4

[Sysname-rib-ipv4] routing-table limit 1000 simply-alert

snmp-agent trap enable ipv6 rib

Use snmp-agent trap enable ipv6 rib to enable SNMP notifications for IPv6 RIB.

Use undo snmp-agent trap enable ipv6 rib to disable SNMP notifications for IPv6 RIB.

Syntax

snmp-agent trap enable ipv6 rib

undo snmp-agent trap enable ipv6 rib

Default

SNMP notifications are enabled for IPv6 RIB.

Views

System view

Predefined user roles

network-admin

Usage guidelines

After you enable this feature, IPv6 RIB can generate notifications and send them to the SNMP module. For the IPv6 RIB notifications to be sent correctly, you must also configure SNMP on the device. For more information about configuring SNMP, see the network management and monitoring configuration guide for the device.

Examples

# Disable SNMP notifications for IPv6 RIB.

<Sysname> system-view

[Sysname] undo snmp-agent trap enable ipv6 rib

  • 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
新华三官网