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

HomeSupportSwitchesH3C S9500 Series SwitchesReference GuidesCommand ReferencesH3C S9500 Command Manual-Release2132[V2.03]-03 IP Routing Volume
04-OSPF Commands
Title Size Download
04-OSPF Commands 275.82 KB

Table of Contents

Chapter 1 OSPF Configuration Commands. 1-1

1.1 OSPF Configuration Commands. 1-1

1.1.1 abr-summary (OSPF area view) 1-1

1.1.2 area (OSPF view) 1-2

1.1.3 asbr-summary. 1-3

1.1.4 authentication-mode. 1-4

1.1.5 bandwidth-reference (OSPF view) 1-5

1.1.6 debugging ospf event 1-5

1.1.7 debugging ospf lsa. 1-8

1.1.8 debugging ospf mpls-te. 1-11

1.1.9 debugging ospf packet 1-16

1.1.10 debugging ospf spf 1-19

1.1.11 debugging ospf timer 1-25

1.1.12 default 1-26

1.1.13 default-cost (OSPF area view) 1-27

1.1.14 default-route-advertise (OSPF view) 1-27

1.1.15 description (OSPF/OSPF area view) 1-29

1.1.16 display ospf abr-asbr 1-29

1.1.17 display ospf asbr-summary. 1-30

1.1.18 display ospf brief 1-32

1.1.19 display ospf cumulative. 1-35

1.1.20 display ospf error 1-37

1.1.21 display ospf interface. 1-39

1.1.22 display ospf lsdb. 1-40

1.1.23 display ospf nexthop. 1-43

1.1.24 display ospf peer 1-44

1.1.25 display ospf peer statistics. 1-47

1.1.26 display ospf request-queue. 1-48

1.1.27 display ospf retrans-queue. 1-49

1.1.28 display ospf routing. 1-51

1.1.29 display ospf vlink. 1-52

1.1.30 enable log. 1-53

1.1.31 filter 1-54

1.1.32 filter-policy export (OSPF view) 1-55

1.1.33 filter-policy import (OSPF view) 1-56

1.1.34 host-advertise. 1-57

1.1.35 import-route (OSPF view) 1-57

1.1.36 log-peer-change. 1-59

1.1.37 lsa-arrival-interval 1-59

1.1.38 lsa-generation-interval 1-60

1.1.39 lsdb-overflow-limit 1-61

1.1.40 maximum load-balancing (OSPF view) 1-62

1.1.41 maximum-routes. 1-63

1.1.42 network (OSPF area view) 1-63

1.1.43 nssa. 1-64

1.1.44 opaque-capability enable. 1-65

1.1.45 ospf 1-66

1.1.46 ospf authentication-mode. 1-67

1.1.47 ospf cost 1-69

1.1.48 ospf dr-priority. 1-69

1.1.49 ospf mib-binding. 1-70

1.1.50 ospf mtu-enable. 1-71

1.1.51 ospf network-type. 1-72

1.1.52 ospf timer dead. 1-73

1.1.53 ospf timer hello. 1-74

1.1.54 ospf timer poll 1-75

1.1.55 ospf timer retransmit 1-75

1.1.56 ospf trans-delay. 1-76

1.1.57 peer 1-77

1.1.58 preference. 1-78

1.1.59 reset ospf counters. 1-79

1.1.60 reset ospf process. 1-79

1.1.61 reset ospf redistribution. 1-80

1.1.62 rfc1583 compatible. 1-81

1.1.63 silent-interface (OSPF view) 1-81

1.1.64 snmp-agent trap enable ospf 1-82

1.1.65 spf-schedule-interval 1-84

1.1.66 stub (OSPF area view) 1-85

1.1.67 stub-router 1-85

1.1.68 vlink-peer (OSPF area view) 1-86

 


Chapter 1  OSPF Configuration Commands

1.1  OSPF Configuration Commands

 

&  Note:

l      Refer to MPLS TE Commands for OSPF TE related commands.

l      Refer to GR Commands for OSPF GR related commands.

l      Refer to MPLS L3VPN Commands for OSPF VPN related commands.

 

1.1.1  abr-summary (OSPF area view)

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

Default Level

2: System level

Parameters

ip-address: 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 or not to advertise the summary route. By default, the summary route is advertised.

cost cost: Specifies the cost of the summary route. The default cost is the biggest 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 available on an ABR.

You can configure to advertise or not to advertise the summary route, 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 for advertisement to other areas.

<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

1.1.2  area (OSPF view)

Syntax

area area-id

undo area area-id

View

OSPF view

Default Level

2: System level

Parameters

area-id: ID of an area, a decimal integer, 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.

Examples

# Create Area0 and enter Area 0 view

<Sysname> system-view

[Sysname] ospf 100

[Sysname-ospf-100] area 0

[Sysname-ospf-100-area-0.0.0.0]

1.1.3  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

Default Level

2: System level

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.

not-advertise: Specifies not to advertise 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. The value defaults to 1.

cost cost: Specifies the cost of the summary route. For Type-1 external routes, the cost defaults to the biggest cost among routes that are summarized. For Type-2 external routes, the cost defaults to the value of the biggest 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 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 in 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 commands: 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

1.1.4  authentication-mode

Syntax

authentication-mode { simple | md5 }

undo authentication-mode

View

OSPF area view

Default Level

2: System level

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 cancel a specified authentication mode.

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

Devices 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

1.1.5  bandwidth-reference (OSPF view)

Syntax

bandwidth-reference value

undo bandwidth-reference

View

OSPF view

Default Level

2: System level

Parameters

value: Bandwidth reference value for link cost calculation, in 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.

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

1.1.6  debugging ospf event

Syntax

debugging ospf [ process-id ] event [ bfd | error | graceful-restart | interface | neighbor ]

undo debugging ospf [ process-id ] event [ bfd | error | graceful-restart | interface | neighbor ]

View

User view

Default level

1: Monitor level

Parameters

process-id: OSPF process ID.

bfd: Enables OSPF BFD event debugging.

error: Enables OSPF error event debugging.

graceful-restart: Enables OSPF graceful restart (GR) event debugging.

interface: Enables interface event debugging.

neighbor: Enables OSPF neighbor event debugging.

Description

Use the debugging ospf event command to enable OSPF event debugging.

Use the undo debugging ospf event command to disable OSPF event debugging.

By default, OSPF event debugging is disabled.

Table 1-1 Description on the fields of the debugging ospf event bfd command

Field

Description

OSPF 1: OSPF received packet having conflicted Router ID :rt-id

OSPF received a packet with a conflicting Router ID.

rt-id: router ID of the neighbor

OSPF-BFD: Message type msg-type, Connect type conn-type,  Src IP Address src-ip, Src IFIndex if-index, Dst IP Address dst-ip

Detailed OSPF BFD message information

l      msg-type: BFD message type, which can be delete session, rcv BFD down, create session, or disable BFD.

l      conn-type: connection type. The default is direct-connect.

 

Table 1-2 Description on the fields of the debugging ospf event interface command

Field

Description

OSPF process-id

OSPF process ID

Intf  intf-ip  Rcv intf-event  State pre-state -> cur-state

Detailed information of interface state changes:

l      intf-ip: Interface IP address.

l      intf-event: Event triggering the interface state change. It can be InterfaceUp, WaitTimer, LoopInd, BackupSeen, NeighborChange, UnloopInd, and InterfaceDown.

l      pre-state/cur-state: Previous and current interface state. Down means the interface is down; Loopback means the interface is in the loopback state; Watiting means the interface is in the waiting state; Point-to-point means the interface is connected to a P2P network or on a virtual link; DR means the router is a DR; Backup means the router is a BDR; DROther means the router is neither DR nor BDR.

Tunnel Interface Insert Info:

Dest: dest-ip

Nbr ID: nbr-id

Tunnel Metric Type: metric-type

Tunnel Metric: metric

Tunnel Final Cost: cost

Holddown Timer: interval

Holddown TimerID: tmr-id

Tunnel Type: tunnel-type

Tunnel State: state

Detailed information of a tunnel interface

l      metric-type: Metric type of the tunnel interface. It can be Relative or Absolute.

l      metric: Tunnel interface cost set by RM.

l      cost: Tunnel interface cost

l      interval: Value of holddown timer

l      tmr-id: Holddown timer ID

l      tunnel-type: Tunnel interface type, 1 for IGP-shortcut; 2 for Forwarding Adjacency; 4 for common TE.

l      state: Tunnel interface state, 1 for DOWN and 2 for UP.

 

Table 1-3 Description on the fields of the debugging ospf event neighbor command

Field

Description

OSPF process-id

OSPF process ID

Nbr nbr-ip Rcv nbr-event  State original-state -> current-state

Detailed information of neighbor state changes:

l      nbr-ip: Neighbor interface IP address.

l      nbr-event: Event triggering the neighbor state change. It can be Down, Attempt, Init, 2-Way, ExStart, Exchange, Loading, or Full.

l      original-state/current-state: Previous and current neighbor state. The state can be HelloReceived, Start, 2WayReceived, NegotiationDone, ExchangeDone, BadLSReq, LoadingDone, AdjOK?, 1-Way, KillNbr, Inactivity Timer, or LLDown.

 

Examples

# Switch A and Switch B are interconnected over a broadcast network. Enable OSPF interface event debugging on Switch A.

<Sysname> debugging ospf event interface

%Dec 12 09:24:58:978 2006 Sysname IFNET/4/UPDOWN:

Line protocol on the interface Vlan-interface 100 is UP

OSPF 1: Intf 150.1.1.1 Rcv InterfaceUp State Down -> Waiting.

