H3C WX6103 Access Controller Switch Interface Board Command Reference-6W102

HomeSupportWirelessH3C WX6000 Series Access ControllersReference GuidesCommand ReferencesH3C WX6103 Access Controller Switch Interface Board Command Reference-6W102
11-IPv4 Routing Commands
Title Size Download
11-IPv4 Routing Commands 298.75 KB

Table of Contents

1 Static Routing Configuration Commands· 1-1

Static Routing Configuration Commands· 1-1

delete static-routes all 1-1

ip route-static· 1-1

ip route-static default-preference· 1-3

2 RIP Configuration Commands· 2-1

RIP Configuration Commands· 2-1

checkzero· 2-1

default cost 2-1

default-route originate· 2-2

display rip· 2-3

display rip database· 2-4

display rip interface· 2-5

display rip route· 2-6

filter-policy export 2-8

filter-policy import 2-8

host-route· 2-9

import-route· 2-10

network· 2-10

peer 2-11

preference· 2-12

reset rip statistics· 2-12

rip· 2-12

rip authentication-mode· 2-13

rip input 2-14

rip metricin· 2-14

rip metricout 2-15

rip output 2-15

rip poison-reverse· 2-16

rip split-horizon· 2-16

rip summary-address· 2-17

rip version· 2-17

silent-interface· 2-18

summary· 2-19

timers· 2-20

validate-source-address· 2-21

version· 2-21

3 OSPF Configuration Commands· 3-1

OSPF Configuration Commands· 3-1

abr-summary· 3-1

area· 3-2

asbr-summary· 3-2

authentication-mode· 3-3

bandwidth-reference· 3-4

default 3-4

default-cost 3-5

default-route-advertise· 3-5

description· 3-6

display ospf abr-asbr 3-7

display ospf asbr-summary· 3-8

display ospf brief 3-9

display ospf cumulative· 3-11

display ospf error 3-13

display ospf interface· 3-14

display ospf lsdb· 3-15

display ospf nexthop· 3-17

display ospf peer 3-18

display ospf peer statistics· 3-20

display ospf request-queue· 3-21

display ospf retrans-queue· 3-22

display ospf routing· 3-23

display ospf vlink· 3-24

enable link-local-signaling· 3-25

enable log· 3-25

enable out-of-band-resynchronization· 3-26

filter 3-26

filter-policy export 3-27

filter-policy import 3-28

graceful-restart 3-28

graceful-restart help· 3-29

graceful-restart interval 3-30

host-advertise· 3-30

import-route· 3-31

log-peer-change· 3-32

lsa-arrival-interval 3-32

lsa-generation-interval 3-33

lsdb-overflow-limit 3-34

maximum load-balancing· 3-34

maximum-routes· 3-35

network· 3-35

nssa· 3-36

opaque-capability enable· 3-37

ospf 3-37

ospf authentication-mode· 3-38

ospf cost 3-39

ospf dr-priority· 3-40

ospf mib-binding· 3-40

ospf mtu-enable· 3-41

ospf timer dead· 3-41

ospf timer hello· 3-42

ospf timer poll 3-42

ospf timer retransmit 3-43

ospf trans-delay· 3-43

preference· 3-44

reset ospf counters· 3-45

reset ospf process· 3-45

reset ospf redistribution· 3-46

rfc1583 compatible· 3-46

silent-interface· 3-47

snmp-agent trap enable ospf 3-47

spf-schedule-interval 3-48

stub· 3-49

stub-router 3-49

vlink-peer 3-50

 


 

The term switch in this document refers to a switch in a generic sense or an access controller configured with the switching function unless otherwise specified.

 

Static Routing Configuration Commands

delete static-routes all

Syntax

delete static-routes all

View

System view

Parameters

None

Description

Use the delete static-routes all command to delete all static routes.

When you use this command to delete static routes, the system will prompt you to confirm the operation before deleting all the static routes.

Related commands: display ip routing-table, ip route-static.

Examples

# Delete all static routes on the router.

<Sysname> system-view

[Sysname] delete static-routes all

This will erase all ipv4 static routes and their configurations, you must reconf

igure all static routes

Are you sure?[Y/N]:Y

ip route-static

Syntax

ip route-static dest-address { mask | mask-length } { next-hop-address [ track track-entry-number ] | interface-type interface-number [ next-hop-address ] } [ preference preference-value ] [ tag tag-value ] [ description description-text ]

undo ip route-static dest-address { mask | mask-length } [ next-hop-address | interface-type interface-number [ next-hop-address ] ] [ preference preference-value ]

View

System view

Parameters

dest-address: Destination IP address of the static route, in dotted decimal notation.

mask: Mast of the IP address, in dotted decimal notation.

mask-length: Mask length, in the range 0 to 32.

next-hop-address: IP address of the next hop, in dotted decimal notation.

interface-type interface-number: Specifies the output interface by its type and number. If the output interface is a broadcast interface, such as an Ethernet interface, a virtual template or a VLAN interface, the next hop address must be specified.

preference preference-value : Specifies the preference of the static route, which is in the range of 1 to 255 and defaults to 60.

tag tag-value: Sets a tag value for the static route from 1 to 4294967295. The default is 0. Tags of routes are used in routing policies to control routing.

description description-text: Configures a description for the static route, which consists of 1 to 60 characters, including special characters like space, but excluding “?”.

track track-entry-number: Associates the static route with a track entry. Use the track-entry-number argument to specify a track entry number, in the range 1 to 1024.

Description

Use the ip route-static command to configure a unicast static route.

Use the undo ip route-static command to delete a unicast static route.

When configuring a unicast static route, note that:

1)        If the destination IP address and the mask are both 0.0.0.0, the configured route is a default route. If routing table searching fails, the router will use the default route for packet forwarding.

2)        Different route management policies can be implemented for different route preference configurations. For example, specifying the same preference for different routes to the same destination address enables load sharing, while specifying different preferences for these routes enables route backup.

3)        When configuring a static route, you can specify the output interface or the next hop address based on the actual requirement. Note that the next hop address must not be the IP address of the local interface; otherwise, the route configuration will not take effect. For interfaces that support network address to link layer address resolution or point-to-point interfaces, you can specify the output interface or next hop address. When specifying the output interface, note that:

l          For a NULL 0 interface, if the output interface has already been configured, there is no need to configure the next hop address.

l          It is not recommended to specify a broadcast interface (such as VLAN interface) as the output interface for a static route, because a broadcast interface may have multiple next hops. If you have to do so, you must specify the corresponding next hop of the interface at the same time.

Related commands: display ip routing-table, ip route-static default-preference.

 

l          The static route does not take effect if you specify its next hop address first and then configure the address as the IP address of a local interface, such as VLAN interface.

l          To configure track monitoring for an existing static route, simply associate the static route with a track entry. For a non-existent static route, configure it and associate it with a Track entry.

l          If a static route needs route recursion, the associated track entry must monitor the nexthop of the recursive route instead of that of the static route; otherwise, a valid route may be mistakenly considered invalid.

 

Examples

# Configure a static route, whose destination address is 1.1.1.1/24, next hop address is 2.2.2.2, tag value is 45, and description information is for internet & intranet.

<Sysname> system-view

[Sysname] ip route-static 1.1.1.1 24 2.2.2.2 tag 45 description for internet & intranet

ip route-static default-preference

Syntax

ip route-static default-preference default-preference-value

undo ip route-static default-preference

View

System view

Parameters

default-preference-value: Default preference for static routes, which is in the range of 1 to 255.

Description

Use the ip route-static default-preference command to configure the default preference for static routes.

Use the undo ip route-static default-preference command to restore the default.

By default, the default preference of static routes is 60.

Note that:

l          If no preference is specified when configuring a static route, the default preference is used.

l          When the default preference is re-configured, it applies to newly added static routes only.

Related commands: display ip routing-table, ip route-static.

Examples

# Set the default preference of static routes to 120.

<Sysname> system-view

[Sysname] ip route-static default-preference 120

 


 

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

l          The switch interface board only supports single RIP process.

 

RIP Configuration Commands

checkzero

Syntax

checkzero

undo checkzero

View

RIP view

Parameters

None

Description

Use the checkzero command to enable the zero field check on RIPv1 messages.

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

The zero field check is enabled by default.

After the zero field check is enabled, the router discards RIPv1 messages in which zero fields are non-zero. If all messages are trusty, you can disable this feature to spare the processing time of the CPU.

Examples

# Disable the zero field check on RIPv1 messages for RIP process 100.

<Sysname> system-view

[Sysname] rip 100

[Sysname-rip-100] undo checkzero

default cost

Syntax

default cost value

undo default cost

View

RIP view

Parameters

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

Description

Use the default cost command to configure the default metric for redistributed routes.

Use the undo default cost command to restore the default.

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

When you use the import-route command to redistribute routes from other protocols without specifying a metric, the metric specified by the default cost command applies.

Related command: import-route.

Examples

# Set the default metric for redistributed routes to 3.

<Sysname> system-view

[Sysname] rip 100

[Sysname-rip-100] default cost 3

default-route originate

Syntax

default-route originate cost value

undo default-route originate

View

RIP view

Parameters

value: Cost of the default route, in the range of 1 to 15.

Description

Use the default-route originate cost command to advertise a default route with the specified metric to RIP neighbors.

Use the undo default-route originate command to disable the sending of a default route.

By default, no default route is sent to RIP neighbors.

The RIP router with this feature configured will not receive any default routes from RIP neighbors.

Examples

# Send a default route with a metric of 2 to RIP neighbors.

<Sysname> system-view

[Sysname] rip 100

[Sysname-rip-100] default-route originate cost 2

# Disable default route sending.

[Sysname-rip-100] undo default-route originate

display rip

Syntax

display rip [ process-id ]

View

Any view

Parameters

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

Description

Use the display rip command to display the current status and configuration information of the specified RIP process.

If process-id is not specified, information about all configured RIP processes is displayed.

Examples

# Display the current status and configuration information of all configured RIP processes.

<Sysname> display rip

 

    RIP process : 1

       RIP version : 1

       Preference : 100

       Checkzero : Enabled

       Default-cost : 0

       Summary : Enabled

       Hostroutes : Enabled

       Maximum number of balanced paths : 1

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

       Suppress time :  120 sec(s)  Garbage-collect time :  120 sec(s)

       TRIP retransmit time :    5 sec(s)

       TRIP response packets retransmit count :   36

       Silent interfaces : None

       Default routes : Disabled

       Verify-source : Enabled

       Networks :

           192.168.1.0

       Configured peers : None

       Triggered updates sent : 0

       Number of routes changes : 0

       Number of replies to queries : 0

Table 2-1 Description on the fields of the display rip command

Field

Description

RIP process

RIP process ID

RIP version

RIP version 1 or 2

Preference

RIP route priority

Checkzero

Indicates whether the zero field check is enabled for RIPv1 messages.

Default-cost

Default cost of the redistributed routes

Summary

Indicates whether the routing summarization is enabled

Hostroutes

Indicates whether to receive host routes

Maximum number of balanced paths

Maximum number of load balanced routes

Update time

RIP update interval

Timeout time

RIP timeout time

Suppress time

RIP suppress interval

Garbage-collect time

RIP garbage collection interval

TRIP retransmit time

TRIP retransmit interval for sending update requests and responses.

TRIP response packets retransmit count

Maximum retransmit times for update requests and responses

Silent interfaces

Number of silent interfaces, which do not periodically send updates

Default routes

Indicates whether a default route is sent to RIP neighbors

Verify-source

Indicates whether the source IP address is checked on the received RIP routing updates

Networks

Networks enabled with RIP

Configured peers

Configured neighbors

Triggered updates sent

Number of sent triggered updates

Number of routes changes

Number of changed routes in the database

Number of replies to queries

Number of RIP responses

 

display rip database

Syntax

display rip process-id database

View

Any view

Parameters

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

Description

Use the display rip database command to display the active routes in the RIP database, which are sent in normal RIP routing updates.

Examples

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

<Sysname> display rip 100 database

  10.0.0.0/8, cost 1, ClassfulSumm

  10.0.0.0/24, cost 1, nexthop 10.0.0.1, Rip-interface

  11.0.0.0/8, cost 1, ClassfulSumm

  11.0.0.0/24, cost 1, nexthop 10.0.0.1, Imported

Table 2-2 Description on fields of the display rip database command

Field

Description

X.X.X.X/X

Destination address and subnet mask

cost

Cost of the route

classful-summ

Indicates the route is a RIP summary route.

Nexthop

Address of the next hop

Rip-interface

Routes learnt from a RIP–enabled interface

imported

Routes redistributed from other routing protocols

 

display rip interface

Syntax

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

View

Any view

Parameters

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

interface-type interface-number: Specifies an interface.

Description

Use the display rip interface command to display the RIP interface information of the RIP process.

If no interface is specified, information about all RIP interfaces of the RIP process is displayed.

Examples

# Display all the interface information of RIP process 1.

<Sysname> display rip 1 interface

 

 Interface-name: Vlan-interface1

    Address/Mask:192.168.0.154/24    Version:RIPv1

    MetricIn:0                       MetricIn route policy:Not designated

    MetricOut:1                      MetricOut route policy:Not designated

    Split-horizon/Poison-reverse:on/off  Input/Output:on/on

    Current packets number/Maximum packets number:10/2000

Table 2-3 Description on the fields of the display rip interface command

Field

Description

Interface-name

The name of an interface running RIP.

Address/Mask

The IP address and Mask of the interface.

Version

RIP version running on the interface

MetricIn

Additional routing metric added to the incoming routes

MetricOut

Additional routing metric added to the outgoing routes

Split-horizon

Indicates whether the split-horizon is enabled (ON: enabled, OFF: disabled).

Poison-reverse

Indicates whether the poison-reverse is enabled (ON: enabled, OFF: disabled)

Input/Output

Indicates if the interface is allowed to receive (Input) or send (Output) RIP messages (on is allowed, off is not allowed).

Current packets number/Maximum packets number

