You are here: Home > CLI Commands > Just_CLI_Topics > router ospf

router ospf

router ospf

aggregate-route rapng-vpn <addr> <mask>

area <area-id>

default-cost <cost>

no [default-cost | nssa | stub]

nssa [default-information-originate | no-redistribution | no-summary]

stub [no-summary]

default-information originate always

redistribute

loopback

rapng-vpn

static

vlan [add <vlan-ids> | remove <vlan-ids> | <vlan-ids>]

router-id <rtr-id>

subnet exclude <addr> <mask>

Description

This command configures 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). configuration for the upstream router. This command is only available in the Config mode.

Syntax

Parameter

Description

Range Default
aggregate-route rapng-vpn <addr> <mask>

Configures the aggregate route information for specified IP address and subnetSubnet is the logical division of an IP network. mask and redistributes RAPNG 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. address

area <area-id>

Configures 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). area for specified area ID (IP address)

default-cost <cost>

Configures summary default-cost of a NSSA/stub area

0 to 16777215

no [default-cost | nssa | stub]

Removes configured default-cost of NSSA/stub, NSSA, or stub

nssa [default-information-originate |

no-redistribution | no-summary]

Configures origination of type 7 default into NSSA area, sets NSSA area for no distribution into this NSSA area, or stops sending of summary LSA into this NSSA area

stub [no-summary]

Configures an area as stub area and stops sending summary LSA into this area

default-information originate always

Configures distribution of default information by distributing a default route

redistribute

Redistributes the route

loopback

Redistributes loopback addresses

rapng-vpn

Redistributes RAPNG 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. addresses

static

Redistributes static IP routes.

vlan [add <vlan-ids> |

remove <vlan-ids> | <vlan-ids>]

Redistributes 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. user subnetSubnet is the logical division of an IP network., adds user VLANsVirtual 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. to list, or removes user VLANsVirtual 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. from list.

router-id <rtr-id>

Configures router ID for specified IP address

subnet exclude <addr> <mask>

Configures IP address and subnetSubnet is the logical division of an IP network. mask 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). will not advertise

Usage Guidelines

OSPFv2Open Shortest Path First version 2. OSPFv2 is the version 2 of the link-state routing protocol, OSPF. See RFC 2328. is a dynamic Interior GatewayGateway is a network node that allows traffic to flow in and out of the network. routing Protocol (IGPInterior Gateway Protocol. IGP is used for exchanging routing information between gateways within an autonomous system (for example, a system of corporate local area networks). ) based on IETF RFCRequest For Comments. RFC is a commonly used format for the Internet standards documentss. 2328. 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). implementation allows managed devices to deploy effectively in a Layer 3 topology.

Example

The following example configures an IP address 192.0.2.1 and subnetSubnet is the logical division of an IP network. mask 255.0.255.255 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). will not advertise:

(host) [mynode] (config) #router ospf subnet exclude 192.0.2.1 255.0.255.255

Command History

Release

Modification

ArubaOS 8.1.0.0

The static sub-parameter was added under the redistribute parameter.

ArubaOS 8.0.0.0

Command introduced.

Command Information

Platforms

License

Command Mode

All Platforms

Base operating system.

Configuration mode on managed devices.

/*]]>*/