// The interface state changed from Down to Waiting.

OSPF 1: Intf 150.1.1.1 Rcv BackupSeen State Waiting -> BackupDR.

// The interface state changed from Waiting to BackupDR.

1.1.7  debugging ospf lsa

Syntax

debugging ospf [ process-id ] lsa [ generate | install ]

undo debugging ospf [ process-id ] lsa [ generate | install ]

View

User view

Default level

1: Monitor level

Parameters

process-id: OSPF process ID.

generate: Enables debugging for LSA generation.

install: Enables debugging for the installation of LSAs into the LSDB.

Description

Use the debugging ospf lsa command to enable OSPF LSA debugging.

Use the undo debugging ospf lsa command to disable OSPF LSA debugging.

By default, OSPF LSA debugging is disabled.

Table 1-4 Description on the fields of the debugging ospf lsa command

 

 

 

 

Field

Description

OSPF process-id

OSPF process ID

op-type LSA at x ms

Operation on LSAs:

op-type: Type of operation to perform on LSAs. Generate means generating LSAS; Install means installing LSAs.

LSAType: ls-type LinkStateId: link-state-id

Advertising Rtr: rt-id

LSA header information

l      ls-type: LSA type, 1 for Router LSA, 2 for network LSA, 3 for net-summary LSA, 4 for ASBR-summary LSA, 5 for AS-external–LSA, 7 for NSSA LSA, 9, 10, and 11 for Opaque LSA.

l      Link-state-id: LSA ID

l      rt-id: ID of the advertising router

LSA Age: age  Options : ExRouting: ON/OFF

LSA header information

l      age: LSA age

l      ON/OFF: Indicates whether external routing is supported.

Length: ls-len  Seq: seq-num CheckSum:checksum

LSA header information

l      Ls-len: LS length

l      Seq-num: LS sequence number

l      Checksum: Checksum of the whole LSA except the LSA age field

Capabilities: VBit:   Ebit:    Bbit:   Link#:  link-count TOS# tos-num  Metric cost

Router LSA contents

l      VBit: 0x40 for a virtual link.

l      Ebit: 0x200 for an External LSA.

l      Bbit: 0x100 for an ABR.

l      Link-count: Number of links in the Router LSA

l      tos-num: Number of TOSs in the Router LSA

l      cost: Link cost

Net Mask: net-mask Attached Router: rt-id

Network LSA contents

l      net-mask: Network mask

l      rt-id: ID of a neighbor

Net Mask: net-mask Metric:  cost

Contents of Summary and ASBR-Summary LSAs

l      net-mask: Network mask

l      cost: Link cost

Net Mask: net-mask TOS: tos Metric: cost FwdAddr:  fwd-addr Tag: rt-tag

Contents of AS_External LSA and NSSA LSA

l      net-mask: Network mask

l      tos: Type of Service

l      cost: Link cost

l      fwd-addr: Forwarding address

l      rt-tag: External route tag

 

Examples

# Switch A and Switch B are interconnected over a broadcast network. Enable debugging for LSA generation on Switch A.

<Sysname> debugging ospf lsa generate

<Sysname>

*Dec 12 11:07:33:610 2006 Sysname RM/6/RMDEBUG:OSPF 1: Generate LSA at 6352610 ms:

*Dec 12 11:07:33:610 2006 Sysname RM/6/RMDEBUG:LSAType: 1.

*Dec 12 11:07:33:610 2006 Sysname RM/6/RMDEBUG:LinkStateId: 1.1.1.1.

*Dec 12 11:07:33:610 2006 Sysname RM/6/RMDEBUG:Advertising Rtr: 1.1.1.1.

*Dec 12 11:07:33:610 2006 Sysname RM/6/RMDEBUG:LSA Age: 0 Options: ExRouting:ON.

*Dec 12 11:07:33:610 2006 Sysname RM/6/RMDEBUG:Length: 36 Seq# 8000002c CheckSum:  3185.

*Dec 12 11:07:33:610 2006 Sysname RM/6/RMDEBUG:Capabilities: VBit:0 EBit: 0 BBit: 0 Link# 1.

*Dec 12 11:07:33:610 2006 Sysname RM/6/RMDEBUG:LinkID: 150.1.1.0 LinkData: 255.255.255.0 LinkType: 3.

*Dec 12 11:07:33:610 2006 Sysname RM/6/RMDEBUG:TOS# 0 Metric 10.

// A Router LSA was generated.

%Dec 12 11:07:33:708 2006 Sysname RM/3/RMLOG:OSPF-NBRCHANGE: Process 1, Neighbour 150.1.1.2(Vlan-interface 100) from Loading to Full

*Dec 12 11:07:38:630 2006 Sysname RM/6/RMDEBUG:OSPF 1: Generate LSA at 6357625 ms:

*Dec 12 11:07:38:630 2006 Sysname RM/6/RMDEBUG:LSAType: 1.

*Dec 12 11:07:38:630 2006 Sysname RM/6/RMDEBUG:LinkStateId: 1.1.1.1.

*Dec 12 11:07:38:630 2006 Sysname RM/6/RMDEBUG:Advertising Rtr: 1.1.1.1.

*Dec 12 11:07:38:630 2006 Sysname RM/6/RMDEBUG:LSA Age: 0 Options: ExRouting:ON.

*Dec 12 11:07:38:630 2006 Sysname RM/6/RMDEBUG:Length: 36 Seq# 8000002d CheckSum: 44595.

*Dec 12 11:07:38:630 2006 Sysname RM/6/RMDEBUG:Capabilities: VBit:0 EBit: 0 BBit:  0 Link# 1.

*Dec 12 11:07:38:630 2006 Sysname RM/6/RMDEBUG:LinkID: 150.1.1.2 LinkData: 150.1.1.1 LinkType: 2.

*Dec 12 11:07:38:630 2006 Sysname RM/6/RMDEBUG:TOS# 0 Metric 10.   

// After entering the Full state, the neighbor generated a Router LSA.

1.1.8  debugging ospf mpls-te

Syntax

debugging ospf [ process-id ] mpls-te

undo debugging ospf [ process-id ] mpls-te

View

User view

Default level

1: Monitor level

Parameters

process-id: OSPF process ID.

Description

Use the debugging ospf mpls-te command to enable debugging for OSPF MPLS traffic engineering.

Use the undo debugging ospf mpls-te command to disable debugging for OSPF MPLS traffic engineering.

By default, debugging for OSPF MPLS traffic engineering is disabled.

Table 1-5 Description on the fields of the debugging ospf mpls-te command

Field

Description

OSPF TE

OSPF TE debug information

Status Update Message from RM: Status Received =

OSPF received a TE state update message from RM.

Status Update SUCCESS by OSPF: Status Updated =

OSPF processed the TE state update message received from RM successfully.

Received Link Info from RM

Process: process-id

Area : area-id

Link Type: link-type

TE Metric: TE-metric

Max BW :  max-bw

Max Resv BW :

Admin Grp:

OSPF received the link information from RM:

l      process-id: OSPF process ID.

l      area-id: Area ID

l      link-type: Link type

l      TE-metric: TE metric

l      max-bw: Maximum bandwidth, in bytes/s.

l      max-resv-bw: Maximum reserved bandwidth, in bytes/s.

Message Send to CSPF SUCCESS!!!

Router ID: rt-id

Process ID: process-id

Area ID: area-id

Link Type: link-type

Link ID: link-id

TE Metric: TE-metric

IGP Metric: IGP-metric

Max BW: max-bw

Max  Resv BW: max-res-bw

Event Type: event-type

OSPF sent TE information to CSPF successfully.

l      Router ID: Router ID

l      Process ID: OSPF process ID.

l      Area ID: Area ID

l      Link Type: Link type

l      Link ID: link ID

l      TE Metric: TE metric

l      IGP Metric: IGP metric

l      max-bw: Maximum bandwidth, in bit/s.

l      Max  Resv BW: Maximum reserved bandwidth

l      Event Type: Event type

Received Network LSA by OSPF TE

 Process ID:  process-id

 Area ID: area-id

 Link Id :  link-id

 Attached Rtr Count :  attach-rt-count

 Advtg Router ID: adv-rt-id

OSPF TE received a Network LSA.

l      process-id: OSPF process ID

l      area-id: Area ID

l      link-id: Link ID

l      attach-rt-count: Number of attached routers

l      adv-rt-id: ID of the advertising router

Send Network LSA to CSPF SUCCESS

Process ID: process-id

Area ID: area-id

Attached Rtr Count: attach-rt-count

MPLS DR Router ID: lsr id

DR Intf Addr: ip-addr

OSPF sent a network LSA to CSPF successfully.

l      process-id: OSPF process ID.

l      area-id: Area ID

l      attach-rt-count: Number of attached routers

l      lsr id: MPLS LS ID

l      ip-addr: DR IP address

Opaque LSA removed when Nbr DOWN

Process ID: process-id

Area ID: area-id

Link ID/ Opq ID: opq-id

OSPF removed the TE Opaque LSA when the neighbor was down.

l      process-id: OSPF process ID.

l      area-id: Area ID

l      opq-id: opq ID

Received MPLS Router ID= lsr id from RM

OSPF received the notification of MPLS LSR ID from RM

lsr id: MPLS LS ID

OPAQUE LSA GENERATION SUCCESS for

Area: area-id

Opaque Id: opq-id

An opaque LSA was generated successfully.

l      area-id: Area ID

l      opq-id: opq ID

OPAQUE LSA REMOVE SUCCESS

Process ID: process-id

Advtg Router: adv-rtr

Opq ID: opq-id

