H3C S9500 Command Manual-Release2132[V2.03]-03 IP Routing Volume

HomeSupportSwitchesH3C S9500 Series SwitchesReference GuidesCommand ReferencesH3C S9500 Command Manual-Release2132[V2.03]-03 IP Routing Volume
11-IPv6 RIPng Commands
Title Size Download
11-IPv6 RIPng Commands 80.11 KB

Chapter 1  IPv6 RIPng Configuration Commands

1.1  RIPng Configuration Commands

1.1.1  checkzero

Syntax

checkzero

undo checkzero

View

RIPng view

Default Level

2: System level

Parameter

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.

Example

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

<Sysname> system-view

[Sysname] ripng 100

[Sysname-ripng-100] undo checkzero

1.1.2  debugging ripng

Syntax

debugging ripng process-id [ brief | event | packet | receive | send | timer ]

undo debugging ripng process-id { brief | event | packet | receive | send | timer }

debugging ripng process-id { packet | receive | send } [ interface interface-type interface-number ]

undo debugging ripng process-id { packet | receive | send } [ interface interface-type interface-number ]

View

User view

Default Level

1: Monitor level

Parameter

process-id: RIPng process ID.

brief: Displays brief RIPng debugging information.

event: RIPng event debugging.

packet: RIPng packet debugging.

receive: Debugging of received RIPng packets.

send: Debugging of sent RIPng packets.

timer: RIPng timer debugging.

interface interface-type interface-number: Displays the specified RIPng debugging information of an interface.

Description

Use the debugging ripng command to enable specified RIPng debugging.

Use the undo debugging ripng command to disable specified RIPng debugging.

The keyword interface is usable only when the keyword packet, receive or send is included.

The debugging ripng command with the keyword interface not specified displays the debugging information of RIPng packets sent and received by all interfaces. With the keyword interface included, the command displays the debugging information of RIPng packets sent and received by the interface.

Table 1-1 Description on the fields of the debugging ripng command

Field

Description

Adding interface-type interface-number to Network List

Enabling RIPng on the interface

Removing interface-type interface-number from Network List

Disabling RIPng on the interface

 

Table 1-2 Description on the fields of the debugging ripng receive command

Field

Description

Ignoring this packet. Packet originated by us

The RIPng packet was self-originated; therefore, it was ignored.

 

Example

# Enable the debugging of sent RIPng packets.

<Sysname> debugging ripng 1 send

*Apr 11 01:05:59:974 2004 Sysname RM/6/RMDEBUG:RIPng 1 : Sending response message on Vlan-interface1500 to FF02::9

*Apr 11 01:06:00:112 2004 Sysname RM/6/RMDEBUG: Packet : vers 1, cmd response, length 44

*Apr 11 01:06:00:212 2004 Sysname RM/6/RMDEBUG: Dest 150::/64, cost 1, tag 0

*Apr 11 01:06:00:302 2004 Sysname RM/6/RMDEBUG: Dest 151::/64, cost 1, tag 0

[Sysname]

[Sysname]

*Apr 11 01:06:29:975 2004 Sysname RM/6/RMDEBUG:RIPng 1 : Sending response message on Vlan-interface1500 to FF02::9

*Apr 11 01:06:30:112 2004 Sysname RM/6/RMDEBUG: Packet : vers 1, cmd response, length 44

*Apr 11 01:06:30:212 2004 Sysname RM/6/RMDEBUG: Dest 150::/64, cost 1, tag 0

*Apr 11 01:06:30:302 2004 Sysname RM/6/RMDEBUG: Dest 151::/64, cost 1, tag 0

1.1.3  default cost (RIPng view)

Syntax

default cost cost

undo default cost

View

RIPng view

Parameter

cost: Default metric of redistributed routes. The default is 0.

Description

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

Use the undo default cost command to restore the default.

By default, the default metric of redistributed routes is 0.

The specified default metric applies to routes redistributed by the import-route command that has 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

1.1.4  display ripng

Syntax

display ripng [ process-id ]

View

Any view

Default Level

1: Monitor level

Parameters

process-id: RIPng process ID.

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 :  120 sec(s)

       Number of periodic updates sent : 0

       Number of trigger updates sent : 0

Table 1-3 Description on the fields of the display ripng command

Field

Description

RIPng Process

RIPng process ID

Preference

RIPng route priority

Checkzero

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 updating 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

 

1.1.5  display ripng database

Syntax

display ripng process-id database

View

Any view

Default Level

1: Monitor level

Parameters

process-id: RIPng process ID.

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 

Table 1-4 Description on fields of the display ripng database command

Field

Description

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

IPv6 destination address/prefix length

via

Next hop IPv6 address

cost

Route metric value

Imported

Routes learnt from other routing protocols

 

1.1.6  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.

interface-type interface-number: Specified an interface.

Description

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

Examples

# Display the interface information of RIPng process 1.