Packets to be sent/Maximum packets that can be sent on the interface

 

display rip route

Syntax

display rip process-id route [ statistics | ip-address { mask | mask-length } | peer ip-address ]

View

Any view

Parameters

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

statistics: Displays the route statistics, including total number of routes and number of routes of each neighbor.

ip-address { mask | mask-length }: Displays route information about a specified IP address.

peer ip-address: Displays all routing information learned from a specified neighbor.

Description

Use the display rip route command to display the routing information of a specified RIP process.

Examples

# Display all routing information of RIP process 1.

<Sysname> display rip 1 route

 Route Flags: R-RIP, T-TRIP

              P-Permanent, A-Aging, S-Suppressed, G-Garbage-collect

Peer 21.0.0.23 on Vlan-interface1

Destination/Mask    NextHop      Cost     Tag    Flags     Sec

56.0.0.0/8         21.0.0.23      1         0       RA     102

34.0.0.0/8         21.0.0.23      1         0       RA      23

Peer 21.0.0.12 on Vlan-interface1

Destination/Mask    NextHop      Cost     Tag    Flags     Sec

56.0.0.0/8         21.0.0.12      1         0       RA      34

12.0.0.0/8         21.0.0.12      1         0       RA      12

# Display routing information for network 56.0.0.0/8 of RIP process 1.

<Sysname> display rip 1 route 56.0.0.0 8

Route Flags: R-RIP, T-TRIP

             P-Permanent, A-Aging, S-Suppressed, G-Garbage-collect

Peer 21.0.0.23 on Vlan-interface1

Destination/Mask    NextHop      Cost     Tag    Flags     Sec

56.0.0.0/8         21.0.0.23      1         0       RA     102

Peer 21.0.0.12 on Vlan-interface1

Destination/Mask    NextHop      Cost     Tag    Flags     Sec

56.0.0.0/8         21.0.0.12      1         0       RA      34

# Display RIP process1 routing information learned from the specified neighbor.

<Sysname> display rip 1 route peer 21.0.0.23

Route Flags: R-RIP, T-TRIP

             P-Permanent, A-Aging, S-Suppressed, G-Garbage-collect

Peer 21.0.0.23 on Vlan-interface1

Destination/Mask    NextHop      Cost     Tag    Flags     Sec

56.0.0.0/8         21.0.0.23      1         0       RA        102   

34.0.0.0/8         21.0.0.23      1         0       RA        23 

Table 2-4 Description on the fields of the display rip route command

Field

Description

Route Flags

R — RIP route

T — TRIP route

P — The route never expires

A — The route is aging

S — The route is suppressed

G — The route is in Garbage-collect state

Peer 21.0.0.23 on Vlan-interface1

Routing information learned on a RIP interface from the specified neighbor

Destination/Mask

Destination IP address and subnet mask

Nexthop

Next hop of the route

Cost

Cost of the route

Tag

Route tag

Flags

Indicates the route state

Sec

Remaining time of the timer corresponding to the route state

 

# Display the routing statistics of RIP process 1.

<Sysname> display rip 1 route statistics

Peer         Aging     Permanent    Garbage

21.0.0.23      2          0              3

21.0.0.12      2          0              4

Total          4          0              7

Table 2-5 Description on the fields of the display rip route statistics command

Field

Description

Peer

IP address of a neighbor

Aging

Total number of aging routes learned from the specified neighbor

Permanent

Total number of permanent routes learned from the specified neighbor

Garbage

Total number of routes in the garbage-collection state learned from the specified neighbor

Total

Total number of routes learned from all RIP neighbors

 

filter-policy export

Syntax

filter-policy { acl-number | ip-prefix ip-prefix-name } export [ protocol [ process-id ] | interface-type interface-number ]

undo filter-policy export [ protocol [ process-id ] | interface-type interface-number ]

View

RIP view

Parameters

acl-number: Number of an ACL used to filter outbound routes, in the range of 2000 to 3999.

ip-prefix ip-prefix-name: Name of an IP prefix list used to filter outbound routes, a string of 1 to 19 characters.

protocol: Filters outbound routes redistributed from a specified routing protocol, which can be direct, rip, and static.

process-id: Process ID of the specified routing protocol, in the range of 1 to 65535. You need to specify a process ID when the routing protocol is rip.

interface-type interface-number: Specifies an interface.

Description

Use the filter-policy export command to configure the filtering of RIP outgoing routes. Only routes not filtered out can be advertised.

Use the undo filter-policy export command to remove the filtering.

By default, RIP does not filter outbound routes.

Note that:

l          If protocol is specified, RIP filters only the outgoing routes redistributed from the specified routing protocol. Otherwise, RIP filters all routes to be advertised.

l          If interface-type interface-number is specified, RIP filters only the routes advertised by the specified interface. Otherwise, RIP filters routes advertised by all RIP interfaces.

Related commands: acl, import-route, and ip ip-prefix.

Examples

# Reference ACL 2000 to filter outbound routes.

<Sysname> system-view

[Sysname] rip 1

[Sysname-rip-1] filter-policy 2000 export

# Reference IP prefix list abc to filter outbound routes on VLAN-interface 10.

[Sysname-rip-1] filter-policy ip-prefix abc export vlan-interface 10

filter-policy import

Syntax

filter-policy { acl-number | gateway ip-prefix-name | ip-prefix ip-prefix-name [ gateway ip-prefix-name ] } import [ interface-type interface-number ]

undo filter-policy import [ interface-type  interface-number ]

View

RIP view

Parameters

acl-number: Number of the Access Control List (ACL) used for filtering incoming routes, in the range of 2000 to 3999.

ip-prefix ip-prefix-name: References an IP prefix list to filter incoming routes. The ip-prefix-name is a string of 1 to 19 characters.

gateway ip-prefix-name: References an IP prefix list to filter routes from the gateway.

interface-type interface-number: Specifies an interface.

Description

Use the filter-policy import command to filter the incoming routes.

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

By default, RIP does not filter incoming routes.

Related commands: acl and ip ip-prefix.

Examples

# Reference ACL 2000 to filter incoming routes.

<Sysname> system-view

[Sysname] rip 1

[Sysname-rip-1] filter-policy 2000 import

# Reference IP prefix list abc on VLAN-interface 10 to filter all received RIP routes.

[Sysname-rip-1] filter-policy ip-prefix abc import vlan-interface 10

host-route

Syntax

host-route

undo host-route

View

RIP view

Parameters

None

Description

Use the host-route command to enable host route reception.

Use the undo host-route command to disable host route reception.

By default, receiving host routes is enabled.

In some cases, a router may receive many host routes from the same network segment. These routes are not helpful for routing and occupy a large amount of network resources. You can use the undo host-route command to disable receiving of host routes.

 

RIPv2 can be disabled from receiving host routes, but RIPv1 cannot.

 

Examples

# Disable RIP from receiving host routes.

<Sysname> system-view

[Sysname] rip 1

[Sysname-rip-1] undo host-route

import-route

Syntax

import-route protocol [ cost cost | tag tag ]*

undo import-route protocol

View

RIP view

Parameters

protocol: Specify a routing protocol from which to redistribute routes, currently including  direct and static.

cost: Cost for redistributed routes, in the range of 0 to 16. If cost is not specified, the default cost specified by the default cost command applies.

tag: Tag marking redistributed routes, in the range of 0 to 65,535. The default is 0.

Description

Use the import-route command to enable route redistribution from another routing protocol.

Use the undo import-route command to disable route redistribution.

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

l          You can configure a cost for redistributed routes using keyword cost.

l          You can configure a tag value for redistributed routes using keyword tag.

Related commands: default cost.

Examples

# Redistribute static routes, and set the cost to 4.

<Sysname> system-view

[Sysname] rip 1

[Sysname-rip-1] import-route static cost 4

# Set the default cost for redistributed routes to 3.

[Sysname-rip-1] default cost 3

network

Syntax

network network-address

undo network network-address

View

RIP view

Parameters

network-address: IP address of a network segment, which can be the IP network address of any interface.

Description

Use the network command to enable RIP on the interface attached to the specified network.

Use the undo network command to disable RIP on the interface attached to the specified network.

RIP runs only on the interfaces attached to the specified network. For an interface not on the specified network, RIP neither receives/sends routes on it nor forwards interface route through it. Therefore, you need to specify the network after enabling RIP to validate RIP on a specific interface.

Use the network 0.0.0.0 command to enable RIP on all interfaces.

RIP is disabled on an interface by default.

Examples

# Enable RIP on the interface attached to the network 129.102.0.0.

<Sysname> system-view

[Sysname] rip 100

[Sysname-rip-100] network 129.102.0.0

peer

Syntax

peer ip-address

undo peer ip-address

View

RIP view

Parameters

ip-address: IP address of a RIP neighbor, in dotted decimal format.

Description

Use the peer command to specify the IP address of a neighbor in the non-broadcast multi-access (NBMA) network, where routing updates destined to the peer are unicast, rather than multicast or broadcast.

Use the undo peer command to remove the IP address of a neighbor.

By default, no neighbor is specified.

Note: you need not use the peer ip-address command when the neighbor is directly connected; otherwise the neighbor may receive both the unicast and multicast (or broadcast) of the same routing information.

Examples

# Specify to send unicast updates to peer 202.38.165.1.

<Sysname> system-view

[Sysname] rip 1

[Sysname-rip-1] peer 202.38.165.1

preference

Syntax

preference value

undo preference

View

RIP view

Parameters

value: Priority for RIP route, in the range of 1 to 255. The smaller the value, the higher the priority.

Description

Use the preference command to specify the RIP route priority.

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

By default, the priority of RIP route is 100.

Examples

# Set the RIP route priority to 120.

<Sysname> system-view

[Sysname] rip 1

[Sysname-rip-1] preference 120

reset rip statistics

Syntax

reset rip process-id statistics

View

User view

Parameters

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

Description

Use the reset rip statistics command to clear the statistics of the specified RIP process.

Examples

# Clear statistics in RIP process 100.

<Sysname> reset rip 100 statistics

rip

Syntax

rip [ process-id ]

undo rip [ process-id ]

View

System view

Parameters

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

Description

Use the rip command to create a RIP process and enter RIP view.

Use the undo rip command to disable a RIP process.

By default, no RIP process runs.

Note that:

l          You must enable the RIP process before configuring the global parameters. This limitation is not for configuration of interface parameters.

l          The configured interface parameters become invalid after you disable the RIP process.

Examples

# Create a RIP process and enter RIP process view.

<Sysname> system-view

[Sysname] rip

[Sysname-rip-1]

rip authentication-mode

Syntax

rip authentication-mode { md5 { rfc2082 key-string key-id | rfc2453 key-string } | simple password }

undo rip authentication-mode

View

Interface view

Parameters

md5: MD5 authentication mode.

rfc2453: Uses the message format defined in RFC 2453 (IETF standard).

rfc2082: Uses the message format defined in RFC 2082.

key-id: MD5 key number, in the range of 1 to 255.

key-string: MD5 key string with 1 to 16 characters in plain text format, or 24 characters in cipher text format. When the display current-configuration command is used to display system information, a 24-character cipher string is displayed as the MD5 key string.

simple: Plain text authentication mode.

password: Plain text authentication string with 1 to 16 characters.

Description

Use the rip authentication-mode command to configure RIPv2 authentication mode and parameters.

Use the undo rip authentication-mode command to cancel authentication.

Note that the key string you configured can overwrite the old one if there is any.

Related commands: rip version.

Examples

# Configure MD5 authentication on VLAN-interface 10 with the key string being rose in the format defined in RFC 2453.

<Sysname> system-view

[Sysname] interface vlan-interface 10

[Sysname-Vlan-interface10] rip version 2

[Sysname-Vlan-interface10] rip authentication-mode md5 rfc2453 rose

rip input

Syntax

rip input

undo rip input

View

Interface view

Parameters

None

Description

Use the rip input command to enable the interface to receive RIP messages.

Use the undo rip input command to disable the interface from receiving RIP messages.

By default, an interface is enabled to receive RIP messages.

Related commands: rip output.

Examples

# Disable VLAN-interface 10 from receiving RIP messages.

<Sysname> system-view

[Sysname] interface vlan-interface 10

[Sysname-Vlan-interface10] undo rip input

rip metricin

Syntax

rip metricin value

undo rip metricin

View

Interface view

Parameters

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

Description

Use the rip metricin command to add a metric to the received routes.

Use the undo rip metricin command to restore the default.

By default, the additional metric of a received route is 0.

When a valid RIP route is received, the system adds a metric to it and then installs it into the routing table. Therefore, the metric of routes received on the configured interface is increased.

Related commands: rip metricout.

Examples

# Configure VLAN-interface 10 to add a metric of 2 for incoming routes.

<Sysname> system-view

[Sysname] interface vlan-interface 10

[Sysname-Vlan-interface10] rip metricin 2

rip metricout

Syntax

rip metricout value

undo rip metricout

View

Interface view

Parameters

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

Description

Use the rip metricout command to add a metric to a sent route.

Use the undo rip metricout command to restore the default.

By default, the additional metric for sent routes is 1.

Before a RIP route is sent, a metric will be added to it. Therefore, when the metric is configured on an interface, the metric of RIP routes sent on the interface will be increased.

Related commands: rip metricin.

Examples

#  Configure VLAN-interface 10 to add a metric of 2 for outgoing routes.

<Sysname> system-view

[Sysname] interface vlan-interface 10

[Sysname-Vlan-interface10] rip metricout 2

rip output

Syntax

rip output

undo rip output

View

Interface view

Parameters

None

Description

Use the rip output command to enable the interface to send RIP messages.

Use the undo rip output command to disable the interface from sending RIP messages.

Sending RIP messages is enabled on an interface by default.

Related commands: rip input.

Examples

# Disable VLAN-interface 10 from receiving RIP messages.

<Sysname> system-view

[Sysname] interface vlan-interface 10

[Sysname-Vlan-interface10] undo rip output