An opaque LSA was deleted successfully.

l      process-id: OSPF process ID.

l      adv-rtr: ID of the advertising router.

l      opq-id: opq ID

OPAQUE LSA UPDATE SUCCESS

Process ID: process-id

Advtg Router: adv-rtr

Opq ID: opq-id

The Opaque LSA was updated successfully.

l      process-id: OSPF process ID.

l      adv-rtr: ID of the advertising router.

l      opq-id: opq ID

TE successfully enabled for OSPF Area = area-id   under OSPF Process = process-id

TE was enabled successfully in the OSPF area.

l      area-id: Area ID

l      process-id: OSPF process ID.

 

Examples

# Switch A is configured with MPLS TE, OSPF, and LDP. Loopback 0 is created on Switch A, with an IP address of 1.1.1.1/32. Switch A and Switch B are interconnected over a broadcast network. Enable OSPF MPLS-TE debugging on Switch A.

<Sysname> debugging 1 ospf mpls-te

150.1.1.2(Vlan-interface 100) from Loading to Full

*Dec 20 15:01:37:86 2006 Sysname RM/6/RMDEBUG:OSPF TE

 NSM_LoadingDone: LOADING DONE

*Dec 20 15:01:37:86 2006 Sysname RM/6/RMDEBUG:OSPF TE

 HandleNeighborStateChg: BROADCAST

*Dec 20 15:01:37:86 2006 Sysname RM/6/RMDEBUG:OSPF TE

 GetBroadCastNewGenNbr: Nbr DR, NbrIp = 2.2.2.2

*Dec 20 15:01:37:86 2006 Sysname RM/6/RMDEBUG:OSPF TE

 GetBroadCastNewGenNbr: SUCCESS, MultiCastTeNbrID = 2.2.2.2

*Dec 20 15:01:37:86 2006 Sysname RM/6/RMDEBUG:OSPF TE

 Received Link Info from RM

 Process     : 1

 Area        : 0.0.0.0

 Link Type   : 4

 TE Metric   : 0

 Max BW      : 0

 Max Resv BW : 0

 Admin Grp   : 0

 

Received Network LSA by OSPF TE

 Process ID          : 1

 Area ID             : 0.0.0.0

 Link Id             : 150.1.1.2

 Attached Rtr Count  : 2

 Advtg Router ID     : 2.2.2.2

 

*Dec 20 15:01:37:86 2006 Sysname RM/6/RMDEBUG:OSPF TE

 Send Network LSA to CSPF SUCCESS

 Process ID          : 1

 Area ID             : 0.0.0.0

 Attached Rtr Count  : 2

 MPLS DR Router ID   : 2.2.2.2

 DR Intf Addr        : 150.1.1.2

 

Received Network LSA by OSPF TE

 Process ID          : 1

 Area ID             : 0.0.0.0

 Link Id             : 150.1.1.2

 Attached Rtr Count  : 2

 Advtg Router ID     : 2.2.2.2

 

*Dec 20 15:01:37:98 2006 Sysname RM/6/RMDEBUG:OSPF TE

 Send Network LSA to CSPF SUCCESS

 Process ID          : 1

 Area ID             : 0.0.0.0

 Attached Rtr Count  : 2

 MPLS DR Router ID   : 2.2.2.2

 DR Intf Addr        : 150.1.1.2

 

*Dec 20 15:01:37:118 2006 Sysname RM/6/RMDEBUG:OSPF TE

 UpdateNetworkLsa - MODIFY

*Dec 20 15:01:37:118 2006 Sysname RM/6/RMDEBUG:OSPF TE

 Received Network LSA by OSPF TE

 Process ID          : 1

 Area ID             : 0.0.0.0

 Link Id             : 150.1.1.2

 Attached Rtr Count  : 2

 Advtg Router ID     : 2.2.2.2

 

*Dec 20 15:01:37:118 2006 Sysname RM/6/RMDEBUG:OSPF TE

 Send Network LSA to CSPF SUCCESS

 Process ID          : 1

 Area ID             : 0.0.0.0

 Attached Rtr Count  : 2

 MPLS DR Router ID   : 2.2.2.2

 DR Intf Addr        : 150.1.1.2

 

Received Network LSA by OSPF TE

 Process ID          : 1

 Area ID             : 0.0.0.0

 Link Id             : 150.1.1.2

 Attached Rtr Count  : 2

 Advtg Router ID     : 2.2.2.2

 

*Dec 20 15:01:37:130 2006 Sysname RM/6/RMDEBUG:OSPF TE

 Send Network LSA to CSPF SUCCESS

 Process ID          : 1

 Area ID             : 0.0.0.0

 Attached Rtr Count  : 2

 MPLS DR Router ID   : 2.2.2.2

 DR Intf Addr        : 150.1.1.2

 

*Dec 20 15:01:37:130 2006 Sysname RM/6/RMDEBUG:OSPF TE

 ReceiveOpqLsa: Processed Success

*Dec 20 15:01:40:194 2006 Sysname RM/6/RMDEBUG:OSPF TE

 Received Network LSA by OSPF TE

 Process ID          : 1

 Area ID             : 0.0.0.0

 Link Id             : 3.1.1.2

 Attached Rtr Count  : 2

 Advtg Router ID     : 3.3.3.3

 

*Dec 20 15:01:50:194 2006 Sysname RM/6/RMDEBUG:OSPF TE

 Received Network LSA by OSPF TE

 Process ID          : 1

 Area ID             : 0.0.0.0

 Link Id             : 3.1.1.2

 Attached Rtr Count  : 2

 Advtg Router ID     : 3.3.3.3

 

*Dec 20 15:01:52:194 2006 Sysname RM/6/RMDEBUG:OSPF TE

 Received Network LSA by OSPF TE

 Process ID          : 1

 Area ID             : 0.0.0.0

1.1.9  debugging ospf packet

Syntax

debugging ospf [ process-id ] packet [ ack | dd | hello | request | update ] [ filter { destination | source } { acl-number | prefix ip-prefix-name } ]

undo debugging ospf packet [ ack | dd | hello | request | update ] [ filter { destination | source } { acl-number | prefix ip-prefix-name } ]

View

User view

Default level

1: Monitor level

Parameters

process-id: OSPF process ID.

ack: Enables debugging for LSAck packets.

dd: Enables debugging for Database Description (DD) packets.

hello: Enables debugging for hello packets.

request: Enables debugging for LSR packets.

update: Enables debugging for LSU packets.

filter: Specifies a filtering policy.

destination: Applies the filtering policy on the destination IP address of the packets.

source: Applies the filtering policy on the source IP address of the packets.

acl-number: Number of an ACL used to filter the packets for debugging, in the range 2000 to 3999.

ip-prefix-name: Name of an IP prefix list used to filter the packets for debugging, a string of 1 to 19 characters.

Description

Use the debugging ospf packet command to enable OSPF packet debugging.

Use the undo debugging ospf packet command to disable OSPF packet debugging.

By default, OSPF packet debugging is disabled.

If no process ID is specified, the debugging information of all the OSPF processes will be displayed.

Table 1-6 Description on the fields of the debugging ospf packet command

Field

Description

Ver# ver, Type: pkt-type, Length: pkt-len

OSPF packet header information:

l      ver: OSPF version. At present, it is 2.

l      pkt-type: OSPF packet type. 1 is for Hello, 2 for DD, 3 for LSR, 4 for LSU, and 5 for LSAck.

l      pkt-len: OSPF packet length

Router: rt-id, Area: area-id, Chksum: chksum

OSPF packet header information:

l      rt-id: ID of the advertising router.

l      area-id: Area ID of the sending interface.

l      chksum: Checksum of the entire packet starting from the OSPF header, excluding the 64-bit authentication field.

AuType: auth-type, Key(ascii): key

OSPF packet header information

l      au-type: OSPF packet authentication type. 00 is for non-authentication, 01 for simple authentication, and 02 for MD5 authentication.

l      key: Authentication key.

Net Mask: net-mask, Hello Int: hello-interval, Option: opt

OSPF hello packet information

l      net-mask: Network mask of the sending interface

l      hello-interval: Hello interval, in seconds.

l      opt: Optional capabilities supported by the router. E bit means external route support, the "N" and "P" in N/P bit mean NSSA capability and Type 7 to Type 5 conversion, respectively, and L bit means the packet carries GR-related extended data.

Rtr Priority: rt-pri, Dead Int: dead-interval, DR: ip-addr,  BDR: ip-addr

OSPF hello packet information

l      rt-pri: Router priority.

l      dead-interval: Neighbor dead interval , in seconds.

l      ip-addr: IP address of the DR or BDR on the interface network segment.

Attached Neighbor: rt-id

OSPF hello packet information

rt-id: Router ID of the neighbor discovered by OSPF

Hello: hello timer mismatch

OSPF hello packet information

Hello intervals of the router and the neighbor are different.

Hello: dead timer mismatch

OSPF hello packet information

Dead intervals of the router and the neighbor are different.

Hello: netmask mismatch

OSPF hello packet information

Network masks of the router and the neighbor are different.

Hello:  extern option mismatch

OSPF hello packet information

The optional capability support of the router and that of the neighbor are different.

Extended Options(LLS Data): opt

OSPF hello and DD packet information

opt: GR-related options. LR means OOB negotiation and RS means notifying the neighbor to enter the GR (Graceful Restart) state.

MTU:mtu-val, Option:  opt, R_I_M_MS Bit: bits

OSPF DD packet information

l      mtu-val: Maximum size of IP packet that can be sent through the interface without fragmentation, in bytes. It is 0 if the MTU of the DD packets is not configured as that of the sending interface.

