Skip Navigation Links
Exit Print View
| Sun Ethernet Fabric Operating System ### OSPF Administration Guide

Search Scope:

- This Document
- Entire Library

## Configure the OSPF Interface

1. Configure the OSPF interface.

       SEFOS# configure terminal
       SEFOS(config)# router ospf
       SEFOS(config-router)# router-id 10.10.2.1

2. Enable OSPF over the VLAN interface, and associate the interface with an OSPF area.

   VLAN Interfaces `VLAN 1` and `VLAN 10` are created as part of the prerequisite configuration.

       SEFOS(config-router)# network 10.4.0.1 area 0.0.0.0
       SEFOS(config-router)# network 10.10.2.1 area 0.0.0.6

   Enabling OSPF over the VLAN interfaces defines the interfaces on which OSPF runs and the area ID for those interfaces.

3. Examine the configuration details.

       SEFOS# show ip ospf

       OSPF Router ID 10.10.2.1
       Supports only single TOS(TOS0) route
       ABR Type supported is Standard ABR
       It is an Area Border Router
       Number of Areas in this router is 2
       Area is 0.0.0.6
       Number of interfaces in this area is 1
       SPF algorithm executed 6 times
       Area is 0.0.0.0
       Number of interfaces in this area is 1
       SPF algorithm executed 6 times

4. Examine the OSPF interfaces.

       SEFOS# show ip ospf interface

       vlan1 is line protocol is up
       Internet Address 10.4.0.1, Mask 255.255.0.0, Area 0.0.0.0
       AS 1, Router ID 10.10.2.1, Network Type BROADCAST, Cost 1
       Transmit Delay is 1 sec, State 4, Priority 1
       Designated RouterId 10.10.2.1, Interface address 10.4.0.1
       Backup Designated RouterId 10.4.0.4, Interface address 10.4.0.4
       Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5
       Hello due in 8 sec
       Neighbor Count is 3, Adjacent neighbor count is 3
       Adjacent with the neighbor 10.4.0.4
       Adjacent with the neighbor 10.4.0.3
       Adjacent with the neighbor 10.4.0.2

       vlan10 line protocol is up
       Internet Address 10.10.2.1, Mask 255.255.255.0, Area 0.0.0.6
       AS 1, Router ID 10.10.2.1, Network Type BROADCAST, Cost 1
       Transmit Delay is 1 sec, State 4, Priority 1
       Designated RouterId 10.10.2.1, Interface address 10.10.2.1
       Backup Designated RouterId 10.10.1.8, Interface address 10.10.2.8
       Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5
       Hello due in 6 sec
       Neighbor Count is 1, Adjacent neighbor count is 1
       Adjacent with the neighbor 10.10.1.8 OSPF Router ID 10.10.2.1

5. Disable OSPF routing for the interfaces defined, and remove the area ID of the interface.

       SEFOS(config-router)# no network 10.4.0.1 area 0.0.0.0

Copyright © 2010, 2012, Oracle and/or its affiliates. All rights reserved. Legal Notices |