rip poison-reverse

Syntax

rip poison-reverse

undo rip poison-reverse

View

Interface view

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 RIP routing updates on VLAN-interface 10.

<Sysname> system-view

[Sysname] interface vlan-interface 10

[Sysname-Vlan-interface10] rip poison-reverse

rip split-horizon

Syntax

rip split-horizon

undo rip split-horizon

View

Interface view

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.

The split horizon function is enabled by default.

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 it is necessary to disable the split horizon function.

 

Only the poison reverse function takes effect if both the split horizon and poison reverse functions are enabled.

 

Examples

# Enable the split horizon function on VLAN-interface 10.

<Sysname> system-view

[Sysname] interface vlan-interface 10

[Sysname-Vlan-interface10] rip split-horizon

rip summary-address

Syntax

rip summary-address ip-address { mask | mask-length }

undo rip summary-address ip-address { mask | mask-length }

View

Interface view

Parameters

ip-address: Summary IP address.

mask: Subnet mask in dotted decimal format.

mask-length: Subnet mask length.

Description

Use the rip summary-address command to configure RIPv2 to advertise a summary route through the interface.

Use the undo rip summary-address command to remove the configuration.

Note that the summary address is valid only when the automatic summarization is disabled.

Related commands: summary.

Examples

# Advertise a local summary address on VLAN-interface 10.

<Sysname> system-view

[Sysname] interface vlan-interface 10

[Sysname-Vlan-interface10] rip summary-address 10.0.0.0 255.255.255.0

rip version

Syntax

rip version { 1 | 2 [ broadcast | multicast ] }

undo rip version

View

Interface view

Parameters

1: RIP version 1.

2: RIP version 2.

broadcast: Sends RIPv2 messages in broadcast mode.

multicast: Sends RIPv2 messages in multicast mode.

Description

Use the rip version command to specify a RIP version for the interface.

Use the undo rip version command to remove the specified RIP version.

By default, no RIP version is configured for an interface, which uses the global RIP version. If the global RIP version is not configured, the interface can only send RIPv1 broadcasts and can receive RIPv1 broadcasts and unicasts, and RIPv2 broadcasts, multicasts and unicasts.

If RIPv2 is specified with no sending mode configured, RIPv2 messages will be sent in multicast mode.

When RIPv1 runs on an interface, the interface will:

l          Send RIPv1 broadcast messages

l          Receive RIPv1 broadcast messages

l          Receive RIPv1 unicast messages

When RIPv2 runs on the interface in broadcast mode, the interface will:

l          Send RIPv2 broadcast messages

l          Receive RIPv1 broadcast messages

l          Receive RIPv1 unicast messages

l          Receive RIPv2 broadcast messages

l          Receive RIPv2 multicast messages

l          Receive RIPv2 unicast messages

When RIPv2 runs on the interface in multicast mode, the interface will:

l          Send RIPv2 multicast messages

l          Receive RIPv2 broadcast messages

l          Receive RIPv2 multicast messages

l          Receive RIPv2 unicast messages

Examples

# Configure VLAN-interface 10 to broadcast RIPv2 messages.

<Sysname> system-view

[Sysname] interface Vlan-interface 10

[Sysname-Vlan-interface10] rip version 2 broadcast

silent-interface

Syntax

silent-interface { all | interface-type interface-number }

undo silent-interface { all | interface-type interface-number }

View

RIP view

Parameters

all: Silents all interfaces.

interface-type interface-number: Specifies an interface by its type and number.

Description

Use the silent-interface command to disable an interface or all interfaces from sending routing updates. That is, the interface only receives but does not send RIP messages.

Use the undo silent-interface command to restore the default.

By default, all interfaces are allowed to send routing updates.

Examples

# Configure all VLAN interfaces to work in the silent state, and activate VLAN-interface 10.

<Sysname> system-view

[Sysname] rip 100

[Sysname-rip-100] silent-interface all

[Sysname-rip-100] undo silent-interface vlan-interface 10

[Sysname-rip-100] network 131.108.0.0

summary

Syntax

summary

undo summary

View

RIP view

Parameters

None

Description

Use the summary command to enable automatic RIPv2 summarization. Natural masks are used to advertise summary routes so as to reduce the size of routing tables.

Use the undo summary command to disable automatic RIPv2 summarization so that all subnet routes can be broadcast.

By default, automatic RIPv2 summarization is enabled.

Enabling automatic RIPv2 summarization can reduce the size of the routing table to enhance the scalability and efficiency of large networks.

Related commands: rip version.

Examples

# Enable RIPv2 automatic summarization.

<Sysname> system-view

[Sysname] rip

[Sysname-rip-1] summary

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

RIP view

Parameters

garbage-collect-value: Garbage-collect timer time in seconds, in the range of 1 to 3600.

suppress-value: Suppress timer time in seconds, in the range of 0 to 3600.

timeout-value: Timeout timer time in seconds, in the range of 1 to 3600.

update-value: Update timer time in seconds, in the range of 1 to 3600.

Description

Use the timers command to configure RIP timers. By adjusting RIP timers, you can improve network performance.

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.

RIP is controlled by the above four timers.

l          The update timer defines the interval between routing updates.

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

l          The suppress timer defines how long a RIP 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, RIP advertises the route with the routing metric set to 16. If no routing update is announced for that route after the Garbage-Collect timer expires, the route will be deleted from the routing table.

Note that:

l          Generally, you are not recommended to change the default values of these timers.

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

Examples

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

<Sysname> system-view

[Sysname] rip 100

[Sysname-rip-100] timers update 5

[Sysname-rip-100] timers timeout 15

[Sysname-rip-100] timers suppress 15

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

validate-source-address

Syntax

validate-source-address

undo validate-source-address

View

RIP view

Parameters

None

Description

Use the validate-source-address command to enable the source IP address validation on incoming RIP routing updates.

Use the undo validate-source-address command to disable the source IP address validation.

The source IP address validation is enabled by default.

Generally, disabling the validation is not recommended.

Examples

# Enable the source IP address validation on incoming messages.

<Sysname> system-view

[Sysname-rip] rip 100

[Sysname-rip-100] validate-source-address

version

Syntax

version { 1 | 2 }

undo version

View

RIP view

Parameters

1: Specifies the RIP version as RIPv1.

2: Specifies the RIP version as RIPv2. RIPv2 messages are multicast.

Description

Use the version command to specify a global RIP version.

Use the undo version command to remove the configured global RIP version.

By default, if an interface has a RIP version specified, the RIP version takes effect; if it has no RIP version specified, it can send RIPv1 broadcasts, and receive RIPv1 broadcasts, RIPv1 unicasts, RIPv2 broadcasts, RIPv2 multicasts, and RIPv2 unicasts. 

Note that:

l          If an interface has an RIP version specified, the RIP version takes precedence over the global RIP version.

l          If no RIP version is specified for the interface and the global version is RIPv1, the interface inherits RIPv1, and it can send RIPv1 broadcasts, and receive RIPv1 broadcasts and unicasts.

l          If no RIP version is specified for the interface and the global version is RIPv2, the interface operates in the RIPv2 muticast mode, and it can send RIPv2 multicasts, and receive RIPv2 broadcasts, multicasts and unicasts.

Examples

# Specify RIPv2 as the global RIP version.

<Sysname> system-view

[Sysname] rip 100

[Sysname-rip-100] version 2

 


OSPF Configuration Commands

 

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

 

abr-summary

Syntax

abr-summary ip-address { mask | mask-length } [ advertise | not-advertise ] [ cost cost ]

undo abr-summary ip-address { mask | mask-length }

View

OSPF area view

Parameters

ip-address: Destination IP address of the summary route, in dotted decimal format.

mask: Mask of the IP address in dotted decimal format.

mask-length: Mask length, in the range 0 to 32 bits.

advertise | not-advertise: Advertises the summary route or not. By default, the summary route is advertised.

cost cost: Specifies the cost of the summary route, in the range 1 to 16777215. The default cost is the largest cost value among routes that are summarized.

Description

Use the abr-summary command to configure a summary route on the area border router.

Use the undo abr-summary command to remove a summary route.

By default, no route summarization is configured on an ABR.

You can enable advertising the summary route or not, and specify a route cost.

This command is usable only on an ABR. Multiple contiguous networks may be available in an area, where you can summarize them with one network on the ABR for advertisement. The ABR advertises only the summary route to other areas.

With the undo abr-summary command used, summarized routes will be advertised.

Examples

# Summarize networks 36.42.10.0/24 and 36.42.110.0/24 in Area 1 with 36.42.0.0/16.

<Sysname> system-view

[Sysname] ospf 100

[Sysname-ospf-100] area 1

[Sysname-ospf-100-area-0.0.0.1] network 36.42.10.0 0.0.0.255

[Sysname-ospf-100-area-0.0.0.1] network 36.42.110.0 0.0.0.255

[Sysname-ospf-100-area-0.0.0.1] abr-summary 36.42.0.0 255.255.0.0

area

Syntax

area area-id

undo area area-id

View

OSPF view

Parameters

area-id: ID of an area, a decimal integer in the range 0 to 4294967295 that is translated into the IP address format by the system, or an IP address.

Description

Use the area command to create an area and enter area view.

Use the undo area command to remove a specified area.

No OSPF area is created by default.

Examples

# Create Area 0 and enter Area 0 view

<Sysname> system-view

[Sysname] ospf 100

[Sysname-ospf-100] area 0

[Sysname-ospf-100-area-0.0.0.0]

asbr-summary

Syntax

asbr-summary ip-address { mask | mask-length } [ tag tag | not-advertise | cost cost ]*

undo asbr-summary ip-address { mask | mask-length }

View

OSPF view

Parameters

ip-address: IP address of the summary route in dotted decimal notation.

mask: IP address mask in dotted decimal notation.

mask-length: Mask length, in the range 0 to 32 bits.

not-advertise: Disables advertising the summary route. If the keyword is not specified, the route is advertised.

tag tag: Specifies a tag value for the summary route, used by a route policy to control route advertisement, in the range 0 to 4294967295. The default is 1.

cost cost: Specifies the cost of the summary route, in the range 1 to 16777214. For Type-1 external routes, the cost defaults to the largest cost among routes that are summarized. For Type-2 external routes, the cost defaults to the largest cost among routes that are summarized plus 1.

Description

Use the asbr-summary command to configure a summary route.

Use the undo asbr-summary command to remove a summary route.

No ASBR route summarization is configured by default.

With the asbr-summary command configured on an ASBR, it summarizes redistributed routes that fall into the specified address range with a single route. If the ASBR resides in an NSSA area, it advertises the summary route in a Type-7 LSA into the area.

With the asbr-summary command configured on an NSSA ABR, it summarizes routes described by Type-5 LSAs translated from Type-7 LSAs with a single route and advertises the summary route to other areas. This command does not take effect on non NSSA ABRs.

With the undo asbr-summary command used, summarized routes will be advertised.

Related command: display ospf asbr-summary.

Examples

# Summarize redistributed routes with a single route.

<Sysname> system-view

[Sysname] ip route-static 10.2.1.0 24 null 0

[Sysname] ip route-static 10.2.2.0 24 null 0

[Sysname] ospf 100

[Sysname-ospf-100] import-route static

[Sysname-ospf-100] asbr-summary 10.2.0.0 255.255.0.0 tag 2 cost 100

authentication-mode

Syntax

authentication-mode { simple | md5 }

undo authentication-mode

View

OSPF area view

Parameters

simple: Specifies the simple authentication mode.

md5: Specifies the MD5 ciphertext authentication mode.

Description

Use the authentication-mode command to specify an authentication mode for the OSPF area.

Use the undo authentication-mode command to remove the authentication mode.

By default, no authentication mode is configured for an OSPF area.

Routers that reside in the same area must have the same authentication mode: non-authentication, simple, or MD5.

Related commands: ospf authentication-mode.

Examples

# Specify the MD5 ciphertext authentication mode for OSPF area0.

<Sysname> system-view

[Sysname] ospf 100

[Sysname-ospf-100] area 0

[Sysname-ospf-100-area-0.0.0.0] authentication-mode md5

bandwidth-reference

Syntax

bandwidth-reference value

undo bandwidth-reference

View

OSPF view

Parameters

value: Bandwidth reference value for link cost calculation, in the range 1 to 2147483648 Mbps.

Description

Use the bandwidth-reference command to specify a reference bandwidth value for link cost calculation.

Use the undo bandwidth-reference command to restore the default value.

The default value is 100 Mbps.

When links have no cost values configured, OSPF calculates their cost values: Cost=Reference bandwidth value / Link bandwidth. If the calculated cost is greater than 65535, the value of 65535 is used.

Examples

# Specify the reference bandwidth value as 1000 Mbps.

<Sysname> system-view

[Sysname] ospf 100

[Sysname-ospf-100] bandwidth-reference 1000

default

Syntax

default { cost cost | limit limit | tag tag | type type } *

undo default { cost | limit | tag | type } *

View

OSPF view

Parameters

cost: Specifies the default cost for redistributed routes, in the range 0 to 16777214.

limit: Specifies the default upper limit of routes redistributed per time, in the range 1 to 2147483647.

tag: Specifies the default tag for redistributed routes, in the range 0 to 4294967295.

type: Specifies the default type for redistributed routes: 1 or 2.

Description

Use the default command to configure default parameters for redistributed routes.

Use the undo default command to restore default values.

The cost, route type, tag, and the upper limit are 1, 2, 1 and 1000 by default.

Related commands: import-route.

Examples

# Configure the default cost, upper limit, tag and type as 10, 20000, 100 and 2 respectively for redistributed external routes.

<Sysname> system-view

[Sysname] ospf 100

[Sysname-ospf-100] default cost 10 limit 20000 tag 100 type 2

default-cost

Syntax

default-cost cost

undo default-cost

View

OSPF area view

Parameters

cost: Specifies a cost for the default route advertised to the Stub or NSSA area, in the range 0 to 16777214.

Description