l      opt: Optional capabilities supported by the router. E bit means external route support, the "N" and "P" in N/P bit mean NSSA capability and Type 7 to Type 5 conversion, respectively, and L bit means the packet carries GR-related extended data.

l      bits: DD packet negotiation bit. I bit means the negotiation starts, M bit means more DD packets are to be exchanged, MS bit means it is the master, and R bit means OOB negotiation begins. The value of this argument can be the combination of the above-mentioned values.

DD SeqNumber: seq-num

OSPF DD packet information

seq-num: DD packet sequence number

LSAType: ls-type, LinkStateId: ls-id, Advertising Rtr: rt-id

OSPF DD, LSR, and LSAck packet information

Contents of the LSAs in the LSDB described in the OSPF packet

l      ls-type: LSA type. 1 is for Router LSA, 2 for network LSA, 3 for net-summary LSA, 4 for ASBR-summary LSA, 5 for AS-external–LSA, 7 for NSSA LSA, and 9, 10, and 11 for Opaque LSA.

l      ls-id: LSA link ID.

l      rt-id: ID of the advertising router.

LSA Age: ls-age,  Options: ExRouting:ON/OFF

OSPF DD and LSAck packet information

l      ls-age: LSA age.

l      ON/OFF: Indicates whether the router supports external routing.

 Length: ls-len, Seq# seq-num,  CheckSum: chksum

OSPF DD and LSAck packet information

l      ls-len: LSA packet length.

l      seq-num: LSA sequence number.

l      chksum: LSA checksum.

LSACount:  ls-count

OSPF LSU packet information

ls-count: Number of LSAs in the LSU packet.

 

Examples

# Switch A and Switch B are interconnected over a broadcast network. Enable OSPF hello packet debugging on Switch A.

<Sysname> debugging ospf packet hello

<Sysname>

*May 10 10:50:03:687 2007 Sysname RM/6/RMDEBUG:OSPF 1: SEND Packet.

*May 10 10:50:03:774 2007 Sysname RM/6/RMDEBUG:Source Address: 150.1.1.1

*May 10 10:50:03:874 2007 Sysname RM/6/RMDEBUG:Destination Address: 224.0.0.5

*May 10 10:50:03:964 2007 Sysname RM/6/RMDEBUG:Ver# 2, Type: 1, Length: 44.

*May 10 10:50:04:84 2007 Sysname RM/6/RMDEBUG:Router: 201.1.1.1, Area: 0.0.0.0, Chksum: 39833.

*May 10 10:50:04:194 2007 Sysname RM/6/RMDEBUG:AuType: 00, Key(ascii): 0 0 0 0 0 0 0 0.

*May 10 10:50:04:315 2007 Sysname RM/6/RMDEBUG:Net Mask: 255.255.255.0, Hello Int: 10, Option: _E_.

*May 10 10:50:04:444 2007 Sysname RM/6/RMDEBUG:Rtr Priority: 1, Dead Int: 40, DR: 150.1.1.1, BDR:0.0.0.0.

1.1.10  debugging ospf spf

Syntax

debugging ospf [ process-id ] spf { all | brief | intra | { asbr-summary | ase | net-summary | nssa } [ filter { acl acl-number | ip-prefix ip-prefix-name } ] }

undo debugging ospf [ process-id ] spf { all | asbr-summary | ase | brief | intra | net-summary | nssa }

View

User view

Default level

1: Monitor level

Parameters

process-id: OSPF process ID.

all: Enables all the SPF scheduling and calculation debugging.

brief: Enables SPF job scheduling debugging.

intra: Enables SPF debugging for intra-area LSAs.

asbr-summary: Enables SPF debugging for ASBR-Summary LSAs.

ase: Enables SPF debugging for ASE LSAs.

net-summary: Enables SPF debugging for inter-area LSAs.

nssa: Enables SPF debugging for NSSA LSAs.

filter: Filters the output SPF debugging information.

acl acl-number: Specifies an basic ACL for the filtering.

ip-prefix ip-prefix-name: Specifies an IP prefix list for the filtering.

Description

Use the debugging ospf spf command to enable OSPF SPF debugging.

Use the undo debugging ospf spf command to disable OSPF SPF debugging.

By default, OSPF SPF debugging is disabled.

Table 1-7 Description on the fields of the debugging ospf spf brief command

Field

Description

OSPF process-id

OSPF process ID

Schedule Event: schedule-event  at X ms

SPF schedule event

schedule-event: SPF schedule event. It can be 0x80000000, 0x40000000, 0x10000000, 0x00008000, 0x00004000, 0x00000020, or 0x00000010.

Schedule Flag: schedule-flag SPF is Scheduled

SPF schedule flag

schedule-flag: Schedule flag. It can be 0x80000000, 0x40000000, 0x20000000, 0x10000000, 0x08000000, 0x00008000, 0x00004000, 0x00002000, 0x00001000, 0x00000080, 0x00000020, or 0x00000010.

Schedule Flag: schedule-flag  SPF is Stopped

Schedule flag indicating SPF is stopped

schedule-flag: Schedule flag. It can be 0x80000000, 0x40000000, 0x20000000, 0x10000000, 0x08000000, 0x00008000, 0x00004000, 0x00002000, 0x00001000, 0x00000080, 0x00000020, or 0x00000010.

Pre Proc: Schedule:  schedule -flag

Present SPF schedule flag

schedule –flag: Schedule flag. It can be 0x80000000, 0x40000000, 0x20000000, 0x10000000, 0x08000000, 0x00008000, 0x00004000, 0x00002000, 0x00001000, 0x00000080, 0x00000020, or 0x00000010.

Pre Proc:  Running: running-flag

Present SPF calculation flag

running –flag: Running flag. It can be 0x80000000, 0x40000000, 0x20000000, 0x10000000, 0x08000000, 0x00008000, 0x00004000, 0x00002000, 0x00001000, 0x00000080, 0x00000040, 0x00000020, 0x00000008, 0x00000004, or a combination of some of these values.

SPF Initial Schedule

Initial SPF schedule

Tunnel Info:   Dest: dest-ip  Metric: cost  Metric Type: metric-type Path Type: path-type

Tunnel information

l      Dest-ip: Destination IP address.

l      Cost: path cost.

l      Metric-type: Metric type. It can be Relative or Absolute.

l      Path-type: Path type. It can be IGP, Shortcut or Forwarding Adjacency.

 

Table 1-8 Description on the fields of the debugging ospf spf intra command

Field

Description

Rtr-LSA  link-id, adv rt-id, link count link-count

Information of the router LSA associated with candidate nodes

l      link-id: Link ID of the router LSA.

l      rt-id: ID of the advertising router.

l      link-count: Number of links in the router LSA.

Net-LSA  link-id, adv rt-id, router count : rt-count

Information of the network LSA associated with candidate nodes

l      link-id: Link ID of the network LSA.

l      rt-id: ID of the advertising router.

l      rt-count: Number of routers listed in the network LSA.

link-type  Link link-id, Data link-data, cost cost

Description of each link in the router LSA

l      link-type: Link type. It can be P-2-P, TransNet, StubNet, or Virtual.

l      link-id: Link ID.

l      link-data: Link data.

l      cost: Link cost.

Attach Router: router-id

Neighbor described in the network LSA

router-id: ID of the router.

Drop for reason

Reason for dropping a candidate node

reason: Reason for dropping the candidate node. It can be maxage, not found neighbor, cost exceeds LSInfinity, no back link, check neighbor in SPF tree fail, in spf tree, nexthop calculation fail, no next hop, add into candidate list fail, find candidate list fail, or old vertex is better.

Drop neighbor Rtr-Lsa link-id for reason

Reason for dropping a candidate node (router node)

l      link-id: Link ID of the router LSA.

l      reason: Reason for dropping the node.

Drop neighbor Net-Lsa link-id net-mask  for reason

Reason for dropping a candidate node (network node)

l      link-id: Link ID of the network LSA.

l      net-mask: Network mask in the network LSA.

l      reason: Reason for dropping the node.

op-type vertex:Rtr-Lsa link-id, Cost to root cost, Nh next-hop

Operation on the current candidate node (router node)

l      op-type: Type of operation to perform on the candidate node. It can be Add, Update, Remove, or Get.

l      link-id: Link ID of the router LSA.

l      cost: Cost to the root node.

l      next-hop: Nexthop.

op-type vertex:Net-Lsa link-id net-mask, Cost to root cost, Nh next-hop

Operation on the current candidate node (network node)

l      op-type: Type of operation to perform on the candidate node. It can be Add, Update, Remove, or Get.

l      link-id: Link ID of the router LSA.

l      net-mask: Network mask in the network LSA.

l      cost: Cost to the root node.

l      next-hop: Nexthop.

Can’t find old route

There is no such a route in the routing table.

op-type path-type route dest-ip net-mask, nh next-hop, cost cost

Operation on the routing table entry

l      op-type: Type of operation to perform on the candidate node. It can be Add, Update, Remove, or Get.

l      path-type: Route type. It can be unrecognized, intra-area, transit, stub, inter-area, ase, type1, or type2.

l      dest-ip: Destination IP address.

l      next-hop: Nexthop.

l      cost: Route cost.

op-type rotue-type route, cost cost, nh next-hop

Operation on the router route

l      op-type: Operation type. It can be Old, Add, or Update.

l      route-type: Route type. It can be ABR, ASBR, ABR/ASBR, or Rtr.

l      cost: Route cost.

l      next-hop: Nexthop.

Stub Route:  DEST: dest-addr  MASK: mask-len, cost: cost

Stub route information

