03-IP Routing Volume

HomeSupportSwitchesH3C S7500E Switch SeriesReference GuidesCommand ReferencesH3C S7500E Series Ethernet Switches Command Manual(Release 6300 series V1.03)03-IP Routing Volume
08-IPv6 RIPng Commands
Title Size Download
08-IPv6 RIPng Commands 80.62 KB

 

l          The term “router” in this document refers to a router in a generic sense or a Layer 3 switch.

l          EA boards (such as LSQ1GP12EA and LSQ1TGX1EA) do not support IPv6 features.

 

RIPng Configuration Commands

checkzero

Syntax

checkzero

undo checkzero

View

RIPng view

Default Level

2: System level

Parameters

None

Description

Use the checkzero command to enable the zero field check on RIPng packets.

Use the undo checkzero command to disable the zero field check.

The zero field check is enabled by default.

Some fields in RIPng packet headers must be zero. These fields are called zero fields.  You can enable the zero field check on RIPng packet headers. If any such field contains a non-zero value, the RIPng packet will be discarded.

Examples

# Disable the zero field check on RIPng packet headers of RIPng 100.

<Sysname> system-view

[Sysname] ripng 100

[Sysname-ripng-100] undo checkzero

default cost (RIPng view)

Syntax

default cost cost

undo default cost

View

RIPng view

Default Level

2: System level

Parameters

cost: Default metric of redistributed routes, in the range of 0 to 16.

Description

Use the default cost command to specify the default metric of redistributed routes.

Use the undo default cost command to restore the default.

The default metric of redistributed routes is 0.

The specified default metric applies to the routes redistributed by the import-route command with no metric specified.

Related commands: import-route.

Examples

# Set the default metric of redistributed routes to 2.

<Sysname> system-view

[Sysname] ripng 100

[Sysname-ripng-100] default cost 2

display ripng

Syntax

display ripng [ process-id ]

View

Any view

Default Level

1: Monitor level

Parameters

process-id: RIPng process ID, in the range of 1 to 65535.

Description

Use the display ripng command to display the running status and configuration information of a RIPng process. If process-id is not specified, information of all RIPng processes will be displayed.

Examples

# Display the running status and configuration information of all configured RIPng processes.

<Sysname> display ripng

    RIPng process : 1

       Preference : 100

       Checkzero : Enabled

       Default Cost : 0

       Maximum number of balanced paths : 3

       Update time    :   30 sec(s)  Timeout time           :  180 sec(s)

       Suppress time  :  120 sec(s)  Garbage-Collect time :  240 sec(s)

       Number of periodic updates sent : 0

       Number of trigger updates sent : 0

Table 1-1 display ripng command output description

Field

Description

RIPng process

RIPng process ID

Preference

RIPng route priority

Checkzero

Indicates whether zero field check for RIPng packet headers is enabled

Default Cost

Default metric of redistributed routes

Maximum number of balanced paths

Maximum number of load balanced routes

Update time

RIPng update interval, in seconds

Timeout time

RIPng timeout interval, in seconds

Suppress time

RIPng suppress interval, in seconds

Garbage-Collect time

RIPng garbage collection interval, in seconds

Number of periodic updates sent

Number of periodic updates sent

Number of trigger updates sent

Number of triggered updates sent

 

display ripng database

Syntax

display ripng process-id database

View

Any view

Default Level

1: Monitor level

Parameters

process-id: RIPng process ID, in the range of 1 to 65535.

Description

Use the display ripng database command to display all active routes in the RIPng advertising database, which are sent in normal RIPng update messages.

Examples

# Display the active routes in the database of RIPng process 100.

<Sysname> display ripng 100 database

   2001:7B::2:2A1:5DE/64,

        cost 4, Imported

   1:13::/120,

        cost 4, Imported

   1:32::/120,

        cost 4, Imported

   1:33::/120,

        cost 4, Imported

   100::/32,

       via FE80::200:5EFF:FE04:3302, cost 2

   3FFE:C00:C18:1::/64,

       via FE80::200:5EFF:FE04:B602, cost 2

   3FFE:C00:C18:1::/64,

       via FE80::200:5EFF:FE04:B601, cost 2

   3FFE:C00:C18:2::/64,

       via FE80::200:5EFF:FE04:B602, cost 2

   3FFE:C00:C18:3::/64,

       via FE80::200:5EFF:FE04:B601, cost 2

   4000:1::/64,

       via FE80::200:5EFF:FE04:3302, cost 2

   4000:2::/64,

       via FE80::200:5EFF:FE04:3302, cost 2  

   1111::/64,

        cost 0, RIPng-interface