Use the default-cost command to specify a cost for the default route advertised to the stub or NSSA area.

Use the undo default-cost command to restore the default value.

The cost defaults to 1.

This command is only applicable to the ABR of a stub area or the ABR/ASBR of an NSSA area.

Related commands: stub, nssa.

Examples

# Configure Area 1 as a stub area, and specify the cost of the default route advertised to the stub area as 20.

<Sysname> system-view

[Sysname] ospf 100

[Sysname-ospf-100] area 1

[Sysname-ospf-100-area-0.0.0.1] stub

[Sysname-ospf-100-area-0.0.0.1] default-cost 20

default-route-advertise

Syntax

default-route-advertise [ [ always | cost cost | type type | route-policy route-policy-name ] * | summary cost cost ]

undo default-route-advertise

View

OSPF view

Parameters

always: Generates a default external route in an ASE LSA into the OSPF routing domain, if the router has no default route configured. Without this keyword used, you have to configure a default route to distribute it in a Type-5 LSA into the OSPF routing domain.

cost cost: Specifies a cost for the default route, in the range 0 to 16777214. The default is 1.

type type: Specifies a type for the ASE LSA: 1 or 2, which defaults to 2.

route-policy route-policy-name: Specifies a route policy name, a string of 1 to 19 characters. If the default route matches the specified route policy, the route policy modifies some values in the ASE LSA.

summary: Advertises the Type-3 summary LSA of the specified default route.

Description

Use the default-route-advertise command to generate a default route into the OSPF routing domain.

Use the undo default-route-advertise command to disable OSPF from distributing a default external route.

By default, no default route is distributed.

Using the import-route command cannot redistribute a default route. To do so, use the default-route-advertise command. If no default route is configured, use the default-route-advertise always command to generate a default route in a Type-5 LSA.

The default-route-advertise summary cost command is applicable only to VPNs, and the default route is redistributed in a Type-3 LSA. The PE router advertises the redistributed default route to the CE router. Currently, this command is not supported on the access controller switch interface board because it does not support VPN.

Related commands: import-route.

Examples

# Generate a default route in an ASE LSA into the OSPF routing domain (no default route configured on the router).

<Sysname> system-view

[Sysname] ospf 100

[Sysname-ospf-100] default-route-advertise always

description

Syntax

description description

undo description

View

OSPF view/OSPF area view

Parameters

description: Configures a description for the OSPF process in OSPF view, or for the OSPF area in OSPF area view. description is a string of up to 80 characters.

Description

Use the description command to configure a description for an OSPF process or area.

Use the undo description command to remove the description.

No description is configured by default.

Use of this command is only for the identification of an OSPF process or area. The description has no special meaning.

Examples

# Describe the OSPF process 100 as abc.

<Sysname> system-view

[Sysname] ospf 100

[Sysname-ospf-100] description abc

# Describe the OSPF area0 as bone area.

<Sysname> system-view

[Sysname] ospf 100

[Sysname-ospf-100] area 0

[Sysname-ospf-100-area-0.0.0.0] description bone area

display ospf abr-asbr

Syntax

display ospf [ process-id ] abr-asbr

View

Any view

Parameters

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

Description

Use the display ospf abr-asbr command to display ABR/ASBR information.

If no process is specified, the ABR/ASBR information of all OSPF processes is displayed.

If you use this command on routers in a stub area, no ASBR information is displayed.

Examples

# Display ABR/ASBR information.

<Sysname> display ospf abr-asbr

 

          OSPF Process 1 with Router ID 192.168.1.2

                  Routing Table to ABR and ASBR

 

Type        Destination       Area       Cost  Nexthop         RtType

 Inter       3.3.3.3           0.0.0.0    3124  10.1.1.2        ASBR

 Intra       2.2.2.2           0.0.0.0    1562  10.1.1.2        ABR

Table 3-1 Description on the fields of the display ospf abr-asbr command

Field

Description

Type

Intra-area router or Inter-area router

Destination

Router ID of an ABR/ASBR

Area

ID of the area of the next hop

Cost

Cost from the router to the ABR/ASBR

Nexthop

Next hop address

RtType

Router type: ABR, ASBR

 

display ospf asbr-summary

Syntax

display ospf [ process-id ] asbr-summary [ ip-address { mask | mask-length } ]

View

Any view

Parameters

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

ip-address: IP address, in dotted decimal format.

mask: IP address mask, in dotted decimal format.

mask-length: Mask length, in the range 0 to 32 bits.

Description

Use the display ospf asbr-summary command to display information about the redistributed routes that are summarized.

If no OSPF process is specified, related information of all OSPF processes is displayed.

If no IP address is specified, information about all summarized redistributed routes will be displayed.

Related commands: asbr-summary.

Examples

# Display information about all summarized redistributed routes.

<Sysname> display ospf asbr-summary

 

          OSPF Process 1 with Router ID 2.2.2.2

                  Summary Addresses

 

 Total Summary Address Count: 1

 

                  Summary Address

 

 Net         : 30.1.0.0

 Mask        : 255.255.0.0

 Tag         : 20

 Status      : Advertise

 Cost        : 10 (Configured)

 The Count of Route is : 2

 

 Destination     Net Mask        Proto      Process   Type     Metric

 

 30.1.2.0        255.255.255.0   OSPF       1         2        1

 30.1.1.0        255.255.255.0   OSPF       1         2        1

Table 3-2 Description on the fields of the display ospf asbr-summary command

Field

Description

Total Summary Address Count

Total summary route number

Net

The address of the summary route

Mask

The mask of the summary route address

Tag

The tag of the summary route

Status

The advertisement status of the summary route

Cost

The cost to the summary net

The Count of Route

The count of routes that are summarized

Destination

Destination address of a summarized route

Net Mask

Network mask of a summarized route

Proto

Routing protocol

Process

Process ID of routing protocol

Type

Type of a summarized route

Metric

Metric of a summarized route

 

display ospf brief

Syntax

display ospf [ process-id ] brief

View

Any view

Parameters

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

Description

Use the display ospf brief command to display OSPF brief information. If no OSPF process is specified, brief information about all OSPF processes is displayed.

Examples

# Display OSPF brief information.

<Sysname> display ospf brief

 

          OSPF Process 1 with Router ID 192.168.1.2

                  OSPF Protocol Information

 

 RouterID: 192.168.1.2      Border Router:  NSSA

 Route Tag: 0

 Multi-VPN-Instance is not enabled

 Applications Supported: MPLS Traffic-Engineering

 SPF-schedule-interval: 5 0 5000

 LSA generation interval: 5 0 5000

 LSA arrival interval: 1000

 Default ASE Parameter: Metric: 1 Tag: 1 Type: 2

 Route Preference: 10

 ASE Route Preference: 150

 SPF Computation Count: 22

 RFC 1583 Compatible

 Graceful restart interval: 120

 Area Count: 1   Nssa Area Count: 1

 ExChange/Loading Neighbors: 0

 

 

 Area: 0.0.0.1          (MPLS TE  not enabled)

 Authtype: None Area flag: NSSA

 SPF Scheduled Count: 5

 ExChange/Loading Neighbors: 0

 

 Interface: 192.168.1.2 (Vlan-interface1)

 Cost: 1       State: DR        Type: Broadcast    MTU: 1500

 Priority: 1

 Designated Router: 192.168.1.2

 Backup Designated Router: 192.168.1.1

 Timers: Hello 10 , Dead 40 , Poll  40 , Retransmit 5 , Transmit Delay 1

Table 3-3 Description on the fields of the display ospf brief command

Field

Description

RouterID

Router ID

Border Router

ABR, ASBR or NSSA ABR

Route Tag

The tag of redistributed routes

Multi-VPN-Instance is not enabled

The OSPF process does not support multi-VPN-instance.

Applications Supported

Applications supported

SPF-schedule-interval

Interval for SPF calculations

LSA generation interval

LSA generation interval

LSA arrival interval

Minimum LSA repeat arrival interval

Default ASE Parameter

Default ASE Parameters: metric, tag, route type.

Route Preference

Internal route priority

ASE Route Preference

External route priority

SPF Computation count

SPF computation count of the OSPF process

RFC1583 Compatible

Compatible with routing rules defined in RFC1583

Graceful restart interval

GR restart interval

Area Count

Area number of the current process

Nssa Area Count

NSSA area number of the current process

ExChange/Loading Neighbors

Neighbors in ExChange/Loading state

Area

Area ID in the IP address format

Authtype

Authentication type of the area: Non-authentication, simple authentication, or MD5 authentication

Area flag

The type of the area

SPF scheduled Count

SPF calculation count in the OSPF area

Interface

IP address of the interface

Cost

Interface cost

State

Interface state

Type

Interface network type

MTU

Interface MTU

Priority

Router priority

Designated Router

The Designated Router

Backup Designated Router

The Backup Designated Router

Timers

Intervals of timers: hello, dead, poll, retransmit, and transmit delay

 

display ospf cumulative

Syntax

display ospf [ process-id ] cumulative

View

Any view

Parameters

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

Description

Use the display ospf cumulative command to display OSPF statistics.

Use of this command is helpful for troubleshooting.

Examples

# Display OSPF statistics.

<Sysname> display ospf cumulative

          OSPF Process 1 with Router ID 2.2.2.2

                  Cumulations

 

  IO Statistics

             Type        Input     Output

            Hello           61        122

   DB Description            2          3

   Link-State Req            1          1

Link-State Update            3          3

   Link-State Ack            3          2

 

  LSAs originated by this router

  Router: 4

  Network: 0

  Sum-Net: 0

  Sum-Asbr: 0

  External: 0

  NSSA: 0

  Opq-Link: 0

  Opq-Area: 0

  Opq-As: 0

 

  LSAs Originated: 4  LSAs Received: 7

 

  Routing Table:

    Intra Area: 2  Inter Area: 3  ASE/NSSA: 0

Table 3-4 Description on the fields of the display ospf cumulative command

Field

Description

IO statistics

Statistics about input/output packets and LSAs

Type

OSPF packet type

Input

Packets received

Output

Packets sent

Hello

Hell packet

DB Description

Database Description packet

Link-State Req

Link-State Request packet

Link-State Update

Link-State Update packet

Link-State Ack

Link-State Acknowledge packet

LSAs originated by this router

LSAs originated by this router

Router

Type-1 LSA

Network

Type-2 LSA

Sum-Net

Type-3 LSA

Sum-Asbr

Type-4 LSA

External

Type-5 LSA

NSSA

Type-7 LSA

Opq-Link

Type-9 LSA

Opq-Area

Type-10 LSA

Opq-As

Type-11 LSA

LSAs originated

LSAs originated

LSAs Received

LSAs received

Routing Table

Routing table

Intra Area

Intra-area route number

Inter Area

Inter-area route number

ASE

ASE route number

 

display ospf error

Syntax

display ospf [ process-id ] error

View

Any view

Parameters

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

Description

Use the display ospf error command to display OSPF error information.

If no process is specified, the OSPF error information of all OSPF processes is displayed.

Examples

# Display OSPF error information.

<Sysname> display ospf error

 

          OSPF Process 1 with Router ID 192.168.80.100

                  OSPF Packet Error Statistics

 

0    : OSPF Router ID confusion     0    : OSPF bad packet

0    : OSPF bad version             0    : OSPF bad checksum

0    : OSPF bad area ID             0    : OSPF drop on unnumber interface

0    : OSPF bad virtual link        0    : OSPF bad authentication type

0    : OSPF bad authentication key  0    : OSPF packet too small

0    : OSPF Neighbor state low      0    : OSPF transmit error

0    : OSPF interface down          0    : OSPF unknown neighbor

0    : HELLO: Netmask mismatch      0    : HELLO: Hello timer mismatch

0    : HELLO: Dead timer mismatch   0    : HELLO: Extern option mismatch

0    : HELLO: NBMA neighbor unknown 0    : DD: MTU option mismatch

0    : DD: Unknown LSA type         0    : DD: Extern option mismatch

0    : LS ACK: Bad ack              0    : LS ACK: Unknown LSA type

0    : LS REQ: Empty request        0    : LS REQ: Bad request

0    : LS UPD: LSA checksum bad     0    : LS UPD: Received less recent LSA

0    : LS UPD: Unknown LSA type

Table 3-5 Description on the fields of the display ospf error command

Field

Description

OSPF Router ID confusion

Packets with duplicate route ID

OSPF bad packet

Packets illegal

OSPF bad version

Packets with wrong version

OSPF bad checksum

Packets with wrong checksum

OSPF bad area ID

Packets with invalid area ID

OSPF drop on unnumber interface

Packets dropped on the unnumbered interface

OSPF bad virtual link

Packets on wrong virtual links

OSPF bad authentication type

Packets with invalid authentication type

OSPF bad authentication key

Packets with invalid authentication key

OSPF packet too small

Packets too small in length

OSPF Neighbor state low

Packets received in low neighbor state

OSPF transmit error

Packets with error when being transmitted

OSPF interface down

Shutdown times of the interface

OSPF unknown neighbor

Packets received from unknown neighbors

HELLO: Netmask mismatch

Hello packets with mismatched mask

HELLO: Hello timer mismatch

Hello packets with mismatched hello timer

HELLO: Dead timer mismatch

Hello packets with mismatched dead timer

HELLO: Extern option mismatch

Hello packets with mismatched option field

HELLO: NBMA neighbor unknown

Hello packets received from unknown NBMA neighbors

DD: MTU option mismatch

DD packets with mismatched MTU

DD: Unknown LSA type

DD packets with unknown LSA type

DD: Extern option mismatch

DD packets with mismatched option field

LS ACK: Bad ack

Bad LSAck packets for LSU packets

LS ACK: Unknown LSA type

LSAck packets with unknown LSA type

LS REQ: Empty request

LSR packets with no request information

LS REQ: Bad request

Bad LSR packets

LS UPD: LSA checksum bad

LSU packets with wrong LSA checksum

LS UPD: Received less recent LSA

LSU packets without latest LSA