l      dest-addr: Destination network address.

l      mask-len: Network mask length.

l      cost: Route cost.

 

Table 1-9 Description on the fields of the debugging ospf spf asbr-summary command

Field

Description

OSPF process-id

OSPF process ID

New route is ip-addr, Nh next-hop, Cost cost

Add a new route

l      ip-addr: IP address.

l      next-hop: Nexthop.

l      cost: Route cost.

 

Table 1-10 Description on the fields of the debugging ospf spf ase command

Field

Description

Process(Ase)

ASE SPF calculation is performed.

Start (Incr ASE)

Incremental ASE SPF calculation started.

FULL SPF ASE Begin at bucket bucket-num

Full ASE SPF calculation began at bucket bucket-num in the Hash table.

FULL SPF ASE Stop at bucket bucket-num

Full ASE SPF calculation stopped at bucket bucket-num in the Hash table.

INCR SPF ASE Begin

Incremental ASE SPF calculation began.

INCR SPF ASE End

Incremental ASE SPF calculation ended.

LSA ID inconsistent with netmas. LSID: ls-id, Netmask: net-mask

ASE LSA ID and network mask are inconsistent.

MaxAge and No associated route, flush and delete ASE LSA

Flush or delete the ASE LSAs that are aged out or have no associated routes.

 

Table 1-11 Description on the fields of the debugging ospf spf net-summary command

Field

Description

OSPF process-id

OSPF process ID

Process (Inter) Area area-id

Perform the inter-area SPF calculation in area area-id.

SPF Start (Incr Inter)

Incremental inter-area SPF calculation started.

Summary LSA LSID inconsistent with netmask, Area: area-id; LSID: ls-id, NetMask: net-mask

Summary LSA ID and network mask are inconsistent.

NetSum-LSA is MaxAge

Net-Summary LSA has aged out.

Don’t calculate for reason

Reason for not calculating network summary LSAs

reason: “Self originate LSA” means the self-originated LSAs are not calculated. “Route falling into active ABR range” means the routes fall into the active ABR range.

 

Table 1-12 Description on the fields of the debugging ospf spf nssa command

Field

Description

OSPF process-id

OSPF process ID

Process (Ase)

SPF calculates external routes.

 

Examples

# Switch B is connected to Switch A and Switch C respectively through broadcast networks. Enable SPF debugging for OSPF inter-area LSAs on Switch A.

<Sysname> debugging ospf ase

OSPF 1 Process (Ase)

// ASE SPF calculation started.

OSPF 1 FULL SPF ASE Begin at bucket 0

OSPF 1 New route is better

OSPF 1 Process (Ase)

OSPF 1 FULL SPF ASE Begin at bucket 0

// SPF calculation started from the beginning of the Hash table.

OSPF 1 New route is better

OSPF 1 New route is better

OSPF 1 New route is better

OSPF 1 New route is better

OSPF 1 New route is better

OSPF 1 New route is better

OSPF 1 New route is better

OSPF 1 New route is better

OSPF 1 New route is better

OSPF 1 New route is better

OSPF 1 New route is better

// Output ASE SPF calculation debugging information.

1.1.11  debugging ospf timer

Syntax

debugging ospf [ process-id ] timer [ lsa-generate | spf ]

undo debugging ospf [ process-id ] timer [ lsa-generate | spf ]

View

User view

Default level

1: Monitor level

Parameters

process-id: OSPF process ID.

lsa-generate: Enables LSA generation timer debugging.

spf: Enables SPF calculation timer debugging.

Description

Use the debugging ospf timer command to enable OSPF timer debugging.

Use the undo debugging ospf timer command to disable OSPF timer debugging.

By default, OSPF timer debugging is disabled.

Examples

# Switch A and Switch B are interconnected over a broadcast network. On Switch A, enable OSPF timer debugging and restart OSPF process 1.

<Sysname> debugging ospf timer

<Sysname>reset ospf 1 process

Warning : Reset OSPF process? [Y/N]:y

%Sep 18 11:21:04:612 2006 R1 RM/3/RMLOG:OSPF-NBRCHANGE: Process 1, Neighbour 150.1.1.2(Vlan-interface 100) from Full to Down

           OSPF 1 reset SPF TIMER,timeout value is 5000 ms

// Reset the SPF calculation timer; the timeout value is 5000 milliseconds.

           OSPF 1 delete SPF TIMER R1 RM/6/RMDEBUG:

// OSPF deleted the SPF calculation timer.

OSPF 1 delete MIN LS TIMER R1 RM/6/RMDEBUG:

// OSPF deleted the LSA generation timer.

           OSPF 1 create SPF TIMER,timeout value is 5000 ms

// OSPF created the SPF calculation timer with a timeout value of 5000 milliseconds

OSPF 1 create MIN LS TIMER,timeout value is 5000 ms

// OSPF created the LSA generation timer with a timeout time of 5000 milliseconds

           OSPF 1 reset MIN LS TIMER,timeout value is 714 ms

// OSPF reset the LSA generation timer with a timeout value of 714 milliseconds.

           OSPF 1 reset SPF TIMER,timeout value is 5000 ms

           OSPF 1 reset MIN LS TIMER,timeout value is 5000 ms

  OSPF 1 reset MIN LS TIMER,timeout value is 714 ms

%Sep 18 11:21:13:908 2006 R1 RM/3/RMLOG:OSPF-NBRCHANGE: Process 1, Neighbour 150.1.1.2(Vlan-interface 100) from Loading to Full

  OSPF 1 reset MIN LS TIMER,timeout value is 20 ms

  OSPF 1 delete SPF TIMER R1 RM/6/RMDEBUG:

  OSPF 1 create SPF TIMER,timeout value is 5000 ms

1.1.12  default

Syntax

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

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

View

OSPF view

Default Level

2: System level

Parameters

cost: Default cost for redistributed routes.

limit: Default upper limit of routes to be redistributed per time.

tag: Default tag for redistributed routes.

type: Default type for redistributed routes.

Description

Use the default command to configure default parameters for redistributed routes: cost, route type (Type1 or Type2), tag, and the upper limit.

Use the undo default command to restore the default.

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

Related commands: import-route.

Examples

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

<Sysname> system-view

[Sysname] ospf 100

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

1.1.13  default-cost (OSPF area view)

Syntax

default-cost cost

undo default-cost

View

OSPF area view

Default Level

2: System level

Parameters

cost: Cost for the default route advertised to the Stub or NSSA area.

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.

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

1.1.14  default-route-advertise (OSPF view)

Syntax

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

undo default-route-advertise

View

OSPF view

Default Level

2: System level

Parameters

always: If the router has no default route configured, this keyword generates a default external route in an ASE LSA into the OSPF routing domain. Without this keyword included, the command cannot generate a default route unless the router has it configured.

cost cost: Specifies a cost for the default route. The default is 1.

type type: Specifies a type for the ASE LSA. The default is 2.

route-policy route-policy-name: Specifies a route policy name. If the default route matches the specified route policy, the route policy affects some value 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 device advertises the redistributed default route to the CE device.

Related commands: import-route.

Examples

# Generate a default route in an ASE LSA into the OSPF routing domain.

<Sysname> system-view

[Sysname] ospf 100

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

1.1.15  description (OSPF/OSPF area view)

Syntax

description description

undo description

View

OSPF view/OSPF area view

Default Level

2: System level

Parameters

description: Describes the OSPF process in OSPF view, or describes the OSPF area in OSPF area view.

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 identification of an OSPF process or area. The description has no special meaning.

Examples

# Configure a description for the OSPF process 100 as “abc”.

<Sysname> system-view

[Sysname] ospf 100

[Sysname-ospf-100] description abc

# Configure a description for 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

1.1.16  display ospf abr-asbr

Syntax

display ospf [ process-id ] abr-asbr

View

Any view

Default Level

1: Monitor level

Parameters

process-id: OSPF process ID.

Description

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

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

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

Examples

# Display information about ABR/ASBR.

<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

 Intra     192.168.1.1       0.0.0.0    1562  192.168.1.1     ABR

Table 1-13 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 device to the ABR/ASBR

Nexthop

Next hop address

RtType

Device type: ABR, ASBR

 

1.1.17  display ospf asbr-summary

Syntax

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

View

Any view

Default Level

1: Monitor level

Parameters

process-id: OSPF process ID.

ip-address: Matched 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 1-14 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 route

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

 

1.1.18  display ospf brief

Syntax

display ospf [ process-id ] brief

View

Any view

Default Level

1: Monitor level

Parameters

process-id: OSPF process ID.

Description

Use the display ospf brief command to display OSPF brief information. If no OSPF process is specified, brief information of 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

 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-interface 12)

 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 1-15 Description on the fields of the display ospf brief command

Field

Description

RouterID

The current router ID

Border Router

An ABR, ASBR or NSSA ABR

Route Tag

The tag of redistributed routes

Multi-VPN-Instance is not enabled

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

Applications Supported

Applications supported

SPF-schedule-interval

Interval for SPF calculation

LSA generation interval

LSA generation interval

LSA arrival interval

The minimum LSA repeat arrival interval

Default ASE Parameter

Default ASE Parameter: metric, tag, route type.

Route Preference

Internal route priority

ASE Route Preference

External route priority

SPF Computation count

The total number of routes calculated by SPF

RFC1583 Compatible

Compatible with routing rules defined in RFC1583

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

Interface

IP address of the interface

Cost

Interface cost

State

Interface state

Type

Interface network type

MTU

Interface MTU

Priority

Device priority

Designated Router

The Designated Router

Backup Designated Router

The Backup Designated Router

Timers

OSPF timers:

l      Hello means the interval at which the interface transmits hello packets.

l      Dead means the dead timer of the neighbor.

l      Poll means the interval at which the interface transmits polling packets.

l      Retransmit means the LSA retransmit interval of the interface

Transmit Delay

LSA transmit delay on the interface

 

1.1.19  display ospf cumulative

Syntax

display ospf [ process-id ] cumulative

View

Any view

Default Level

1: Monitor level

Parameters

process-id: OSPF process ID.

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 192.168.1.2

                  Cumulations

 

  IO Statistics

             Type        Input     Output

            Hello          808        809

   DB Description            4          3

   Link-State Req            1          1

Link-State Update           12         18

   Link-State Ack           18         11

 

  LSAs originated by this router

  Router:  6

  Network: 0

  Sum-Net: 0

  Sum-Asbr: 0

  External: 1

  NSSA: 0

  Opq-Link: 0

  Opq-Area: 0

  Opq-As: 0

 

  LSAs Originated: 7  LSAs Received: 15

 

  Routing Table:

    Intra Area: 1  Inter Area: 1  ASE: 0

Table 1-16 Description on the fields of the display ospf cumulative command

Field

Description

IO statistics

Statistics about inbound/outbound 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 device

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

LSA originated

LSA originated

LSA Received

LSA received

Routing Table

Routing table

Intra Area

Intraarea route number

Inter Area

Interarea route number

ASE/NSSA

ASE/NSSA route number

 

1.1.20  display ospf error

Syntax

display ospf [ process-id ] error

View

Any view

Default Level

1: Monitor level

Parameters

process-id: OSPF process ID.

Description

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

If no process is specified, 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 1-17 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 occurred 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 mask mismatch

HELLO: Hello timer mismatch

Hello packets with hello timer mismatch

HELLO: Dead timer mismatch

Hello packets with dead timer mismatch

HELLO: Extern option mismatch

Hello packets with option field mismatch

HELLO: NBMA neighbor unknown

Hello packets received from unknown NBMA neighbors

DD: MTU option mismatch

DD packets with MTU mismatch

DD: Unknown LSA type

DD packets with unknown LSA type

DD: Extern option mismatch

DD packets with option field mismatch

LS ACK: Bad ack

LSAck packets for LSU packets error acknowledgement

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

LSR packets with wrong request

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

 

1.1.21  display ospf interface

Syntax

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

View

Any view

Default Level

1: Monitor level

Parameters

process-id: OSPF process ID.

all: Display 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, 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 1-18 Description on the fields of the display ospf interface command

Field

Description

Area

The ID of the area the interface attached to

IP address

Interface IP address (regardless of TE 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

DR priority

DR

The DR on the interface’s network segment

BDR

The BDR on the interface’s network segment

 

1.1.22  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

Default Level

1: Monitor level

Parameters

process-id: OSPF process ID.

brief: Displays brief LSDB information.

ase: Displays Type5 LSA (AS External LSA) information in the LSDB.

router: Displays Type1 LSA (Router LSA) information in the LSDB.

network: Displays Type2 LSA (Network LSA) information in the LSDB.

summary: Displays Type3 LSA (Network Summary LSA) information in the LSDB.

asbr: Displays Type4 LSA (ASBR Summary LSA) information in the LSDB.

nssa: Displays Type7 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 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 1-19 Description on the fields of the display ospf lsdb command

Field

Description

Area

Area

Type

LSA type

LinkState ID

LSA link state ID

AdvRouter

The router that advertised the LSA

Age

Aging time 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

                          Area: 0.0.0.1

                  Link State Database

    Type      : Network

    LS ID     : 192.168.1.2

    Adv Rtr   : 192.168.1.2

    LS Age    : 782

    Len       : 32

    Options   :  NP

    Seq#      : 80000003

    Chksum    : 0x2a77

    Net Mask  : 255.255.255.0

       Attached Router    192.168.1.1

       Attached Router    192.168.1.2

Table 1-20 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

Router ID of the device that established adjacency with the DR, and ID of the DR itself

 

1.1.23  display ospf nexthop

Syntax

display ospf [ process-id ] nexthop

View

Any view

Default Level

1: Monitor level

Parameters

process-id: OSPF process ID.

Description

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

If no OSPF process is specified, 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-interface12

  192.168.0.2     1         192.168.0.1     vlan-interface12

  192.168.1.1     1         192.168.1.1     vlan-interface14

Table 1-21 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

IntfAddr

Outbound interface address

Intf Name

Outbound interface name

 

1.1.24  display ospf peer

Syntax

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

View

Any view

Default Level

1: Monitor level

Parameters

process-id: OSPF process ID.

interface-type interface-number: Interface type and number

verbose: Displays detailed neighbor information.

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 2.2.2.2

 Router ID: 47.47.47.47      Address: 1.1.5.5          GR State: Normal

   State: Full  Mode: Nbr is Master  Priority: 1

   DR: 1.1.5.5  BDR: 1.1.5.6  MTU: 0

   Dead timer due in 33  sec

   Neighbor is up for 93:12:38

   Authentication Sequence: [ 0 ]

   Neighbor state change count: 6

 

 Router ID: 192.168.1.48     Address: 1.1.3.2          GR State: Normal

   State: Full  Mode: Nbr is Master  Priority: 1

   DR: 1.1.3.1  BDR: 1.1.3.2  MTU: 0

   Dead timer due in 31  sec

   Neighbor is up for 93:10:45

   Authentication Sequence: [ 0 ]

   Neighbor state change count: 5

Table 1-22 Description on the fields of the display ospf peer verbose command

Field

Description

Area

Area neighbors attached to

Interface

Interface connected to neighbor

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 33  sec

Dead timer times out in 33 seconds

Neighbor is up for 93:12:38

The neighbor has been up for 93:12:38

Authentication Sequence

Authentication sequence number

Neighbor state change count

Counts of neighbor state changes

 

# Display brief OSPF neighbor information.

<Sysname> display ospf peer

 

                   OSPF Process 1 with Router ID 2.2.2.2

                        Neighbor Brief Information

 

 Area: 0.0.0.0

 Router ID       Address         Pri Dead-Time Interface       State

 47.47.47.47     1.1.5.5         1   40        Vlan600         Full/BDR

 

 Area: 0.0.0.2

 Router ID       Address         Pri Dead-Time Interface       State

 192.168.1.48    1.1.3.2         1   38        Vlan900         Full/DR

Table 1-23 Description on the fields of the display ospf peer command

Field

Description

Area

Area of neighbors

Router ID

Neighbor router ID

Address

Neighbor interface address

Pri

Router priority

Dead time(s)

Dead interval remained

Interface

The Interface connected to neighbors

State

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

 

1.1.25  display ospf peer statistics

Syntax

display ospf [ process-id ] peer statistics

View

Any view

Default Level

1: Monitor level

Parameters

process-id: OSPF process ID.

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 1-24 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 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 available. DR/BDR election is finished under this state (or higher).

ExStart

Under this state, the router decides on sequence numbers of DD packets, to guarantee the neighbor always gets the latest link state information.

Exchange

Under this state, the router exchanges routing 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

 

1.1.26  display ospf request-queue

Syntax

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

View

Any view

Default Level

1: Monitor level

Parameters

process-id: OSPF process ID.

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 1-25 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

ID of the advertising router

Sequence

LSA sequence number

Age

LSA age time

 

1.1.27  display ospf retrans-queue

Syntax

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

View

Any view

Default Level

1: Monitor level

Parameters

process-id: OSPF process ID.

interface-type interface-number: Specifies an interface.

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 1-26 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

Retrans List

Retransmit list

Type

LSA type

LinkState ID

Link state ID

AdvRouter

ID of the advertising router

Sequence

LSA sequence number

Age

LSA age time

 

1.1.28  display ospf routing

Syntax

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

View

Any view

Default Level

1: Monitor level

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 the OSPF routing information.

If no OSPF process is specified, 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 1-27 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 routes

Intra Area

Total intraarea routes

Inter Area

Total interarea routes

ASE

Total ASE routes

NSSA

Total NSSA routes

 

1.1.29  display ospf vlink

Syntax

display ospf [ process-id ] vlink

View

Any view

Default Level

1: Monitor level

Parameters

process-id: OSPF process ID.

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-interface763)

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

 Transit Area: 0.0.0.1

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

Table 1-28 Description on the fields of the display ospf vlink command

Field

Description

Virtual-link Neighbor-id

ID of 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 if the interface attached to a virtual link

Timers

Values of timers: Hello, Dead, Poll (NBMA), Retransmit, and Interface transmit delay

 

1.1.30  enable log

Syntax

enable log [ config | error | state ]

undo enable log [ config | error | state ]

View

OSPF view

Default Level

2: System level

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

1.1.31  filter

Syntax

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

undo filter { import | export }

View

OSPF area view

Default Level

2: System level

Parameters

acl-number: ACL number.

ip-prefix-name: IP prefix list name.

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.

 

&  Note:

This command is only available on an ABR.

 

Examples

# Apply IP prefix list “my-prefix-list” to filter inbound Type-3 LSAs, and 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

1.1.32  filter-policy export (OSPF view)

Syntax

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

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

View

OSPF view

Default Level

2: System level

Parameters

acl-number: ACL number.

ip-prefix-name: IP prefix list name.

protocol: Filters redistributed routes from the protocol. Protocols include direct, static, rip, ospf, isis or bgp. If no protocol is specified, all redistributed routes are filtered.

process-id: Process ID, which is required when the protocol is rip, ospf or isis.

Description

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

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

By default, filtering of redistributed routes is not configured.

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