Table 1-2 display ripng database command output description

Field

Description

2001:7B::2:2A1:5DE/64

IPv6 destination address/prefix length

via

Next hop IPv6 address

cost

Route metric value

Imported

Route redistributed from another routing protocol

RIPng-interface

Route learned from the interface

 

display ripng interface

Syntax

display ripng process-id interface [ interface-type interface-number ]

View

Any view

Default Level

1: Monitor level

Parameters

process-id: RIPng process ID, in the range of 1 to 65535.

interface-type interface-number: Specifies an interface.

Description

Use the display ripng interface command to display the interface information of the RIPng process.

If no interface is specified, information about all interfaces of the RIPng process will be displayed.

Examples

# Display the interface information of RIPng process 1.

<Sysname> display ripng 1 interface

Interface-name: Vlan-interface100

          Link Local Address: FE80::20F:E2FF:FE30:C16C

          Split-horizon: on                Poison-reverse: off

          MetricIn: 0                      MetricOut: 1

          Default route: off

          Summary address:

                 3:: 64

                 3:: 16

Table 1-3 display ripng interface command output description

Field

Description

Interface-name

Name of an interface running RIPng

Link Local Address

Link-local address of an interface running RIPng

Split-horizon

Indicates whether the split horizon function is enabled (on: Enabled; off: Disabled)

Poison-reverse

Indicates whether the poison reverse function is enabled (on: Enabled; off: Disabled)

MetricIn/MetricOut

Additional metric to incoming and outgoing routes

Default route

l      Only/Originate: Only means that the interface advertises only the default route. Originate means that the default route and other RIPng routes are advertised.

l      Off indicates that no default route is advertised or the garbage-collect time expires after the default route advertisement was disabled.

l      In garbage-collect status: With default route advertisement disabled, the interface advertises the default route with metric 16 during the garbage-collect time.

Summary address

The summarized IPv6 prefix and the summary IPv6 prefix on the interface

 

display ripng route

Syntax

display ripng process-id route

View

Any view

Default Level

1: Monitor level

Parameters

process-id: RIPng process ID, in the range of 1 to 65535.

Description

Use the display ripng route command to display all RIPng routes and timers associated with each route of a RIPng process.

Examples

# Display the routing information of RIPng process 100.

<Sysname> display ripng 100 route

   Route Flags: A - Aging, S - Suppressed, G - Garbage-collect

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

 

 Peer FE80::200:5EFF:FE04:B602  on Vlan-interface100

 Dest 3FFE:C00:C18:1::/64,

     via FE80::200:5EFF:FE04:B602, cost  2, tag 0, A, 34 Sec

 

 Dest 3FFE:C00:C18:2::/64,

     via FE80::200:5EFF:FE04:B602, cost  2, tag 0, A, 34 Sec

Table 1-4 display ripng route command output description

Field

Description

Peer

Neighbor connected to the interface

Dest

IPv6 destination address

via

Next hop IPv6 address

cost

Routing metric value

tag

Route tag

Sec

Time that a route entry stays in a particular state

“A”

The route is in the aging state.

“S”

The route is in the suppressed state.

“G”

The route is in the Garbage-collect state.

 

filter-policy export

Syntax

filter-policy { acl6-number | ipv6-prefix ipv6-prefix-name } export [ protocol [ process-id ] ]

undo filter-policy export [ protocol [ process-id ] ]

View

RIPng view

Default Level

2: System level

Parameters

acl6-number: Specifies the number of an ACL to filter advertised routing information, in the range of 2000 to 3999.

ipv6-prefix ipv6-prefix-name: Specifies the name of an IPv6 prefix list used to filter routing information, a string of 1 to 19 characters.

protocol: Filters routes redistributed from a routing protocol, currently including bgp4+, direct, isisv6, ospfv3, ripng, and static.

process-id: Process number of the specified routing protocol, in the range of 1 to 65535. This argument is available only when the routing protocol is rip, ospf, or isis.

Description

Use the filter-policy export command to define an outbound route filtering policy. Only routes passing the filter can be advertised in the update messages.

