Assigning interfaces to an area

Once you define OSPFv2 areas, you can assign interfaces to the areas. All device ports must be assigned to one of the defined areas on an OSPFv2 device. When a port is assigned to an area, all corresponding subnets on that port are automatically included in the assignment.

To assign a loopback interface to an area with the IP address of 10.5.0.0, perform the following task:

  1. Enter the configure terminal command to access global configuration mode.
    device# configure terminal
  2. Enter the interface command and specify an interface.
    device(config)# interface loopback 2
  3. Enter the ip ospf area command followed by the IP address of the area.
    device(config-lbif-2)# ip ospf area 10.5.0.0

    If you want to set an interface to passive mode, use the ip ospf passive command. If you want to block flooding of outbound LSAs on specific OSPF interfaces, use the ip ospf database-filter all out command.(Refer to the Brocade FastIron Command Reference for details.)

The following example assigns a loopback interface to an area with the IP address of 10.5.0.0.

device# configure terminal
device(config)# interface loopback 2
device(config-lbif-2)# ip ospf area 10.5.0.0