DGS-6604
m
network area
CLI Reference Guide
461
network area
Use this command to enable OSPF routing with a specified Area ID. It enables
this routing on interfaces with IP addresses that match the specified network
address. Use the no parameter with this command to remove the configuration
and disable OSPF routing on the interfaces.
network
SUBNET-PREFIX/ SUBNET-MASK-LENGTH
area
AREA-ID
network
SUBNET-PREFIX SUBNET-MASK
area
AREA-ID
no network
SUBNET-PREFIX/ SUBNET-MASK-LENGTH
area
AREA-ID
no network
SUBNET-PREFIX SUBNET-MASK
area
AREA-ID
Default
None
Command Mode
Router configuration
Usage Guideline
OSPF routing can be enabled per IPv4 subnet basis. Each subnet can belong to
one particular OSPF area. Network addresses can be defined using the prefix
length or a wild card mask.
If there are conflicts, error messages will be returned.
Example
The following example shows how to define OSPF area 3 for the interfaces
belonging to 10.0.0.0/8:
Verify the settings with the
show ip ospf
command.
Syntax Description
SUBNET-PREFIX
Specifies the address A.B.C.D IPv4 network prefix.
SUBNET-MASK-
LENGTH
Specifies the IPv4 network prefix length.
SUBNET-MASK
Specifies the subnet mask used by the network.
AREA-ID
Specifies the identifier of the area for which a VLAN interface is to be enabled.
The identifier can be specified as either an IP address or a decimal value.
Switch# configure terminal
Switch(config)# router ospf
Switch(config-router)# network 10.0.0.0/8 area 3