LS UPD: Unknown LSA type

LSU packets with unknown LSA type

 

display ospf interface

Syntax

display ospf [ process-id ] interface [ all | interface-type interface-number ]

View

Any view

Parameters

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

all: Display the OSPF information of all interfaces.

interface-type interface-number: Interface type and interface number.

Description

Use the display ospf interface command to display OSPF interface information.

If no OSPF process is specified, the OSPF interface information of all OSPF processes is displayed.

Examples

# Display OSPF interface information.

<Sysname> display ospf interface

 

          OSPF Process 1 with Router ID 192.168.1.1

                  Interfaces

 

 Area: 0.0.0.0

 IP Address      Type         State    Cost  Pri   DR              BDR

 192.168.1.1     PTP          P-2-P    1562  1     0.0.0.0         0.0.0.0

 

 Area: 0.0.0.1

 IP Address      Type         State    Cost  Pri   DR              BDR

 172.16.0.1      Broadcast    DR       1     1     172.16.0.1      0.0.0.0

Table 3-6 Description on the fields of the display ospf interface command

Field

Description

Area

Area ID of the interface

IP address

Interface IP address (regardless of whether TE is enabled or not)

Type

Interface network type: PTP, PTMP, Broadcast, or NBMA

State

Interface state defined by interface state machine: DOWN, Waiting, p-2-p, DR, BDR, or DROther

Cost

Interface cost

Pri

Router priority

DR

The DR on the interface’s network segment

BDR

The BDR on the interface’s network segment

 

display ospf lsdb

Syntax

display ospf [ process-id ] lsdb [ brief | [ { ase | router | network | summary | asbr | nssa | opaque-link | opaque-area | opaque-as } [ link-state-id ] ] [ originate-router advertising-router-id | self-originate ] ]

View

Any view

Parameters

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

brief: Displays brief LSDB information.

ase: Displays Type-5 LSA (AS External LSA) information in the LSDB.

router: Displays Type-1 LSA (Router LSA) information in the LSDB.

network: Displays Type-2 LSA (Network LSA) information in the LSDB.

summary: Displays Type-3 LSA (Network Summary LSA) information in the LSDB.

asbr: Displays Type-4 LSA (ASBR Summary LSA) information in the LSDB.

nssa: Displays Type-7 LSA (NSSA External LSA) information in the LSDB.

opaque-link: Displays Type-9 LSA (Opaque-link LSA) information in the LSDB.

opaque-area: Displays Type-10 LSA (Opaque-area LSA) information in the LSDB.

opaque-as: Displays Type-11 LSA (Opaque-AS LSA) information in the LSDB.

link-state-id: Link state ID, in the IP address format.

originate-router advertising-router-id: Displays information about LSAs originated by the specified router.

self-originate: Displays information about self-originated LSAs.

Description

Use the display ospf lsdb command to display LSDB information.

If no OSPF process is specified, LSDB information of all OSPF processes is displayed.

Examples

# Display OSPF LSDB information.

<Sysname> display ospf lsdb

         OSPF Process 1 with Router ID 192.168.0.1

                 Link State Database

 

                         Area: 0.0.0.0

 Type      LinkState ID    AdvRouter          Age  Len   Sequence   Metric

 Router    192.168.0.2     192.168.0.2        474  36    80000004       0

 Router    192.168.0.1     192.168.0.1         21  36    80000009       0

 Network   192.168.0.1     192.168.0.1        321  32    80000003       0

 Sum-Net   192.168.1.0     192.168.0.1        321  28    80000002       1

 Sum-Net   192.168.2.0     192.168.0.2        474  28    80000002       1

                         Area: 0.0.0.1

 Type      LinkState ID    AdvRouter          Age  Len   Sequence   Metric

 Router    192.168.0.1     192.168.0.1         21  36    80000005       0

 Sum-Net   192.168.2.0     192.168.0.1        321  28    80000002       2

 Sum-Net   192.168.0.0     192.168.0.1        321  28    80000002       1

Table 3-7 Description on the fields of the display ospf lsdb command

Field

Description

Area

Area

Type

LSA type

LinkState ID

Linkstate ID

AdvRouter

The router that advertised the LSA

Age

Age of the LSA

Len

Length of the LSA

Sequence

Sequence number of the LSA

Metric

Cost of the LSA

 

# Display Type2 LSA (Network LSA) information in the LSDB.

[Sysname] display ospf 1 lsdb network

                   

          OSPF Process 1 with Router ID 192.168.1.1

                          Area: 0.0.0.0

                  Link State Database

 

 

    Type      : Network

    LS ID     : 192.168.0.2

    Adv Rtr   : 192.168.2.1

    LS Age    : 922

    Len       : 32

    Options   :  E

    Seq#      : 80000003

    Chksum    : 0x8d1b

    Net Mask  : 255.255.255.0

       Attached Router    192.168.1.1

       Attached Router    192.168.2.1

                      

Table 3-8 Description on the fields of the display ospf 1 lsdb network command

Field

Description

Type

LSA type

LS ID

DR IP address

Adv Rtr

Router that advertised the LSA

LS Age

LSA age time

Len

LSA length

Options

LSA options

Seq#

LSA sequence number

Chksum

LSA checksum

Net Mask

Network mask

Attached Router

ID of the router that established adjacency with the DR, and ID of the DR itself

 

display ospf nexthop

Syntax

display ospf [ process-id ] nexthop

View

Any view

Parameters

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

Description

Use the display ospf nexthop command to display OSPF next hop information.

If no OSPF process is specified, the next hop information of all OSPF processes is displayed.

Examples

# Display OSPF next hop information.

<Sysname> display ospf nexthop

         OSPF Process 1 with Router ID 192.168.0.1

                 Routing Nexthop Information

 

  Next Hops:

  Address         Refcount  IntfAddr        Intf Name

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

  192.168.0.1     1         192.168.0.1     Vlan-interface1

  192.168.0.2     1         192.168.0.1     Vlan-interface1

  192.168.1.1     1         192.168.1.1     Vlan-interface10

Table 3-9 Description on the fields of the display ospf nexthop command

Field

Description

Next hops

Information about Next hops

Address

Next hop address

Refcount

Reference count, namely, routes that reference the next hop

IntfAddr

Outbound interface address

Intf Name

Outbound interface name

 

display ospf peer

Syntax

display ospf [ process-id ] peer [ verbose | [ interface-type interface-number ] [ neighbor-id ] ]

View

Any view

Parameters

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

verbose: Displays detailed neighbor information.

interface-type interface-number: Interface type and interface number.

neighbor-id: Neighbor router ID.

Description

Use the display ospf peer command to display information about OSPF neighbors.

Note that:

If no OSPF process is specified, OSPF neighbor information of all OSPF processes is displayed.

If an interface is specified, the neighbor on the interface is displayed.

If a neighbor ID is specified, detailed information about the neighbor is displayed,

If neither interface nor neighbor ID is specified, brief information about neighbors of the specified OSPF process or all OSPF processes is displayed.

Examples

# Display detailed OSPF neighbor information.

<Sysname> display ospf peer verbose

 

          OSPF Process 1 with Router ID 192.168.0.138

                  Neighbors

 

 Area 0.0.0.1 interface 192.168.0.138(Vlan-interface1)'s neighbors

 Router ID: 192.168.0.136    Address: 192.168.0.136    GR State: Normal

   State: Full  Mode: Nbr is Slave  Priority: 1

   DR: 192.168.0.138  BDR: 192.168.0.136  MTU: 0

   Dead timer due in 40  sec

   Neighbor is up for 00:12:59

   Authentication Sequence: [ 0 ]

   Neighbor state change count: 5

Table 3-10 Description on the fields of the display ospf peer verbose command

Field

Description

Router ID

Neighbor router ID

Address

Neighbor router address

GR State

GR state

State

Neighbor state: Down, Init, Attempt, 2-Way, Exstart, Exchange, Loading or Full

Mode

Neighbor mode for DD exchange: master or slave

Priority

Router priority

DR

The DR on the interface’s network segment

BDR

The BDR on the interface’s network segment

MTU

Interface MTU

Dead timer due in 40  sec

Dead timer times out in 40 seconds

Neighbor is up for 00:12:59

The neighbor has been up for 00:12:59

Authentication Sequence

Authentication sequence number

Neighbor state change count

Count of neighbor state changes

 

# Display brief OSPF neighbor information.

<Sysname> display ospf peer

 

               

                   OSPF Process 1 with Router ID 192.168.0.138

                        Neighbor Brief Information

 

 Area: 0.0.0.1

 Router ID       Address         Pri Dead-Time Interface       State

 192.168.0.136   192.168.0.136   1   37        Vlan1           Full/BDR

Table 3-11 Description on the fields of the display ospf peer command

Field

Description

Area

Neighbor area

Router ID

Neighbor router ID

Address

Neighbor interface address

Pri

Router priority

Dead time(s)

Dead interval remained

Interface

Interface connected to the neighbor

State

Neighbor state: Down, Init, Attempt, 2-Way, Exstart, Exchange, Loading or Full

 

display ospf peer statistics

Syntax

display ospf [ process-id ] peer statistics

View

Any view

Parameters

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

Description

Use the display ospf peer statistics command to display OSPF neighbor statistics.

If no OSPF process is specified, OSPF neighbor statistics of all OSPF processes is displayed.

Examples

# Display OSPF neighbor statistics.

<Sysname> display ospf peer statistics

                  OSPF Process 1 with Router ID 1.1.1.1

                            Neighbor Statistics

 

Area ID       Down  Attempt Init 2-Way ExStart Exchange Loading Full Total

0.0.0.1       0      0         0     0     0        0          0        1     1

Total         0      0         0     0     0        0          0        1     1

Table 3-12 Description on the fields of the display ospf peer statistics command

Field

Description

Area ID

Area ID

Down

Under this state, neighbor initial state, the router has not received any information from a neighboring router for a period of time.

Attempt

Available only in an NBMA network, such as Frame Relay, X.25 or ATM. Under this state, the OSPF router has not received any information from a neighbor for a period but can send Hello packets with a longer interval to keep neighbor relationship.

Init

Under this state, the router has received a hello packet from a neighbor but the packet contains no IP address of itself, so mutual communication is not established.

2-Way

Indicates mutual communication between the router and its neighbor is established. DR/BDR election is finished under this state (or higher).

ExStart

Under this state, the router decides on sequence numbers for DD packets.

Exchange

Under this state, the router exchanges link state information with the neighbor.

Loading

Under this state, the router requests the neighbor for needed LSAs.

Full

Indicates LSDB synchronization has been accomplished between neighbors.

Total

Total number of neighbors under the same state

 

display ospf request-queue

Syntax

display ospf [ process-id ] request-queue [ interface-type interface-number ] [ neighbor-id ]

View

Any view

Parameters

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

interface-type interface-number: Interface type and number.

neighbor-id: Neighbor’s router ID.

Description

Use the display ospf request-queue command to display OSPF request queue information.

If no OSPF process is specified, the OSPF request queue information of all OSPF processes is displayed.

Examples

# Display OSPF request queue information.

<Sysname> display ospf request-queue

 

          OSPF Process 1 with Router ID 1.1.1.1

                  OSPF Request List

 

  The Router's Neighbor is Router ID 2.2.2.2         Address 10.1.1.2

  Interface 10.1.1.1         Area 0.0.0.0

  Request list:

       Type       LinkState ID      AdvRouter         Sequence   Age

       Router     2.2.2.2           1.1.1.1           80000004   1

       Network    192.168.0.1       1.1.1.1          80000003   1   

       Sum-Net    192.168.1.0       1.1.1.1         80000002   2  

Table 3-13 Description on the fields of the display ospf request queue command

Field

Description

The Router's Neighbor is Router ID

Neighbor router ID

Address

Neighbor interface IP address

Interface

Local interface IP address

Area

Area ID

Request list

Request list information

Type

LSA type

LinkState ID

Link state ID

AdvRouter

Advertising router

Sequence

LSA sequence number

Age

LSA age

 

display ospf retrans-queue

Syntax

display ospf [ process-id ] retrans-queue [ interface-type interface-number ] [ neighbor-id ]

View

Any view

Parameters

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

interface-type interface-number: Interface type and interface number.

neighbor-id: Neighbor’s router ID.

Description

Use the display ospf retrans-queue command to display retransmission queue information.

If no OSPF process is specified, the retransmission queue information of all OSPF processes is displayed.

Examples

# Display OSPF retransmission queue information.

<Sysname> display ospf retrans-queue

 

          OSPF Process 1 with Router ID 1.1.1.1

                  OSPF Retransmit List

 

  The Router's Neighbor is Router ID 2.2.2.2         Address 10.1.1.2

  Interface 10.1.1.1         Area 0.0.0.0

  Retransmit list:

       Type       LinkState ID      AdvRouter         Sequence   Age

       Router     2.2.2.2           2.2.2.2           80000004   1

       Network    12.18.0.1         2.2.2.2          80000003   1   

       Sum-Net    12.18.1.0         2.2.2.2         80000002   2 

Table 3-14 Description on the fields of the display ospf retrans-queue command

Field

Description

The Router's Neighbor is Router ID

Neighbor router ID

Address

Neighbor interface IP address

Interface

Interface address of the router

Area

Area ID

Retransmit list

Retransmission list

Type

LSA type

LinkState ID

Link state ID

AdvRouter

Advertising router

Sequence

LSA sequence number

Age

LSA age

 

display ospf routing

Syntax

display ospf [ process-id ] routing [ interface interface-type interface-number ] [ nexthop nexthop-address ]

View

Any view

Parameters

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

interface interface-type interface-number: Displays OSPF routing information advertised via the interface.

nexthop nexthop-address: Displays OSPF routing information with the specified next hop.

Description

Use the display ospf routing command to display OSPF routing information.

If no OSPF process is specified, the routing information of all OSPF processes is displayed.

Examples

# Display OSPF routing information.