Related commands: import-route.

Examples

# Filter redistributed routes using ACL 2000.

<Sysname> system-view

[Sysname] ospf 100

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

1.1.33  filter-policy import (OSPF view)

Syntax

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

undo filter-policy import

View

OSPF view

Default Level

2: System level

Parameters

acl-number: Number of an ACL used to filter incoming routes.

ip-prefix-name: Name of an IP address prefix list used to filter incoming routes.

gateway ip-prefix-name: Name of an IP address prefix list used to filter routes received from the specified neighbor.

Description

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

Use the undo filter-policy import command to disable such 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

1.1.34  host-advertise

Syntax

host-advertise ip-address cost

undo host-advertise ip-address

View

OSPF area view

Default Level

2: System level

Parameters

ip-address: IP address of a host

cost: Cost of the host route.

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 configured by default.

Examples

# Configure host route 1.1.1.1 and specify cost 100 for it.

<Sysname> system-view

[Sysname] ospf 100

[Sysname] area 0

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

1.1.35  import-route (OSPF view)

Syntax

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

undo import-route protocol [ process-id ]

View

OSPF view

Default Level

2: System level

Parameters

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

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

allow-ibgp: Allows to redistribute IBGP routes; optional only when the protocol is bgp.

cost cost: Specifies a route cost. The default is 1.

type type: Specifies a cost type. The default is 2.

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

route-policy: Specifies a route policy to redistribute qualified routes only.

route-policy-name: Route policy name, a string of 1 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 intraarea route is a route in an OSPF area. An interarea 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 Type1 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: Cost from an OSPF router to a Type1 external route’s destination= Cost from the device to the corresponding ASBR+ Cost from the ASBR to the external route’s destination.

A Type2 external route is an EGP route, which has low credibility, so OSPF considers the cost from ASBR to a Type2 external route is much bigger than the cost from the ASBR to an OSPF internal router. Therefore, Cost from an internal router to a Type2 external route=Cost from the ASBR to the Type2 external route.

Examples

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

<Sysname> system-view

