You are here: Home > CLI Commands > Just_CLI_Topics > show ip ospf

show ip ospf

show ip ospf

database area <area-id>

debug route

interface [tunnel|vlan] <id>

neighbor

rapng-vpn aggregate-routes <ip-addr> <mask>

redistribute

subnet

Description

Display statistics and configuration information for the OSPFOpen Shortest Path First. OSPF is a link-state routing protocol for IP networks. It uses a link-state routing algorithm and falls into the group of interior routing protocols that operates within a single Autonomous System (AS). routing protocol.

Syntax

Parameter

Description

database area <area-id>

Show database information for the OSPFOpen Shortest Path First. OSPF is a link-state routing protocol for IP networks. It uses a link-state routing algorithm and falls into the group of interior routing protocols that operates within a single Autonomous System (AS). protocol.

debug route

Show debugging information for OSPFOpen Shortest Path First. OSPF is a link-state routing protocol for IP networks. It uses a link-state routing algorithm and falls into the group of interior routing protocols that operates within a single Autonomous System (AS). routes.

interface [tunnel|vlan] <id>

Display the status of OSPFOpen Shortest Path First. OSPF is a link-state routing protocol for IP networks. It uses a link-state routing algorithm and falls into the group of interior routing protocols that operates within a single Autonomous System (AS). on an individual interface by specifying a tunnel or VLANVirtual Local Area Network. In computer networking, a single Layer 2 network may be partitioned to create multiple distinct broadcast domains, which are mutually isolated so that packets can only pass between them through one or more routers; such a domain is referred to as a Virtual Local Area Network, Virtual LAN, or VLAN. ID number. The tunnel ID range is 1-16777215.

neighbor

Display data for OSPFOpen Shortest Path First. OSPF is a link-state routing protocol for IP networks. It uses a link-state routing algorithm and falls into the group of interior routing protocols that operates within a single Autonomous System (AS). neighboring routers.

rapng-vpn

Display IAP-VPNVirtual Private Network. VPN enables secure access to a corporate network when located remotely. It enables a computer to send and receive data across shared or public networks as if it were directly connected to the private network, while benefiting from the functionality, security, and management policies of the private network. This is done by establishing a virtual point-to-point connection through the use of dedicated connections, encryption, or a combination of the two. information.

aggregate-routes <ip-addr> <mask>

Display IAP-VPNVirtual Private Network. VPN enables secure access to a corporate network when located remotely. It enables a computer to send and receive data across shared or public networks as if it were directly connected to the private network, while benefiting from the functionality, security, and management policies of the private network. This is done by establishing a virtual point-to-point connection through the use of dedicated connections, encryption, or a combination of the two. aggregate route information.

redistribute

Display OSPFOpen Shortest Path First. OSPF is a link-state routing protocol for IP networks. It uses a link-state routing algorithm and falls into the group of interior routing protocols that operates within a single Autonomous System (AS). route distribution information.

subnet

Display the subnetsSubnet is the logical division of an IP network. manually added to the SubnetSubnet is the logical division of an IP network. Exclude List via the router ospfsubnet exclude <addr> <mask> command.

Example

If you issue this command without any of the optional parameters described in the table above, the show ip ospf command will display general router and area settings for the OSPFOpen Shortest Path First. OSPF is a link-state routing protocol for IP networks. It uses a link-state routing algorithm and falls into the group of interior routing protocols that operates within a single Autonomous System (AS)..

(host) [mynode] #show ip ospf

 

OSPF is currently running with Router ID 123.45.110.200

Number of areas in this router is 1

Area 10.1.1.0

Number of interfaces in this area is 2

Area is totally stub area

SPF algorithm executed 0 times

The output of this command includes the following parameters.

Parameter

Description

OSPF Router ID

Verifies that OSPFOpen Shortest Path First. OSPF is a link-state routing protocol for IP networks. It uses a link-state routing algorithm and falls into the group of interior routing protocols that operates within a single Autonomous System (AS). is running and the router ID that OSPFOpen Shortest Path First. OSPF is a link-state routing protocol for IP networks. It uses a link-state routing algorithm and falls into the group of interior routing protocols that operates within a single Autonomous System (AS). is running on.

Number of areas

List the number of areas configured in the router.

Area

Displays the Area ID followed by:

number of interfaces in the area

indicates if the area is a totally stub area

number of times the SPF algorithm has been executed

To display OSPFOpen Shortest Path First. OSPF is a link-state routing protocol for IP networks. It uses a link-state routing algorithm and falls into the group of interior routing protocols that operates within a single Autonomous System (AS). settings for an individual interface, you must specify a VLANVirtual Local Area Network. In computer networking, a single Layer 2 network may be partitioned to create multiple distinct broadcast domains, which are mutually isolated so that packets can only pass between them through one or more routers; such a domain is referred to as a Virtual Local Area Network, Virtual LAN, or VLAN. or tunnel ID number. The example below displays part of the output of the show ip ospf interface vlan command.