<Sysname> display ospf routing

 

          OSPF Process 1 with Router ID 192.168.1.2

                   Routing Tables

 

 Routing for Network

 Destination        Cost  Type       NextHop         AdvRouter     Area

 192.168.1.0/24     1562  stub       192.168.1.2     192.168.1.2   0.0.0.0

 172.16.0.0/16      1563  Inter      192.168.1.1     192.168.1.1   0.0.0.0

 

 Total Nets: 2

 Intra Area: 1  Inter Area: 1  ASE: 0  NSSA: 0

Table 3-15 Description on the fields of the display ospf routing command

Field

Description

Destination

Destination network

Cost

Cost to destination

Type

Route type: intra-area, transit, stub, inter-area, type1 external, type2 external.

NextHop

Next hop address

AdvRouter

Advertising router

Area

Area ID

Total Nets

Total networks

Intra Area

Total intra-area routes

Inter Area

Total inter-area routes

ASE

Total ASE routes

NSSA

Total NSSA routes

 

display ospf vlink

Syntax

display ospf [ process-id ] vlink

View

Any view

Parameters

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

Description

Use the display ospf vlink command to display OSPF virtual link information.

If no OSPF process is specified, the OSPF virtual link information of all OSPF processes is displayed.

Examples

# Display OSPF virtual link information.

<Sysname> display ospf vlink

          OSPF Process 1 with Router ID 3.3.3.3

                  Virtual Links

 

 Virtual-link Neighbor-ID  -> 2.2.2.2, Neighbor-State: Full

 Interface: 10.1.2.1 (Vlan-interface1)

 Cost: 1  State: P-2-P  Type: Virtual

 Transit Area: 0.0.0.1

 Timers: Hello 10 , Dead 40 , Retransmit 5 , Transmit Delay 1

Table 3-16 Description on the fields of the display ospf vlink command

Field

Description

Virtual-link Neighbor-id

ID of the neighbor connected to the router via the virtual link

Neighbor-State

Neighbor State: Down, Attempt, Init, 2-Way, ExStart, Exchange, Loading, Full.

Interface

Local interface’s IP address and name of the virtual link

Cost

Interface route cost

State

Interface state

Type

Type: virtual link

Transit Area

Transit area ID

Timers

Values of timers: hello, dead, poll (NBMA), retransmit, and interface transmission delay

 

enable link-local-signaling

Syntax

enable link-local-signaling

undo enable link-local-signaling

View

OSPF view

Parameters

None

Description

Use the enable link-local-signaling command to enable the OSPF link-local signaling (LLC) capability.

Use the undo enable link-local-signaling command to disable the OSPF link-local signaling capability.

By default, this capability is disabled.

Examples

# Enable link-local signaling for OSPF process 1.

<Sysname> system-view

[Sysname] ospf 1

[Sysname-ospf-1] enable link-local-signaling

enable log

Syntax

enable log [ config | error | state ]

undo enable log [ config | error | state ]

View

OSPF view

Parameters

config: Enables configuration logging.

error: Enables error logging.

state: Enables state logging.

Description

Use the enable command to enable specified OSPF logging.

Use the undo enable command to disable specified OSPF logging.

OSPF logging is disabled by default.

If no keyword is specified, all logging is enabled.

Examples

# Enable OSPF logging.

<Sysname> system-view

[Sysname] ospf 100

[Sysname-ospf-100] enable log

enable out-of-band-resynchronization

Syntax

enable out-of-band-resynchronization

undo enable out-of-band-resynchronization

View

OSPF view

Parameters

None

Description

Use the enable out-of-band-resynchronization command to enable the OSPF out-of-band resynchronization (OOB-Resynch) capability.

Use the undo enable out-of-band-resynchronization command to disable the OSPF out-of-band resynchronization capability.

By default, the capability is disabled.

Examples

# Enable the out-of-band resynchronization capability for OSPF process 1.

<Sysname> system-view

[Sysname] ospf 1

[Sysname-ospf-1] enable link-local-signaling

[Sysname-ospf-1] enable out-of-band-resynchronization

filter

Syntax

filter { acl-number | ip-prefix ip-prefix-name } { import | export }

undo filter { import | export }

View

OSPF area view

Parameters

acl-number: ACL number, in the range 2000 to 3999.

ip-prefix-name: IP prefix list name, a string of up to 19 characters.

import: Filters incoming LSAs.

export: Filters outgoing LSAs.

Description

Use the filter command to configure incoming/outgoing summary LSAs filtering on an ABR.

Use the undo filter command to disable summary LSA filtering.

By default, summary LSAs filtering is disabled.

 

This command is only available on an ABR.

 

Examples

# Apply IP prefix list my-prefix-list to filter inbound Type-3 LSAs, and apply ACL 2000 to filter outbound Type-3 LSAs in OSPF Area 1.

<Sysname> system-view

[Sysname] ospf 100

[Sysname-ospf-100] area 1

[Sysname-ospf-100-area-0.0.0.1] filter ip-prefix my-prefix-list import

[Sysname-ospf-100-area-0.0.0.1] filter 2000 export

filter-policy export

Syntax

filter-policy { acl-number | ip-prefix ip-prefix-name } export [ protocol [ process-id ] ]

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

View

OSPF view

Parameters

acl-number: Number of an ACL used to filter outgoing redistributed routes, in the range 2000 to 3999.

ip-prefix-name: Name of an IP prefix list used to filter outgoing redistributed routes, a string of up to 19 characters.

protocol: Specifies a protocol from which to filter redistributed routes. The protocol can be direct, static, rip, or ospf. If no protocol is specified, all redistributed routes are filtered.

process-id: Process ID, which is required when the protocol is ospf or rip, in the range 1 to 65535.

Description

Use the filter-policy export command to configure the filtering of outgoing redistributed routes.

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

By default, the filtering of outgoing redistributed routes is not configured.

You can use this command to filter outgoing redistributed routes as needed.

Related commands: import-route.

Examples

# Filter outgoing redistributed routes using ACL 2000.

<Sysname> system-view

[Sysname] ospf 100

[Sysname-ospf-100] filter-policy 2000 export

filter-policy import

Syntax

filter-policy { acl-number | ip-prefix ip-prefix-name | gateway ip-prefix-name } import

undo filter-policy import

View

OSPF view

Parameters

acl-number: Number of an ACL used to filter incoming routes, in the range 2000 to 3999.

ip-prefix-name: Name of an IP address prefix list used to filter incoming routes, a string of up to 19 characters.

gateway ip-prefix-name: Name of an IP address prefix list used to filter routes from the specified neighbors, a string of up to 19 characters.

Description

Use the filter-policy import command to configure the filtering of incoming routes.

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

By default, no filtering of incoming routes is configured.

You can use the command to filter incoming routes as needed.

Examples

# Filter incoming routes using ACL 2000.

<Sysname> system-view

[Sysname] acl number 2000

[Sysname-acl-basic-2000] rule permit source 192.168.10.0 0.0.0.255

[Sysname-acl-basic-2000] quit

[Sysname] ospf 100

[Sysname-ospf-100] filter-policy 2000 import

graceful-restart

Syntax

graceful-restart [ nonstandard | ietf ]

undo graceful-restart

View

OSPF view

Parameters

nonstandard: Enables the non-IETF GR capability.

ietf: Enables the IETF GR capability.

Description

Use the graceful-restart command to enable OSPF Graceful Restart capability.

Use the undo graceful-restart command to disable OSPF Graceful Restart capability.

By default, OSPF Graceful Restart capability is disabled.

Note the following:

l          Enable Opaque LSA advertisement and reception with the opaque-capability enable command before enabling the IETF GR capability for OSPF.

l          Before enabling non-IETF GR capability for OSPF, enable OSPF LLS (link local signaling) with the enable link-local-signaling command and OOB (out of band resynchronization) with the enable out-of-band-resynchronization command.

l          If the keywords nonstandard and ietf are not specified when OSPF GR is enabled, nonstandard is the default.

Related commands: enable link-local-signaling, enable out-of-band-resynchronization, opaque-capability enable.

Examples

# Enable IETF Graceful Restart for OSPF process 1.

<Sysname> system-view

[Sysname] ospf 1

[Sysname-ospf-1] opaque-capability enable

[Sysname-ospf-1] graceful-restart ietf

# Enable non-IETF Graceful Restart for OSPF process 1.

<Sysname> system-view

[Sysname] ospf 1

[Sysname-ospf-1] enable link-local-signaling

[Sysname-ospf-1] enable out-of-band-resynchronization

[Sysname-ospf-1] graceful-restart nonstandard

graceful-restart help

Syntax

graceful-restart help { acl-number | prefix prefix-list }

undo graceful-restart help

View

OSPF view

Parameters

acl-number: Basic or advanced ACL number, in the range 2000 to 3999.

prefix-list: Name of the specified IP prefix list, a string of 1 to 19 characters.

Description

Use the graceful-restart help command to configure for which OSPF neighbors the current router can serve as a GR Helper. (The neighbors are specified by the ACL or the IP prefix list.)

Use the undo graceful-restart help command to restore the default.

By default, the router can serve as a GR Helper for any OSPF neighbor.

Examples

# Configure the switch as a GR Helper for OSPF neighbors defined in the ACL 2001.

<Sysname> system-view

[Sysname] ospf 1

[Sysname-ospf-1] graceful-restart help 2001

graceful-restart interval

Syntax

graceful-restart interval interval-value

undo graceful-restart interval

View

OSPF view

Parameters

interval-value: Specifies the Graceful Restart interval, in the range 40 to 1,800 seconds.

Description

Use the graceful-restart interval command to configure the Graceful Restart interval.

Use the undo graceful-restart interval command to restore the default Graceful Restart interval.

By default, the Graceful Restart interval is 120 seconds.

Note that the Graceful Restart interval of OSPF cannot be less than the maximum value of dead intervals on all OSPF interfaces; otherwise, the Graceful Restart of OSPF may fail.

Related commands: ospf timer dead.

Examples

# Configure the Graceful Restart interval for OSPF process 1 as 100 seconds.

<Sysname> system-view

[Sysname] ospf 1

[Sysname-ospf-1] graceful-restart interval 100

host-advertise

Syntax

host-advertise ip-address cost

undo host-advertise ip-address

View

OSPF area view

Parameters

ip-address: IP address of a host

cost: Cost of the route, in the range 1 to 65535.

Description

Use the host-advertise command to advertise a host route.

Use the undo host-advertise command to remove a host route.

No host route is advertised by default.

Examples

# Advertise the host route 1.1.1.1 with a cost of 100.

<Sysname> system-view

[Sysname] ospf 100

[Sysname-ospf-100] area 0

[Sysname-ospf-100-area-0.0.0.0] host-advertise 1.1.1.1 100

import-route

Syntax

import-route protocol [ process-id ] [ cost cost | type type | tag tag | route-policy route-policy-name ]*

undo import-route protocol [ process-id ]

View

OSPF view

Parameters

protocol: Redistributes routes from the protocol, which can be direct, static, rip or ospf.

process-id: Process ID, in the range 1 to 65535. The default is 1. It is available only when the protocol is rip or ospf.

cost cost: Specifies a route cost, in the range 0 to 16777214. The default is 1.

type type: Specifies a cost type, 1 or 2. The default is 2.

tag tag : Specifies a tag for external LSAs. The default is 1.

route-policy route-policy-name: Specifies a route policy to redistribute qualified routes only. A Route policy name is a string of up to 19 characters.

Description

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

Use the undo import-route command to disable route redistribution from a protocol.

Route redistribution from another protocol is not configured by default.

OSPF prioritize routes as follows:

l          Intra-area route

l          Inter-area route

l          Type1 External route

l          Type2 External route

An intra-area route is a route in an OSPF area. An inter-area route is between any two OSPF areas. Both of them are internal routes.

An external route is a route to a destination outside the OSPF AS.

A Type-1 external route is an IGP route, such as RIP or STATIC, which has high reliability and whose cost is comparable with the cost of OSPF internal routes. Therefore, the cost from an OSPF router to a Type-1 external route’s destination equals the cost from the router to the corresponding ASBR plus the cost from the ASBR to the external route’s destination.

A Type-2 external route is an EGP route, which has low credibility, so OSPF considers the cost from the ASBR to a Type-2 external route is much bigger than the cost from the ASBR to an OSPF internal router. Therefore, the cost from an internal router to a Type-2 external route’s destination equals the cost from the ASBR to the Type-2 external route’s destination.

Related commands: default-route-advertise.

 

The import-route command cannot redistribute default routes.

 

Examples

# Redistribute routes from RIP process 40 and specify the type, tag, and cost as 2, 33 and 50 for redistributed routes.

<Sysname> system-view

[Sysname] ospf 100

[Sysname-ospf-100] import-route rip 40 type 2 tag 33 cost 50

log-peer-change

Syntax

log-peer-change

undo log-peer-change

View

OSPF view

Parameters

None

Description

Use the log-peer-change command to enable the logging of OSPF neighbor state changes.

Use the undo log-peer-change command to disable the logging.

The logging is enabled by default.

With this feature enabled, information about neighbor state changes is displayed on the terminal until the feature is disabled.

Examples

# Disable the logging of neighbor state changes for OSPF process 100.

<Sysname> system-view

[Sysname] ospf 100

[Sysname-ospf-100] undo log-peer-change

lsa-arrival-interval

Syntax

lsa-arrival-interval interval

undo lsa-arrival-interval

View

OSPF view

Parameters

interval: Specifies the minimum LSA repeat arrival interval in milliseconds, in the range 0 to 60000.

Description

Use the lsa-arrival-interval command to specify the minimum LSA repeat arrival interval.

Use the undo lsa-arrival-interval command to restore the default.

The interval defaults to 1000 milliseconds.

If an LSA that has the same LSA type, LS ID, originating router ID with the previous LSA is received within the interval, the LSA will be discarded. This feature helps protect routers and bandwidth from being over-consumed due to frequent network changes.

It is recommended the interval set with the lsa-arrival-interval command is smaller or equal to the initial interval set with the lsa-generation-interval command.