[Sysname> ospf 100

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

1.1.36  log-peer-change

Syntax

log-peer-change

undo log-peer-change

View

OSPF view

Default Level

2: System level

Parameters

None

Description

Use the log-peer-change command to enable the logging on 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 display on the terminal until the feature is disabled.

Examples

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

<Sysname> system-view

[Sysname] ospf 100

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

1.1.37  lsa-arrival-interval

Syntax

lsa-arrival-interval interval

undo lsa-arrival-interval

View

OSPF view

Default Level

2: System level

Parameters

interval: Minimum interval between two received identical LSAs in milliseconds.

Description

Use the lsa-arrival-interval command to specify the minimum interval between two identical received LSAs.

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 you protect routers and bandwidth from being over-consumed due to frequent network changes.

It is recommended the interval set by the lsa-arrival-interval command is smaller or equal to the minimum-interval set by 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

1.1.38  lsa-generation-interval

Syntax

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

undo lsa-generation-interval

View

OSPF view

Default Level

2: System level

Parameters

maximum-interval: Maximum LSA generation interval in seconds.

initial-interval: Minimum LSA generation interval in milliseconds. The default is 0.

incremental-interval: LSA generation incremental interval in milliseconds. 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, an LSA is 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 LSA generation maximum 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

1.1.39  lsdb-overflow-limit

Syntax

lsdb-overflow-limit number

undo lsdb-overflow-limit

View

OSPF view

Default Level

2: System level

Parameters

number: Upper limit of external LSAs in the LSDB.

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 restore the default.

The upper limit is 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

1.1.40  maximum load-balancing (OSPF view)

Syntax

maximum load-balancing maximum

undo maximum load-balancing

View

OSPF view

Default Level

2: System level

Parameters

maximum: Maximum number of equal cost routes for load balancing.

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.

The default number is 8.

Examples

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

<Sysname> system-view

[Sysname] ospf 100

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

1.1.41  maximum-routes

Syntax

maximum-routes { external | inter | intra } number

undo maximum-routes { external | inter | intra }

View

OSPF view

Default Level

2: System level

Parameters

number: Maximum route number.

external: Specifies the maximum number of external routes.

inter: Specifies the maximum number of interarea routes.

intra: Specifies the maximum number of intraarea routes.

Description

Use the maximum-routes command to specify the maximum route number of a specified type: interarea, intraarea, external.

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

By default, OSPF can generate up to 524288 external routes, up to 10000 inter-area routes, and up to 2000 intra-area routes.

Examples

# Specify the maximum number of intraarea routes as 500.

<Sysname> system-view

[Sysname] ospf 100

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

1.1.42  network (OSPF area view)

Syntax

network ip-address wildcard-mask

undo network ip-address wildcard-mask

View

OSPF area view

Default Level

2: System level

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 specify a network to belong to the area and enable OSPF on the interface attached to the network.

Use the undo network command to remove an OSPF interface.

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

You can configure in an area one or multiple interfaces 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 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, and specify the interface to belong to 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

1.1.43  nssa

Syntax

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

undo nssa

View

OSPF area view

Default Level

2: System level

Parameters

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

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

no-summary: Used only on an NSSA ABR to advertise only a default route in a Type3 summary LSA into the NSSA area, and all other summary LSAs are not advertised into the area. Area of this kind is known as 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

1.1.44  opaque-capability enable

Syntax

opaque-capability enable

undo opaque-capability

View

OSPF view

Default Level

2: System level

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

1.1.45  ospf

Syntax

ospf [ process-id | router-id router-id | vpn-instance instance-name ]*

undo ospf process-id

View

System view

Default Level

2: System level

Parameters

process-id: OSPF process ID. The default is 1.

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

instance-name: VPN instance name, case insensitive.

Description

Use the ospf command to enable an OSPF process.

Use the undo ospf command to disable an OSPF process.

OSPF is not enabled by default.

You can specify multiple OSPF processes on a device and different Router IDs for these processes.

When using OSPF as the VPN internal routing protocol for MPLS VPN implementation, you need to bind the OSPF process with a VPN instance.

Enabling OSPF first is required before performing other tasks.

Examples

# Enable OSPF process 100 and specify Router ID as 10.10.10.1.

<Sysname> system-view

[Sysname] ospf 100 router-id 10.10.10.1

[Sysname-ospf-100]

1.1.46  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

Default Level

2: System level

Parameters

md5: MD5 authentication.

hmac-md5: HMAC-MD5 authentication.

simple: Simple authentication.

key-id: Authentication key ID.

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 of plain or cipher. 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 “password”, 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 12

[Sysname-Vlan-interface12] ospf authentication-mode md5 15 cipher password

# Configure the network 131.119.0.0/16 in area 1 to support simple authentication, and set for the interface the authentication password to password, 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 14

[Sysname-Vlan-interface14] ospf authentication-mode simple cipher password

1.1.47  ospf cost

Syntax

ospf cost value

undo ospf cost

View

Interface view

Default Level

2: System level

Parameters

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

Description

Use the ospf cost command to set the OSPF cost of the interface.

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

By default, an OSPF interface calculates its cost automatically: Interface default cost=100 Mbps /Interface bandwidth(Mbps), default 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 interface’s OSPF cost manually.

This configuration is not supported on the NULL interface.

Examples

# Set the OSPF cost of VLAN-interface 12 to 65.

<Sysname> system-view

[Sysname] interface vlan-interface 12

[Sysname-Vlan-interface12] ospf cost 65

1.1.48  ospf dr-priority

Syntax

ospf dr-priority priority

undo ospf dr-priority

View

Interface view

Default Level

2: System level

Parameters

priority: DR Priority of the interface.

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 of VLAN-interface12 to 8.

<Sysname> system-view

[Sysname] interface vlan-interface 12

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

1.1.49  ospf mib-binding

Syntax

ospf mib-binding process-id

undo ospf mib-binding

View

System view

Default Level

2: System level

Parameters

process-id: OSPF process ID.

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

# Restore the default, that is, bind the first enabled OSPF process to MIB operation

<Sysname> system-view

[Sysname] undo ospf mib-binding

1.1.50  ospf mtu-enable

Syntax

ospf mtu-enable

undo ospf mtu-enable

View

Interface view

Default Level

2: System level

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 the MTU value of 0 into DD packets, that is, no real MTU is added.

Note that:

l           After a virtual link is established via the Virtual-Template or Tunnel, two devices on the link from different vendors may have different default MTU values. To make them consistent, set the attached interfaces’ default MTU to 0 for sending DD packets.

l           This configuration is not supported on the null interface.

Examples

# Enable the VLAN-interface12 to add the real MTU value into DD packets.

<Sysname> system-view

[Sysname] interface vlan-interface 12

[Sysname-Vlan-interface12] ospf mtu-enable

1.1.51  ospf network-type

Syntax

ospf network-type { broadcast | nbma | p2mp | p2p }

undo ospf network-type

View

Interface view

Default Level

2: System level

Parameters

broadcast: Specifies the network type as Broadcast.

nbma: Specifies the network type as NBMA.

p2mp: Specifies the network type as P2MP.

p2p: Specifies the network type as P2P.

Description

Use the ospf network-type command to set the network type of an interface.

Use the undo ospf network-type command to restore the default network type for an interface.

By default, the network type of an interface depends on its physical media. The network type for Ethernet interfaces is Broadcast, for serial interfaces is P2P, and for ATM interfaces is NBMA.

If a router attached to a broadcast network does not support multicast, you can configure the interface’s network type as NBMA or change NBMA to Broadcast.

The requirements for changing the network type from NBMA to Broadcast on an interface: Any two routers in the network are directly connected via a virtual link, or the network is fully meshed. If a network cannot meets the requirements, you have to change the network type of an attached interface to P2MP, thus two routers having no direct link can exchange routing information via another router. After changing the network type to P2MP, you do not need to configure any neighbor.

If only two routers run OSPF on a network segment, you can configure associated interfaces’ network type as P2P.

This configuration is not supported on the null interface.

Related commands: ospf dr-priority.

 

&  Note:

When changing an interface’s network type to NBMA or the interface’s network type is NBMA, you need to use the peer command to configure adjacencies.

 

Examples

# Configure the network type of VLAN–interface12 as NBMA.

<Sysname> system-view

[Sysname] interface vlan-interface 12

[Sysname-Vlan-interface12] ospf network-type nbma

1.1.52  ospf timer dead

Syntax

ospf timer dead seconds

undo ospf timer dead

View

Interface view

Default Level

2: System level

Parameters

seconds: Dead interval in seconds.

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 after the dead interval elapsed, the interface considers the neighbor as dead. 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 VLAN-interface12 as 60 seconds.

<Sysname> system-view

[Sysname] interface vlan-interface 12

[Sysname-Vlan-interface12] ospf timer dead 60

1.1.53  ospf timer hello

Syntax

ospf timer hello seconds

undo ospf timer hello

View

Interface view

Default Level

2: System level

Parameters

seconds: Hello interval in seconds.

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, the faster the topology convergence speed and the more resources 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 VLAN-interface12 as 20 seconds.

<Sysname> system-view

[Sysname] interface vlan-interface 12

[Sysname-Vlan-interface12] ospf timer hello 20

1.1.54  ospf timer poll

Syntax

ospf timer poll seconds

undo ospf timer poll

View

Interface view

Default Level

2: System level

Parameters

seconds: Poll interval in seconds.

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 or P2MP interface finds its neighbor is dead, 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 interval on VLAN-interface12 to 130 seconds.

<Sysname> system-view

[Sysname] interface vlan-interface 12

[Sysname-Vlan-interface12] ospf timer poll 130

1.1.55  ospf timer retransmit

Syntax

ospf timer retransmit interval

undo ospf timer retransmit

View

Interface view

Default Level

2: System level

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 when the retransmission interval elapses, 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 of VLAN-interface12 to 8 seconds.

<Sysname> system-view

[Sysname] interface vlan-interface 12

[Sysname-Vlan-interface12] ospf timer retransmit 8

1.1.56  ospf trans-delay

Syntax

ospf trans-delay seconds

undo ospf trans-delay

View

Interface view

Default Level

2: System level

Parameters

seconds: LSA transmission delay in seconds.

Description

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

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

The default LSA transmission delay is 1 second.

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

This configuration is not supported on the null interface.

Examples

# Set the LSA transmission delay to 3 seconds on VLAN-interface12.

<Sysname> system-view

[Sysname] interface vlan-interface 12

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

1.1.57  peer

Syntax

peer ip-address [ dr-priority dr-priority ]

undo peer ip-address

View

OSPF view

Default Level

2: System level

Parameters

ip-address: Neighbor IP address.

dr-priority: Neighbor DR priority; The bigger the value, the higher the priority.

Description

Use the peer command to specify the IP address and DR priority of a neighbor.

Use the undo peer command to remove the configuration.

After startup, a router sends a Hello packet to routers with DR priorities higher than 0. When the DR and BDR are elected, they will send Hello packets to all neighbors for adjacency establishment.

A router uses the priority set with the peer command to determine whether to send a Hello packet to the neighbor rather than for DR election. The DR priority set with the ospf dr-priority command is used for DR election.

Related commands: ospf dr-priority.

Examples

#  Specify the neighbor IP address 1.1.1.1.

<Sysname> system-view

[Sysname] ospf 100

[Sysname-ospf-100] peer 1.1.1.1

1.1.58  preference

Syntax

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

undo preference [ ase ]

View

OSPF view

Default Level

2: System level

Parameters

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

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

route-policy-name: Routing policy name.

value: Priority for OSPF routes. 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 route-policy is applied, priorities defined by the route-policy will apply, and priorities not defined by the policy will still use values set by the preference command.

Since a device may run multiple routing protocols, it has to decide on routes found by these protocols. Every protocol has a priority to help the router determine which route to use especially when multiple routes to the same destination are found by several routing protocols. The route found by the protocol with the highest priority will be used.

Examples

# Set OSPF priority to 150.

<Sysname> system-view

[Sysname] ospf 100

[Sysname-ospf-100] preference 150

1.1.59  reset ospf counters

Syntax

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

View

User view

Default Level

2: System level

Parameters

process-id: OSPF process ID.

neighbor: Clears neighbor statistics on an interface.

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

# Clear OSPF counters.

<Sysname> reset ospf counters

1.1.60  reset ospf process

Syntax

reset ospf [ process-id ] process

View

User view

Default Level

2: System level

Parameters

process-id: OSPF process ID.

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

1.1.61  reset ospf redistribution

Syntax

reset ospf [ process-id ] redistribution

View

User view

Default Level

2: System level

Parameters

process-id: OSPF process ID.

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

1.1.62  rfc1583 compatible

Syntax

rfc1583 compatible

undo rfc1583 compatible

View

OSPF view

Default Level

2: System level

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.

On selecting the best route when multiple AS external LSAs describe routes to the same destination, RFC1583 and RFC2328 have different routing rules.

Examples

# Make RFC1583 routing rules compatible.

<Sysname> system-view

[Sysname] ospf 100

[Sysname-ospf-100] rfc1583 compatible

1.1.63  silent-interface (OSPF view)

Syntax

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

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

View

OSPF view

Default Level

2: System level

Parameters

all: Disables all interfaces from sending OSPF packet.

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

Description

Use the silent-interface command to disable specified interfaces from sending any OSPF packet.

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 VLAN-interface 12 from sending OSPF packets.

<Sysname> system-view

[Sysname] ospf 100

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

1.1.64  snmp-agent trap enable ospf

Syntax

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

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

View

System view

Default Level

3: Manage level

Parameters

process-id: OSPF process ID.

ifauthfail: Interface authentication failure information.

ifcfgerror: Interface configuration error information.

ifrxbadpkt: Information about error packets received.

ifstatechange: Interface state change 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.

txretransmit: Packet receiving and forwarding information.

vifauthfail: Virtual interface authentication failure information.

vifcfgerror: Virtual interface configuration error information.

virifrxbadpkt: Information about error packets received by virtual interfaces.

virifstatechange: Virtual interface state change information.

viriftxretransmit: Virtual interface packet retransmit information.

virnbrstatechange: Virtual interface neighbor state change information.

Description

Use the snmp-agent trap enable ospf command to enable TRAP function for a specified OSPF process. If no process is specified, TRAP function for all processes is enabled.

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

By default, this function is enabled.

Refer to SNMP Commands for related information.

Examples

# Enable trap packet transmission for all OSPF processes.

<Sysname> system-view

[Sysname] snmp-agent trap enable ospf

1.1.65  spf-schedule-interval

Syntax

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

undo spf-schedule-interval

View

OSPF view

Default Level

2: System level

Parameters

maximum-interval: Maximum SPF calculation interval in seconds. The default is 5 seconds.

minimum-interval: Minimum SPF calculation interval in milliseconds. The default is 0.

incremental-interval: Incremental value for increasing SPF calculation interval in milliseconds. The default is 5000.

Description

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

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

By default, SPF calculation interval is 5 seconds.

Based on its LSDB, an OSPF router calculates the shortest path tree with itself being the root, using which to determine the next hop to a destination. Through adjusting 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, SPF calculation interval is incremented each time a calculation happens, up to the maximum-interval.

Examples

# Configure the SPF calculation interval as 6 seconds.

<Sysname> system-view

[Sysname] ospf 100

[Sysname-ospf-100] spf-schedule-interval 6

1.1.66  stub (OSPF area view)

Syntax

stub [ no-summary ]

undo stub

View

OSPF area view

Default Level

2: System level

Parameters

no-summary: Used only on a stub ABR. With it configured, the ABR advertises only a default route in a Summary LSA into the stub area (Stub area of this kind is known as 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.

Related commands: default-cost.

Examples

# Configure area 1 as a stub area.

<Sysname> system-view

[Sysname] ospf 100

[Sysname-ospf-100] area 1

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

1.1.67  stub-router

Syntax

stub-router

undo stub-router

View

OSPF view

Default Level

2: System level

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

# Enable a stub-router.

<Sysname> system-view

[Sysname] ospf 100

[Sysname-ospf-100] stub-router

1.1.68  vlink-peer (OSPF area view)

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

Default Level

2: System level

Parameters

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

hello seconds: Hello interval in seconds. The default is 10. It must be identical to the hello interval of the neighbor on the virtual link.

retransmit seconds: LSA retransmission interval in seconds. The default is 5.

trans-delay seconds: Transmission delay in seconds. The default is 1.

dead seconds: Dead interval in seconds. The default is 40. It must be identical to the dead interval 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.

plain | cipher: Plain or cipher type. If plain is specified, only plain password is supported. If cipher is specified, both plain and cipher password are supported, but only cipher password is displayed when displaying the configuration file. If no keyword is specified, MD5 and HMAC-MD5 use cipher password, and the simple authentication mode uses 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 create and 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 changes are found and the more network resources are consumed.

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

l           You need to consider the interface transmission delay when specifying the trans-delay value.

The authentication mode (MD5 or Simple) at the non-backbone virtual link end follows the one at the backbone virtual link end. The two authentication modes are independent. 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
新华三官网