Use the undo filter-policy export command to restore the default.

By default, RIPng does not filter any outbound routing information.

With the protocol argument specified, only routing information redistributed from the specified routing protocol will be filtered. Otherwise, all outgoing routing information will be filtered.

Examples

# Use IPv6 prefix list Filter 2 to filter advertised RIPng updates.

<Sysname> system-view

[Sysname] ripng 100

[Sysname-ripng-100] filter-policy ipv6-prefix Filter2 export

filter-policy import (RIPng view)

Syntax

filter-policy { acl6-number | ipv6-prefix ipv6-prefix-name } import

undo filter-policy import

View

RIPng view

Default Level

2: System level

Parameters

acl6-number: Specifies the number of an ACL to filter incoming routing information, in the range of 2000 to 3999.

ipv6-prefix ipv6-prefix-name: Specifies the name of an IPv6 prefix list to filter incoming routes, in the range 1 to 19 characters.

Description

Use the filter-policy import command to define an inbound route filtering policy. Only routes which match the filtering policy can be received.

Use the undo filter-policy import command to disable inbound route filtering.

By default, RIPng does not filter incoming routing information.

Examples

# Reference IPv6 prefix list Filter1 to filter incoming RIPng updates.

<Sysname> system-view

[Sysname] ripng 100

[Sysname-ripng-100] filter-policy ipv6-prefix Filter1 import

import-route

Syntax

import-route protocol [ process-id ] [ allow-ibgp ] [ cost cost | route-policy route-policy-name ] *

undo import-route protocol [ process-id ]

View

RIPng view

Default Level

2: System level

Parameters

protocol: Specifies a routing protocol from which to redistribute routes. Currently, it can be bgp4+, direct, isisv6, ospfv3, ripng, or static.

process-id: Process ID, in the range of 1 to 65535. The default is 1.This argument is available only when the protocol is isisv6, ospfv3, or ripng.

cost: Routing metric of redistributed routes, in the range of 0 to 16. If cost value is not specified, the metric is the default metric specified by the default cost command.

route-policy route-policy-name: Specifies a routing policy by its name with 1 to 19 characters.

allow-ibgp: Optional keyword when the specified protocol is bgp4+. The import-route bgp4+ command redistributes only EBGP routes. The import-route bgp4+ allow-ibgp command redistributes additionally IBGP routes, thus be cautious when using it.

Description

Use the import-route command to redistribute routes from another routing protocol.

Use the undo import-route command to disable redistributing routes from another routing protocol.

By default, RIPng does not redistribute routes from other routing protocols.

l          You can configure a routing policy to redistribute only needed routes.

l          You can specify a cost for redistributed routes using the cost keyword.

Related commands: default cost.

Examples

# Redistribute IPv6-IS-IS routes (process 7) and specify the metric as 7.

<Sysname> system-view

[Sysname] ripng 100

[Sysname-ripng-100] import-route isisv6 7 cost 7

maximum load-balancing (RIPng view)

Syntax

maximum load-balancing number

undo maximum load-balancing

View

RIPng view

Default Level

2: System level

Parameters

number: Maximum number of equal-cost load-balanced routes. Its value is in the range 1 to 4.

Description

Use the maximum load-balancing command to specify the maximum number of equal-cost routes for load balancing.

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

By default, the maximum number of equal cost routes for load balancing is 4.

 

Configure the maximum number according to the memory size.

 

Examples

# Set the maximum number of load balanced routes with equal cost to 2.

<Sysname> system-view

[Sysname] ripng 100

[Sysname-ripng-100] maximum load-balancing 2

# Restore the default.

[Sysname-ripng-100] undo maximum load-balancing

preference

Syntax

preference [ route-policy route-policy-name ] preference

undo preference [ route-policy ]

View

RIPng view

Default Level

2: System level

Parameters

route-policy-name: Name of a routing policy, in the range of 1 to 19 characters.

preference: RIPng route priority, in the range of 1 to 255.

Description

Use the preference command to specify the RIPng route priority.

Use the undo preference route-policy command to restore the default.

By default, the priority of a RIPng route is 100.

Using the route-policy keyword can set a priority for routes filtered in by the routing policy:

l          If a priority is set in the routing policy, the priority applies to matched routes, and the priority set by the preference command applies to routes not matched.

