network

Assigns networks to specified areas (defines the OSPF interfaces and their associated area IDs)

Supported in the following platforms:

Syntax

network <IP/M> area [<0-4294967295>|<IP>]

Parameters

network <IP/M> area [<0-4294967295>|<IP>]
<IP/M> Specifies an OSPF network address/mask value. Defines networks (IP addresses and mask) participating in OSPF.
area [<0-4294967295>|<IP>] Specifies an OSPF area, associated with the OSPF address range, in one of the following formats:
  • <0-4294967295> – Specifies a 32 bit OSPF area ID from 0 - 4294967295
  • <IP> – Defines an OSPF area ID in the form of an IPv4 address

Examples

nx9500-6C8809(config-profile default-ap8533-router-ospf)#network 1.2.3.0/24 area 4.5.6.7
nx9500-6C8809(config-profile default-ap8533-router-ospf)#show context
 router ospf
  network 1.2.3.0/24 area 4.5.6.7
  area 0.0.0.4
  auto-cost reference-bandwidth 1
  default-information originate metric 1 metric-type 2
  ip default-gateway priority 1
nx9500-6C8809(config-profile default-ap8533-router-ospf)#

Related Commands

no (router-mode-config-command) Removes the OSPF network to area ID association