Configuring OSPF

OSPF Application Example

 

 

 

 

-> ip ospf interface vlan-20

 

-> ip ospf interface vlan-20 area 0.0.0.2

 

-> ip ospf interface vlan-20 status enable

 

Router 3

 

-> ip ospf interface 23.0.0.3

 

-> ip ospf interface 23.0.0.3 area 0.0.0.0

 

-> ip ospf interface 23.0.0.3 status enable

 

-> ip ospf interface 31.0.0.3

 

-> ip ospf interface 31.0.0.3 area 0.0.0.0

 

-> ip ospf interface 31.0.0.3 status enable

 

-> ip ospf interface 30.0.0.3

 

-> ip ospf interface 30.0.0.3 area 0.0.0.3

 

-> ip ospf interface 30.0.0.3 status enable

 

IP router port 23.0.0.3 was associated to OSPF interface 23.0.0.3, enabled, and assigned to the backbone. IP router port 31.0.0.3 was associated to OSPF interface 31.0.0.3, enabled, and assigned to the backbone. IP router port 30.0.0.3, which connects to end stations and attached network devices, was associated to OSPF interface 30.0.0.3, enabled, and assigned to Area 0.0.0.3.

Alternatively, you can also configure Router 3 with the interface name instead of the IP address as shown below:

-> ip ospf interface vlan-23

-> ip ospf interface vlan-23 area 0.0.0.0 -> ip ospf interface vlan-23 status enable

-> ip ospf interface vlan-31

-> ip ospf interface vlan-31 area 0.0.0.0 -> ip ospf interface vlan-31 status enable

-> ip ospf interface vlan-30

-> ip ospf interface vlan-30 area 0.0.0.3 -> ip ospf interface vlan-30 status enable

Step 5: Examine the Network

After the network has been created, you can check various aspects of it using show commands:

For OSPF in general, use the show ip ospf command.

For areas, use the show ip ospf area command.

For interfaces, use the show ip ospf interface command.

To check for adjacencies formed with neighbors, use the show ip ospf neighbor command.

For routes, use the show ip ospf routes command.

OmniSwitch 6600 Family Advanced Routing Configuration Guide March 2005

page 1-37

Page 47
Image 47
Alcatel Carrier Internetworking Solutions 060187-10 REV D manual Examine the Network