l          If no priority is set in the routing policy, the one set by the preference command applies to all routes.

Examples

# Set the RIPng route priority to 120.

<Sysname> system-view

[Sysname] ripng 100

[Sysname-ripng-100] preference 120

# Restore the default RIPng route priority.

[Sysname-ripng-100] undo preference

ripng

Syntax

ripng [ process-id ]

undo ripng [ process-id ]

View

System view

Default Level

2: System level

Parameters

process-id: RIPng process ID, in the range of 1 to 65535. The default value is 1.

Description

Use the ripng command to create a RIPng process and enter RIPng view.

Use the undo ripng command to disable a RIPng process.

By default, no RIPng process is enabled.

Examples

# Create RIPng process 100 and enter its view.

<Sysname> system-view

[Sysname] ripng 100

[Sysname-ripng-100]

# Disable RIPng process 100.

[Sysname] undo ripng 100

ripng default-route

Syntax

ripng default-route { only | originate } [ cost cost ]

undo ripng default-route

View

Interface view

Default Level

2: System level

Parameters

only: Indicates that only the IPv6 default route (::/0) is advertised through the interface.

originate: Indicates that the IPv6 default route (::/0) is advertised without suppressing other routes.

cost: Metric of the advertised default route, in the range of 1 to 15, with a default value of 1.

Description

Use the ripng default-route command to advertise a default route with the specified routing metric to a RIPng neighbor.

Use the undo ripng default-route command to stop advertising or forwarding the default route.

By default, a RIP process does not advertise any default route.

After you execute this command, the generated RIPng default route is advertised in a route update over the specified interface. This IPv6 default route is advertised without considering whether it already exists in the local IPv6 routing table.

Examples

# Advertise only the default route through VLAN-interface 100.

<Sysname> system-view

[Sysname] interface vlan-interface 100

[Sysname-Vlan-interface100] ripng default-route only

# Advertise the default route together with other routes through VLAN-interface 101.

<Sysname> system-view

[Sysname] interface vlan-interface 101

[Sysname-Vlan-interface101] ripng default-route originate

ripng enable

Syntax

ripng process-id enable

undo ripng enable

View

Interface view

Default Level

2: System level

Parameters

process-id: RIPng process ID, in the range of 1 to 65535.

Description

Use the ripng enable command to enable RIPng on the specified interface.

Use the undo ripng enable command to disable RIPng on the specified interface.

By default, RIPng is disabled on an interface.

Examples

# Enable RIPng100 on VLAN-interface 100.

<Sysname> system-view

[Sysname] interface vlan-interface 100

[Sysname-Vlan-interface100] ripng 100 enable

ripng metricin

Syntax

ripng metricin value

undo ripng metricin

View

Interface view

Default Level

2: System level

Parameters

value: Additional metric for received routes, in the range of 0 to 16.

Description

Use the ripng metricin command to specify an additional metric for received RIPng routes.

Use the undo ripng metricin command to restore the default.

By default, the additional metric to received routes is 0.

Related commands: ripng metricout.

Examples

# Specify the additional routing metric as 12 for RIPng routes received by VLAN-interface 100.

<Sysname> system-view

[Sysname] interface vlan-interface 100

[Sysname-Vlan-interface100] ripng metricin 12

ripng metricout

Syntax

ripng metricout value

undo ripng metricout

View

Interface view

Default Level

2: System level

Parameters

value: Additional metric to advertised routes, in the range of 1 to 16.

Description

Use the ripng metricout command to configure an additional metric for RIPng routes advertised by an interface.

Use the undo rip metricout command to restore the default.

The default additional routing metric is 1.

Related commands: ripng metricin.

Examples

# Set the additional metric to 12 for routes advertised by VLAN-interface 100.

<Sysname> system-view

[Sysname] interface vlan-interface 100

[Sysname-Vlan-interface100] ripng metricout 12

ripng poison-reverse

Syntax

ripng poison-reverse

undo ripng poison-reverse

View

Interface view

Default Level

2: System level

Parameters

None

Description

Use the rip poison-reverse command to enable the poison reverse function.

Use the undo rip poison-reverse command to disable the poison reverse function.

By default, the poison reverse function is disabled.

Examples

Enable the poison reverse function for RIPng update messages on VLAN-interface 100.

<Sysname> system-view