<Sysname> display ripng 1 interface

Interface-name: vlan-interface 12

         Link Local Address: FE80::200:5EFF:FE19:3E00

         Split-horizon: on               Poison-reverse: off

         MetricIn: 0                      MetricOut: 1

         Default route: off

          Summary address:

                 3::/64

                 3::/16

Table 1-5 Description on the fields of the display ripng interface command

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

 

1.1.7  display ripng route

Syntax

display ripng process-id route

View

Any view

Default Level

1: Monitor level

Parameters

process-id: RIPng process ID.

Description

Use the display ripng route command to display all RIPng routes and timers associated to 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-interface 12

 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

 

 Peer FE80::200:5EFF:FE04:B601 on vlan-interface 12

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

     via FE80::200:5EFF:FE04:B601, cost  2, tag 0, A, 13 Sec

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

     via FE80::200:5EFF:FE04:B601, cost  2, tag 0, A, 13 Sec

 

 Peer FE80::200:5EFF:FE04:3302  on vlan-interface 12

 Dest 100::/32,

     via FE80::200:5EFF:FE04:3302, cost  2, tag 0, A, 6 Sec

 Dest 4000:1::/64,

     via FE80::200:5EFF:FE04:3302, cost  2, tag 0, A, 6 Sec

 Dest 4000:2::/64,

     via FE80::200:5EFF:FE04:3302, cost  2, tag 0, A, 6 Sec

 Dest 4000:3::/64,

     via FE80::200:5EFF:FE04:3302, cost  2, tag 0, A, 6 Sec

 Dest 4000:4::/64,

Table 1-6 Description on the fields of the display ripng route command

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

 

1.1.8  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 outgoing 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 outgoing routing information.

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

process-id: Process ID of the specified routing protocol. This argument is specified 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 disable the filtering.

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 outgoing RIPng updates.

<Sysname> system-view

[Sysname] ripng 100

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

1.1.9  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.

ipv6-prefix ipv6-prefix-name: Specifies the name of an IPv6 Prefix list to filter incoming routes.

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 incoming 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

1.1.10  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 including bgp4+, direct, isisv6, ospfv3, ripng, and static.

process-id: Process ID of the specified routing protocol, available for isisv6, ospfv3, and ripng.

cost: Routing metric of redistributed routes. If cost value is not specified, the metric is the default metric specified with the default cost command.

route-policy route-policy-name: Specifies a routing policy by its name.

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 keyword cost.

Related commands: default cost.

Examples

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

<Sysname> system-view

[Sysname] ripng 100

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

1.1.11  maximum load-balancing

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.

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.

Examples

# Set the maximum number of equal cost load balanced routes 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

1.1.12  preference

Syntax

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

undo preference [ route-policy ]

View

RIPng view

Default Level

2: System level

Parameters

preference: RIPng route priority. The default is 100. The smaller the value, the higher the priority.

route-policy-name: Name of a routing policy.

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

1.1.13  ripng

Syntax

ripng [ process-id ]

undo ripng [ process-id ]

View

System view

Default Level

2: System level

Parameters

process-id: RIPng process ID.

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

1.1.14  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 is advertised via the interface.

originate: Indicates that the IPv6 default route is advertised without suppressing other routes.

cost: Metric of the advertised default route. The default value is 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 and 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 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] interface vlan-interface 101

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

1.1.15  ripng enable

Syntax

ripng process-id enable

undo ripng

View

Interface view

Default Level

2: System level

Parameters

process-id: RIPng process ID.

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.

Examples

# Enable RIPng100 on VLAN-interface 100.

<Sysname> system-view

[Sysname] interface vlan-interface 100

[Sysname-Vlan-interface100] ripng 100 enable

1.1.16  ripng metricin

Syntax

ripng metricin value

undo ripng metricin

View

Interface view

Default Level

2: System level

Parameters

value: Additional metric for received routes.

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

1.1.17  ripng metricout

Syntax

ripng metricout value

undo ripng metricout

View

Interface view

Default Level

2: System level

Parameters

value: Additional metric for advertised routes. The default is 1.

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

1.1.18  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 on VLAN-interface 100.

<Sysname> system-view

[Sysname] interface vlan-interface 100

[Sysname-Vlan-interface100] ripng poison-reverse

1.1.19  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.

 

&  Note:

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 Van-interface100.

<Sysname> system-view

[Sysname] interface vlan-interface 100

[Sysname-Vlan-interface100] ripng split-horizon

1.1.20  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: IPv6 network address of the summary route.

prefix-length: IPv6 prefix length. It indicates the number of consecutive ones of the prefix, which represents 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 specified 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.

<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

1.1.21  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.

suppress-value: Interval of the suppress timer in seconds.

timeout-value: Interval  of the timeout timer in seconds.

update-value: Interval of the update timer in seconds.

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 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 device 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 completely be 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 devices and access servers in the network

Examples

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

<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 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
新华三官网