(host) [mynode] #show ip ospf interface vlan 1

 

Vlan 1 is up, line protocol is up

Internet Address 170.1.0.1, Mask 255.255.255.0, Area 2.0.1.1

Router ID 16.1.0.2, Network Type BROADCAST, Cost: 1

Transmit Delay is 1 sec, State DROTHER, Priority 0

Designated Router id 0.0.0.0, Interface Address 170.1.0.1

Backup designated Router id 0.0.0.0, Interface Address 170.1.0.1

Timer intervals configured, Hello 10, Dead 40, Retransmit 5

Neighbor Count is 0

Tx Stat: Hellos 7 DbDescr 0 LsReq 0 LsUpdate 0 LsAck 0 Pkts 7

Tx Err: BufNull 0 BufCorrupt 0 NoMem 0 SendFail 0

Rx Stat: Hellos 0 DbDescr 0 LsReq 0 LsUpdate 0 LsAck 0 Pkts 0

LoopSend 0 RxVirtualLink 0

Rx Err: DisCd 0 BadVer 0 BadNet 0 BadArea 0 BadDstAdr 0 BadAuType 0

BadAuth 0 BadNeigh 0 BadPckType 0 BadVirtLink 0

IntfDown 0 MySource 0 Legal 0

...

The output may include some or all of the following parameters.

Parameter

Description

Vlan <number>

Identifies that the interface type and ID are up and functional.

Internet Address

Internet address, network mask, and area assigned to the interface.

Router ID

Displays the router ID, that the network type is Broadcast, and the cost value.

Transmit Delay

Details of the transmit delay, state, and priority.

Designated Router

Details of the designated routerDesignated router refers to a router interface that is elected to originate network link advertisements for networks using the OSPF protocol. ID and interface address.

Backup Designated Router ID

Details of the backup router ID and interface address.

Timer intervals configured

Details of elapse time intervals for Hello, Dead, Transmit (wait), and retransmit.

Neighbor Count

Details the number of neighbors and adjacent neighbors.

Tx Stat

Counters and statistics for transmitted data.

Hellos: Number of transmitted hello packets. These packets are sent every hello interval.

DbDescr: Number of transmitted database description packets.

LsReq: Number of transmitted link state request packets.

LsUpdate: Number of transmitted link state update packets.

LsAck: Number of transmitted link state acknowledgment packets

Pkts: Total number of transmitted packets.

Tx Err

Counters and statistics for received data.

Hellos: Number of received hello packets. These packets are sent every hello interval.

DbDescr: Number of received database description packets.

LsReq: Number of received link state request packets.

LsUpdate: Number of received link state update packets.

LsAck: Number of received link state acknowledgment packets

Pkts: Total number of received packets.

Rx Stat

Counters and statistics for received data.

Hellos: Number of received hello packets. These packets are sent every hello interval.

DbDescr: Number of received database description packets.

LsReq: Number of received link state request packets.

LsUpdate: Number of received link state update packets.

LsAck: Number of received link state acknowledgment packets

Pkts: Total number of received packets.

Rx Err

Counters and statistics for received data.

Hellos: Number of received hello packets. These packets are sent every hello interval.

DbDescr: Number of received database description packets.

LsReq: Number of received link state request packets.

LsUpdate: Number of received link state update packets.

LsAck: Number of received link state acknowledgment packets

Pkts: Total number of received packets.

DisCd

Number of received packets that are discarded.

BadVer

Number of received packets that have bad OSPFOpen Shortest Path First. OSPF is a link-state routing protocol for IP networks. It uses a link-state routing algorithm and falls into the group of interior routing protocols that operates within a single Autonomous System (AS). version number.

BadNet

Number of received packets that belong to different network than the local interface.

BadArea

Number of received packets that belong to different area than the local interface.

BadDstAdr

Number of received packets that have wrong destination address.

BadAuType

Number of received packets that have different authentication type than the local interface.

BadAuth

Number of received packets where authentication failed.

BadNeigh

Number of received packets which didn’t have a valid neighbor.

Related Commands

Command

Description

interface vlan ip ospf

Configure OSPFOpen Shortest Path First. OSPF is a link-state routing protocol for IP networks. It uses a link-state routing algorithm and falls into the group of interior routing protocols that operates within a single Autonomous System (AS). on the interface.

router ospf

Configure OSPFOpen Shortest Path First. OSPF is a link-state routing protocol for IP networks. It uses a link-state routing algorithm and falls into the group of interior routing protocols that operates within a single Autonomous System (AS). on the router.

Command History

Release

Modification

ArubaOS 8.2.1.0

The Tx Err and Rx Err parameters were added to the output of the show ip ospf interface vlan command.

ArubaOS 8.0.0.0

Command introduced.

Command Information

Platforms

License

Command Mode

All platforms

Base operating system.

Enable or Config mode on Mobility Master.

/*]]>*/