Related commands: lsa-generation-interval.

Examples

# Set the LSA minimum repeat arrival interval to 200 milliseconds.

<Sysname> system-view

[Sysname] ospf 100

[Sysname-ospf-100] lsa-arrival-interval 200

lsa-generation-interval

Syntax

lsa-generation-interval maximum-interval [ initial-interval [ incremental-interval ] ]

undo lsa-generation-interval

View

OSPF view

Parameters

maximum-interval: Maximum LSA generation interval in seconds, in the range 1 to 60.

initial-interval: Minimum LSA generation interval in milliseconds, in the range 10 to 60000. The default is 0.

incremental-interval: LSA generation incremental interval in milliseconds, in the range 10 to 60000. The default is 5000 milliseconds.

Description

Use the lsa-generation-interval command to configure the OSPF LSA generation interval.

Use the undo lsa-generation-interval command to restore the default.

The LSA generation interval defaults to 5 seconds.

With this command configured, when network changes are not frequent, LSAs are generated at the initial-interval. If network changes become frequent, LSA generation interval is incremented by a specified value each time a generation happens, up to the maximum-interval.

Related commands: lsa-arrival-interval.

Examples

# Configure the maximum LSA generation interval as 2 seconds, minimum interval as 100 milliseconds and incremental interval as 100 milliseconds.

<Sysname> system-view

[Sysname] ospf 100

[Sysname-ospf-100] lsa-generation-interval 2 100 100

lsdb-overflow-limit

Syntax

lsdb-overflow-limit number

undo lsdb-overflow-limit

View

OSPF view

Parameters

number: Specifies the upper limit of external LSAs in the LSDB, in the range 1 to 1000000.

Description

Use the lsdb-overflow-limit command to specify the upper limit of external LSAs in the LSDB.

Use the undo lsdb-overflow-limit command to cancel the limitation.

External LSAs in the LSDB are unlimited by default.

Examples

# Specify the upper limit of external LSAs as 400000.

<Sysname> system-view

[Sysname] ospf 100

[Sysname-ospf-100] lsdb-overflow-limit 400000

maximum load-balancing

Syntax

maximum load-balancing maximum

undo maximum load-balancing

View

OSPF view

Parameters

maximum: Maximum number of equal cost routes for load balancing, in the range 1 to 4. No load balancing is available when the number is set to 1.

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 is 4.

Examples

# Specify the maximum number of equal cost routes as 2.

<Sysname> system-view

[Sysname] ospf 100

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

maximum-routes

Syntax

maximum-routes { external | inter | intra } number

undo maximum-routes { external | inter | intra }

View

OSPF view

Parameters

external: Specifies the maximum number of external routes.

inter: Specifies the maximum number of inter-area routes.

intra: Specifies the maximum number of intra-area routes.

number: Maximum route number, in the range 0 to 12288.

Description

Use the maximum-routes command to specify the maximum route number of a specified type, inter-area, intra-area or external.

Use the undo maximum-routes command to restore the default route maximum value of a specified type.

By default, the maximum route number is 12288.

Examples

# Specify the maximum number of intra-area routes as 500.

<Sysname> system-view

[Sysname] ospf 100

[Sysname-ospf-100] maximum-routes intra 500

network

Syntax

network ip-address wildcard-mask

undo network ip-address wildcard-mask

View

OSPF area view

Parameters

ip-address: IP address of a network.

wildcard-mask: Wildcard mask of the IP address. For example, the wildcard mask of mask 255.0.0.0 is 0.255.255.255.

Description

Use the network command to enable OSPF on the interface attached to the specified network in the area.

Use the undo network command to disable OSPF on an interface.

By default, an interface neither belongs to any area nor runs OSPF.

You can configure one or multiple interfaces in an area to run OSPF. Note that the interface’s primary IP address must fall into the specified network segment to make the interface run OSPF. If only the interface’s secondary IP address falls into the network segment, the interface cannot run OSPF.

Related commands: ospf.

Examples

# Specify the interface whose primary IP address falls into 131.108.20.0/24 to run OSPF in Area 2.

<Sysname> system-view

[Sysname] ospf 100

[Sysname-ospf-100] area 2

[Sysname-ospf-100-area-0.0.0.2] network 131.108.20.0 0.0.0.255

nssa

Syntax

nssa [ default-route-advertise | no-import-route | no-summary ]*

undo nssa

View

OSPF area view

Parameters

default-route-advertise: Usable on an NSSA ABR or an ASBR only. If it is configured on an NSSA ABR, the ABR generates a default route in a Type-7 LSA into the NSSA regardless of whether the default route is available. If it is configured on an ASBR, only a default route is available on the ASBR can it generates the default route in a Type-7 LSA into the attached area.

no-import-route: Usable only on an NSSA ABR that is also the ASBR of the OSPF routing domain to disable redistributing routes in Type7 LSAs into the NSSA area, making sure that routes can be redistributed correctly.

no-summary: Usable only on an NSSA ABR to advertise only a default route in a Type-3 summary LSA into the NSSA area. In this way, all the other summary LSAs are not advertised into the area. Such an area is known as an NSSA totally stub area.

Description

Use the nssa command to configure the current area as an NSSA area.

Use the undo nssa command to restore the default.

By default, no NSSA area is configured.

All routers attached to an NSSA area must be configured with the nssa command in area view.

Related commands: default-cost.

Examples

# Configure Area 1 as an NSSA area.

<Sysname> system-view

[Sysname] ospf 100

[Sysname-ospf-100] area 1

[Sysname-ospf-100-area-0.0.0.1] nssa

opaque-capability enable

Syntax

opaque-capability enable

undo opaque-capability

View

OSPF view

Parameters

None

Description

Use the opaque-capability enable command to enable opaque LSA advertisement and reception. With the command configured, the OSPF device can receive and advertise the Type-9, Type-10 and Type-11 opaque LSAs.

Use the undo opaque-capability command to restore the default.

The feature is disabled by default.

Examples

# Enable advertising and receiving opaque LSAs.

<Sysname> system-view

[Sysname] ospf 100

[Sysname-ospf-100]opaque-capability enable

ospf

Syntax

ospf [ process-id | router-id router-id ]*

undo ospf [ process-id ]

View

System view

Parameters

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

router-id: OSPF Router ID, in dotted decimal format.

Description

Use the ospf command to enable an OSPF process.

Use the undo ospf command to disable an OSPF process.

No OSPF process is enabled by default.

Use the router-id argument to specify different Router IDs for these processes.

Examples

# Enable OSPF process 100 and specify Router ID 10.10.10.1.

<Sysname> system-view

[Sysname] ospf 100 router-id 10.10.10.1

[Sysname-ospf-100]

ospf authentication-mode

Syntax

For MD5/HMAC-MD5 authentication:

ospf authentication-mode { md5 | hmac-md5 } key-id [ plain | cipher ] password

undo ospf authentication-mode { md5 | hmac-md5 } key-id

For simple authentication:

ospf authentication-mode simple [ plain | cipher ] password

undo ospf authentication-mode simple

View

Interface view

Parameters

md5: MD5 authentication.

hmac-md5: HMAC-MD5 authentication.

simple: Simple authentication.

key-id: Authentication key ID, in the range 1 to 255.

plain | cipher: Plain or cipher password. If plain is specified, only plain password is supported and displayed upon displaying the configuration file. If cipher is specified, both plain and cipher are supported, but only cipher password is displayed when displaying the configuration file. If no keyword is specified, the cipher type is the default for the MD5/HMAC-MD5 authentication mode, and the plain type is the default for the simple authentication mode.

password: Password. Simple authentication: For plain type password, a plain password is a string of up to 8 characters; for cipher type password, a plain password is a string of up to 8 characters, and a cipher password is a string of up to 24 characters. MD5/HMAC-MD5 authentication: For plain type password, a plain password is a string of up to 16 characters; for cipher type password, a plain password is a string of up to 16 characters, and a cipher password is a string of up to 24 characters.

Description

Use the ospf authentication-mode command to set the authentication mode and key ID on an interface.

Use the undo ospf authentication-mode command to remove specified configuration.

By default, no authentication is available on an interface.

Interfaces attached to the same network segment must have the same authentication password and mode.

This configuration is not supported on the NULL interface.

Related commands: authentication-mode.

Examples

# Configure the network 131.119.0.0/16 in Area 1 to support MD5 cipher authentication, and set the interface key ID to 15, authentication password to abc, and password type to cipher.

<Sysname> system-view

[Sysname] ospf 100

[Sysname-ospf-100] area 1

[Sysname-ospf-100-area-0.0.0.1] network 131.119.0.0 0.0.255.255

[Sysname-ospf-100-area-0.0.0.1] authentication-mode md5

[Sysname-ospf-100-area-0.0.0.1] quit

[Sysname-ospf-100] quit

[Sysname] interface vlan-interface 10

[Sysname-Vlan-interface10] ospf authentication-mode md5 15 cipher abc

# Configure the network 131.119.0.0/16 in Area 1 to support simple authentication, and set for the interface the authentication password to abc, and password type to cipher.

<Sysname> system-view

[Sysname] ospf 100

[Sysname-ospf-100] area 1

[Sysname-ospf-100-area-0.0.0.1] network 131.119.0.0 0.0.255.255

[Sysname-ospf-100-area-0.0.0.1] authentication-mode simple

[Sysname-ospf-100-area-0.0.0.1] quit

[Sysname-ospf-100] quit

[Sysname] interface vlan-interface 10

[Sysname-Vlan-interface10] ospf authentication-mode simple cipher abc

ospf cost

Syntax

ospf cost value

undo ospf cost

View

Interface view

Parameters

value: OSPF cost, in the range 1 to 65535.

Description

Use the ospf cost command to set an OSPF cost for the interface.

Use the undo ospf cost command to restore the default OSPF cost for the interface.

By default, an OSPF interface calculates its cost with the formula: interface default OSPF cost=100 Mbps/interface bandwidth(Mbps). Default OSPF costs of some interfaces are:

l          1785 for the 56 kbps serial interface

l          1562 for the 64 kbps serial interface

l          48 for the E1 (2.048 Mbps) interface

l          1 for the Ethernet interface

You can use the ospf cost command to set an OSPF cost for an interface manually.

This configuration is not supported on the NULL interface.

Examples

# Set the OSPF cost for the interface to 65.

<Sysname> system-view

[Sysname] interface vlan-interface 10

[Sysname-Vlan-interface10] ospf cost 65

ospf dr-priority

Syntax

ospf dr-priority priority

undo ospf dr-priority

View

Interface view

Parameters

priority: DR Priority of the interface, in the range 0 to 255.

Description

Use the ospf dr-priority command to set the priority for DR/BDR election on an interface.

Use the undo ospf dr-priority command to restore the default value.

By default, the priority is 1.

The bigger the value, the higher the priority.

This configuration is not supported on the NULL interface.

Examples

# Set the DR priority on the current interface to 8.

<Sysname> system-view

[Sysname] interface vlan-interface 10

[Sysname-Vlan-interface10] ospf dr-priority 8

ospf mib-binding

Syntax

ospf mib-binding process-id

undo ospf mib-binding

View

System view

Parameters

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

Description

Use the ospf mib-binding command to bind an OSPF process to MIB operation.

Use the undo ospf mib-binding command to restore the default.

By default, MIB operation is bound to the first enabled OSPF process.

Examples

# Bind OSPF process 100 to MIB operation.

<Sysname> system-view

[Sysname] ospf mib-binding 100

ospf mtu-enable

Syntax

ospf mtu-enable

undo ospf mtu-enable

View

Interface view

Parameters

None

Description

Use the ospf mtu-enable command to enable an interface to add the real MTU into DD packets.

Use the undo ospf mtu-enable command to restore the default.

By default, an interface adds a MTU of 0 into DD packets, that is, no real MTU is added.

This configuration is not supported on the NULL interface.

Examples

# Enable the interface to add the real MTU value into DD packets.

<Sysname> system-view

[Sysname] interface vlan-interface 10

[Sysname-Vlan-interface10] ospf mtu-enable

ospf timer dead

Syntax

ospf timer dead seconds

undo ospf timer dead

View

Interface view

Parameters

seconds: Dead interval in seconds, in the range 1 to 2147483647.

Description

Use the ospf timer dead command to set the dead interval.

Use the undo ospf timer dead command to restore the default.

The dead interval defaults to 40s for Broadcast, P2P interfaces and defaults to 120s for P2MP and NBMA interfaces.

If an interface receives no hello packet from the neighbor within the dead interval, the interface considers the neighbor down. The dead interval on an interface is at least four times the hello interval. Any two routers attached to the same segment must have the same dead interval.

This configuration is not supported on the NULL interface.

Related commands: ospf timer hello.

Examples

# Configure the dead interval on the current interface as 60 seconds.

<Sysname> system-view

[Sysname] interface vlan-interface 10

[Sysname-Vlan-interface10] ospf timer dead 60

ospf timer hello

Syntax

ospf timer hello seconds

undo ospf timer hello

View

Interface view

Parameters

seconds: Hello interval in seconds, in the range 1 to 65535.

Description

Use the ospf timer hello command to set the hello interval on an interface.

Use the undo ospf timer hello command to restore the default hello interval on an interface.

The hello interval defaults to 10s for P2P and Broadcast interfaces, and defaults to 30s for P2MP and NBMA interfaces.

The shorter the hello interval is, the faster the topology converges and the more resources are consumed. Make sure the hello interval on two neighboring interfaces is the same.

This configuration is not supported on the NULL interface.

Related commands: ospf timer dead.

Examples

# Configure the hello interval on the current interface as 20 seconds.

<Sysname> system-view

[Sysname] interface vlan-interface 10

[Sysname-Vlan-interface10] ospf timer hello 20

ospf timer poll

Syntax

ospf timer poll seconds

undo ospf timer poll

View

Interface view

Parameters

seconds: Poll interval in seconds, in the range 1 to 2147483647.