[Sysname] interface vlan-interface 100

[Sysname-Vlan-interface100] ripng poison-reverse

ripng split-horizon

Syntax

ripng split-horizon

undo ripng split-horizon

View

Interface view

Default Level

2: System level

Parameters

None

Description

Use the rip split-horizon command to enable the split horizon function.

Use the undo rip split-horizon command to disable the split horizon function.

By default, the split horizon function is enabled.

Note that:

l          The split horizon function is necessary for preventing routing loops. Therefore, you are not recommended to disable it.

l          In special cases, make sure that it is necessary to disable the split horizon function before doing so.

 

If both the poison reverse and split horizon functions are enabled, only the poison reverse function takes effect.

 

Examples

Enable the split horizon function on VLAN-interface 100.

<Sysname> system-view

[Sysname] interface vlan-interface 100

[Sysname-Vlan-interface100] ripng split-horizon

ripng summary-address

Syntax

ripng summary-address ipv6-address prefix-length

undo ripng summary-address ipv6-address prefix-length

View

Interface view

Default Level

2: System level

Parameters

ipv6-address: Destination IPv6 address of the summary route.

prefix-length: Prefix length of the destination IPv6 address of the summary route, in the range of 0 to 128. It indicates the number of consecutive 1s of the prefix, which defines the network ID.

Description

Use the ripng summary-address command to configure a summary advertised through the interface.

Use the undo ripng summary-address command to remove the summary.

If the prefix and the prefix length of a route match the IPv6 prefix, the IPv6 prefix will be advertised instead. Thus, one route can be advertised on behalf of many routes. After summarization, the summary route cost is the lowest cost among summarized routes.

Examples

# Assign an IPv6 address with the 64-bit prefix to VLAN-interface 100 and configure a summary with the 35-bit prefix length.

<Sysname> system-view

[Sysname] interface vlan-interface 100

[Sysname-Vlan-interface100] ipv6 address 2001:200::3EFF:FE11:6770/64

[Sysname-Vlan-interface100] ripng summary-address 2001:200:: 35

timers

Syntax

timers { garbage-collect garbage-collect-value | suppress suppress-value | timeout timeout-value | update update-value } *

undo timers { garbage-collect | suppress | timeout | update } *

View

RIPng view

Default Level

2: System level

Parameters

garbage-collect-value: Interval of the garbage-collect timer in seconds, in the range of 1 to 86400.

suppress-value: Interval of the suppress timer in seconds, in the range of 0 to 86400.

timeout-value: Interval  of the timeout timer in seconds, in the range of 1 to 86400.

update-value: Interval of the update timer in seconds, in the range of 1 to 86400.

Description

Use the timers command to configure RIPng timers.

Use the undo timers command to restore the default.

By default, the garbage-collect timer is 120 seconds, the suppress timer 120 seconds, the timeout timer 180 seconds, and the update timer 30 seconds.

RIPng is controlled by the above four timers.

l          The update timer defines the interval between update messages.

l          The timeout timer defines the route aging time. If no update message related to a route is received within the aging time, the metric of the route is set to 16 in the routing table.

l          The suppress timer defines for how long a RIPng route stays in the suppressed state. When the metric of a route is 16, the route enters the suppressed state. In the suppressed state, only routes which come from the same neighbor and whose metric is less than 16 will be received by the router to replace unreachable routes.

l          The garbage-collect timer defines the interval from when the metric of a route becomes 16 to when it is deleted from the routing table. During the garbage-collect timer length, RIPng advertises the route with the routing metric set to 16. If no update message is announced for that route before the garbage-collect timer expires, the route will be completely deleted from the routing table.

Note that:

l          You are not recommended to change the default values of these timers under normal circumstances.

l          The lengths of these timers must be kept consistent on all routers and access servers in the network

Examples

# Configure the update, timeout, suppress, and garbage-collect timers as 5s, 15s, 15s and 30s.

<Sysname> system-view

[Sysname] ripng 100

[Sysname-ripng-100] timers update 5

[Sysname-ripng-100] timers timeout 15

[Sysname-ripng-100] timers suppress 15

[Sysname-ripng-100] timers garbage-collect 30

  • 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 Resources
  • Partner Business Management
All Partners
  • Profile
  • News & Events
  • Online Exhibition Center
  • Contact Us
All About Us
新华三官网