Description

Use the ospf timer poll command to set the poll interval on an NBMA interface.

Use the undo ospf timer poll command to restore the default value.

By default, the poll interval is 120s.

When an NBMA interface finds its neighbor is down, it will send hello packets at the poll interval. The poll interval is at least four times the hello interval.

This configuration is not supported on the NULL interface.

Related commands: ospf timer hello.

Examples

# Set the poll timer interval on the current interface to 130 seconds.

<Sysname> system-view

[Sysname] interface vlan-interface 10

[Sysname-Vlan-interface10] ospf timer poll 130

ospf timer retransmit

Syntax

ospf timer retransmit interval

undo ospf timer retransmit

View

Interface view

Parameters

interval: LSA retransmission interval in seconds, in the range 1 to 3600.

Description

Use the ospf timer retransmit command to set the LSA retransmission interval on an interface.

Use the undo ospf timer retransmit command to restore the default.

The interval defaults to 5s.

After sending an LSA, an interface waits for an acknowledgement packet. If the interface receives no acknowledgement within the retransmission interval, it will retransmit the LSA.

The retransmission interval should not be so small to avoid unnecessary retransmissions.

This configuration is not supported on the NULL interface.

Examples

# Set the LSA retransmission interval to 8 seconds.

<Sysname> system-view

[Sysname] interface vlan-interface 10

[Sysname-Vlan-interface10] ospf timer retransmit 8

ospf trans-delay

Syntax

ospf trans-delay seconds

undo ospf trans-delay

View

Interface view

Parameters

seconds: LSA transmission delay in seconds, in the range 1 to 3600.

Description

Use the ospf trans-delay command to set the LSA transmission delay on an interface.

Use the undo ospf trans-delay command to restore the default.

The delay defaults to 1s.

Each LSA in the LSDB has an age that is incremented by 1 every second, but the age does not change during transmission. It is necessary to add a transmission delay into its age time, which is important for low speed networks.

This configuration is not supported on the NULL interface.

Examples

# Set the LSA transmission delay to 3 seconds on the current interface.

<Sysname> system-view

[Sysname] interface vlan-interface 10

[Sysname-Vlan-interface10] ospf trans-delay 3

preference

Syntax

preference [ ase ] [ route-policy route-policy-name ] value

undo preference [ ase ]

View

OSPF view

Parameters

ase: Sets a priority for ASE routes. If the keyword is not specified, using the command sets a priority for OSPF internal routes.

route-policy: Applies a routing policy to set priorities for specified routes.

route-policy-name: Routing policy name, a string of 1 to 19 characters.

value: Priority value, in the range 1 to 255. A smaller value represents a higher priority.

Description

Use the preference command to set the priority of OSPF routes.

Use the undo preference command to restore the default.

The priority of OSPF internal routes defaults to 10, and the priority of OSPF external routes defaults to 150.

If a routing policy is specified, priorities defined by the routing policy will apply to matched routes, and the priorities set with the preference command apply to OSPF routes not matching the routing policy.

A router may run multiple routing protocols. When several routing protocols find routes to the same destination, the router uses the route found by the protocol with the highest priority.

Examples

# Set a priority of 150 for OSPF internal routes.

<Sysname> system-view

[Sysname] ospf 100

[Sysname-ospf-100] preference 150

reset ospf counters

Syntax

reset ospf [ process-id ] counters [ neighbor [ interface-type interface-number ] [ router-id ] ]

View

User view

Parameters

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

neighbor: Clears neighbor statistics.

interface-type interface-number: Interface type and interface number.

router-id: Neighbor Router ID.

Description

Use the reset ospf counters command to reset OSPF counters. If no OSPF process is specified, counters of all OSPF processes are reset.

Examples

# Reset OSPF counters.

<Sysname> reset ospf counters

reset ospf process

Syntax

reset ospf [ process-id ] process [ graceful-restart ]

View

User view

Parameters

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

graceful-restart: Starts GR for the OSPF process.

Description

Use the reset ospf process command to reset all OSPF processes or a specified process.

Using the reset ospf process command will:

l          Clear all invalid LSAs without waiting for their timeouts;

l          Make a newly configured Router ID take effect;

l          Start a new round of DR/BDR election;

l          Not remove any previous OSPF configurations.

The system prompts whether to reset OSPF process upon execution of this command.

Examples

# Reset all OSPF processes.

<Sysname> reset ospf process

reset ospf redistribution

Syntax

reset ospf [ process-id ] redistribution

View

User view

Parameters

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

Description

Use the reset ospf redistribution command to restart route redistribution. If no process ID is specified, using the command restarts route redistribution for all OSPF processes.

Examples

# Restart route redistribution.

<Sysname> reset ospf redistribution

rfc1583 compatible

Syntax

rfc1583 compatible

undo rfc1583 compatible

View

OSPF view

Parameters

None

Description

Use the rfc1583 compatible command to make routing rules defined in RFC1583 compatible.

Use the undo rfc1583 compatible command to disable the function.

By default, RFC1583 routing rules are compatible.

RFC1583 and RFC2328 have different routing rules on selecting the best route when multiple AS external LSAs describe routes to the same destination. Using this command can make them compatible.

Examples

# Make RFC1583 routing rules compatible.

<Sysname> system-view

[Sysname] ospf 100

[Sysname-ospf-100] rfc1583 compatible

silent-interface

Syntax

silent-interface { all | interface-type interface-number }

undo silent-interface { all | interface-type interface-number }

View

OSPF view

Parameters

all: Disables all interfaces from sending OSPF packets.

interface-type interface-number: Interface type and interface number.

Description

Use the silent-interface command to disable an interface or all interfaces from sending OSPF packets.

Use the undo silent-interface command to restore the default.

By default, an interface sends OSPF packets.

A disabled interface is a passive interface, which cannot send any hello packet.

To make no routing information obtained by other routers on a network segment, you can use this command to disable the interface from sending OSPF packets.

Examples

# Disable an interface from sending OSPF packets.

<Sysname> system-view

[Sysname] ospf 100

[Sysname-ospf-100] silent-interface vlan-interface 10

snmp-agent trap enable ospf

Syntax

snmp-agent trap enable ospf [ process-id ] [ ifauthfail | ifcfgerror | ifrxbadpkt | ifstatechange | iftxretransmit | lsdbapproachoverflow | lsdboverflow | maxagelsa | nbrstatechange | originatelsa | vifcfgerror | virifauthfail | virifrxbadpkt | virifstatechange | viriftxretransmit | virnbrstatechange ] *

undo snmp-agent trap enable ospf [ process-id ] [ ifauthfail | ifcfgerror | ifrxbadpkt | ifstatechange | iftxretransmit | lsdbapproachoverflow | lsdboverflow | maxagelsa | nbrstatechange | originatelsa | vifcfgerror | virifauthfail | virifrxbadpkt | virifstatechange | viriftxretransmit | virnbrstatechange ] *

View

System view

Parameters

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

ifauthfail: Interface authentication failure information.

ifcfgerror: Interface configuration error information.

ifrxbadpkt: Information about error packets received.

ifstatechange: Interface state change information.

iftxretransmit: Packet receiving and forwarding information.

lsdbapproachoverflow: Information about cases approaching LSDB overflow.

lsdboverflow: LSDB overflow information.

maxagelsa: LSA max age information.

nbrstatechange: Neighbor state change information.

originatelsa: Information about LSAs originated locally.

vifauthfail: Virtual interface authentication failure information.

vifcfgerror: Virtual interface configuration error information.

virifauthfail: Virtual interface authentication failure information.

virifrxbadpkt: Information about error packets received by virtual interfaces.

virifstatechange: Virtual interface state change information.

viriftxretransmit: Virtual interface packet retransmission information.

virnbrstatechange: Virtual interface neighbor state change information.

Description

Use the snmp-agent trap enable ospf command to enable the sending of SNMP traps for a specified OSPF process. If no process is specified, the feature is enabled for all processes.

Use the undo snmp-agent trap enable ospf command to disable the feature.

By default, this feature is enabled.

Refer to SNMP-RMON in H3C WX6103 Access Controller Switch Interface Board Command Reference for related information.

Examples

# Enable the sending of SNMP traps for all OSPF processes.

<Sysname> system-view

[Sysname] snmp-agent trap enable ospf

spf-schedule-interval

Syntax

spf-schedule-interval maximum-interval [ minimum-interval  [ incremental-interval ] ]

undo spf-schedule-interval

View

OSPF view

Parameters

maximum-interval: Maximum SPF calculation interval in seconds, in the range 1 to 60.

minimum-interval: Minimum SPF calculation interval in milliseconds, in the range 10 to 60000, which defaults to 0.

incremental-interval: Incremental value in milliseconds, in the range 10 to 60000, which defaults to 5000.

Description

Use the spf-schedule-interval command to set the OSPF SPF calculation interval.

Use the undo spf-schedule-interval command to restore the default.

The interval defaults to 5 seconds.

Based on its LSDB, an OSPF router calculates the shortest path tree with itself being the root, and uses it to determine the next hop to a destination. Through adjusting the SPF calculation interval, you can protect bandwidth and router resources from being over-consumed due to frequent network changes.

With this command configured, when network changes are not frequent, SPF calculation applies at the minimum-interval. If network changes become frequent, the SPF calculation interval is incremented by the incremental-interval each time a calculation happens, up to the maximum-interval.

Examples

# Configure the SPF calculation maximum interval as 10 seconds, minimum interval as 500 milliseconds and incremental interval as 200 milliseconds.

<Sysname> system-view

[Sysname] ospf 100

[Sysname-ospf-100] spf-schedule-interval 10 500 200

stub

Syntax

stub [ no-summary ]

undo stub

View

OSPF area view

Parameters

no-summary: Usable only on a stub ABR. With it configured, the ABR advertises only a default route in a Summary LSA into the stub area (such a stub area is known as a totally stub area).

Description

Use the stub command to configure an area as a stub area.

Use the undo stub command to remove the configuration.

No area is stub area by default. To configure an area as a stub area, all routers attached to it must be configured with this command.

Note that, to concel the no-summary configuration on the ABR, simply execute the stub command again to overwrite it.

Related commands: default-cost.

Examples

# Configure Area1 as a stub area.

<Sysname> system-view

[Sysname] ospf 100

[Sysname-ospf-100] area 1

[Sysname-ospf-100-area-0.0.0.1] stub

stub-router

Syntax

stub-router

undo stub-router

View

OSPF view

Parameters

None

Description

Use the stub-router command to configure the router as a stub router.

Use the undo stub-router command to restore the default.

By default, no router is configured as a stub router.

The router LSAs from the stub router may contain different link type values. A value of 3 means a link to the stub network, so the cost of the link remains unchanged. A value of 1, 2 or 4 means a point-to-point link, a link to a transit network or a virtual link; in such cases, a maximum cost value of 65535 is used. Thus, other neighbors find the links to the stub router have such big costs, they will not send packets to the stub router for forwarding as long as there is a route with a smaller cost.

Examples

# Configure a stub router.

<Sysname> system-view

[Sysname] ospf 100

[Sysname-ospf-100] stub-router

vlink-peer

Syntax

vlink-peer router-id [ hello seconds | retransmit seconds | trans-delay seconds | dead seconds | simple [ plain | cipher ] password | { md5 | hmac-md5 } key-id [ plain | cipher ] password ]*

undo vlink-peer router-id [ hello | retransmit | trans-delay | dead | [ simple | { md5 | hmac-md5 } key-id ] ]*

View

OSPF area view

Parameters

router-id: Router ID of the neighbor on the virtual link.

hello seconds: Hello interval in seconds, in the range 1 to 8192. The default is 10. It must be identical to the hello interval on its virtual link neighbor.

retransmit seconds: Retransmission interval in seconds, in the range 1 to 3600, which defaults to 5.

trans-delay seconds: Transmission delay interval in seconds, in the range 1 to 3600, which defaults to 1.

dead seconds: Dead interval in seconds, in the range 1 to 32768, which defaults to 40 and is identical to the value on its virtual link neighbor. The dead interval is at least four times the hello interval.

md5: MD5 authentication.

hmac-md5: HMAC-MD5 authentication.

simple: Simple authentication.

key-id: Key ID for MD5 or HMAC-MD5 authentication, in the range 1 to 255.

plain | cipher: Plain or cipher type. If plain is specified, only plain password is supported and displayed upon displaying the configuration file. If cipher is specified, both plain and cipher are supported, but only cipher password is displayed when displaying the configuration file. By default, MD5 and HMAC-MD5 support cipher password, and simple authentication supports plain password.

password: Plain or cipher password. Simple authentication: For plain type, a plain password is a string of up to 8 characters. For cipher type, a plain password is a string of up to 8 characters, and a cipher password is a string of up to 24 characters. MD5/HMAC-MD5 authentication: For plain type, a plain password is a string of up to 16 characters. For cipher type, a plain password is a string of up to 16 characters, and a cipher password is a string of up to 24 characters.

Description

Use the vlink-peer command to configure a virtual link.

Use the undo vlink-peer command to remove a virtual link.

As defined in RFC2328, all non-backbone areas must maintain connectivity to the backbone. You can use the vlink-peer command to configure a virtual link to connect an area to the backbone.

Considerations on parameters:

l          The smaller the hello interval is, the faster the network converges and the more network resources are consumed.

l          A so small retransmission interval will lead to unnecessary retransmissions. A big value is appropriate for a low speed link.

l          You need to specify an appropriate transmission delay with the trans-delay keyword.

The authentication mode at the non-backbone virtual link end follows the one at the backbone virtual link end. The two authentication modes (MD5 or Simple) are independent, and you can specify neither of them.

Related commands: authentication-mode, display ospf.

Examples

# Configure a virtual link to the neighbor with router ID 1.1.1.1.

<Sysname> system-view

[Sysname] ospf 100

[Sysname-ospf-100] area 2

[Sysname-ospf-100-area-0.0.0.2] vlink-peer 1.1.1.1

 

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