OSPF Quick Steps
Configuring OSPF
page 1-4
OmniSwitch AOS Release 7 Advanced Routing Configuration Guide
March 2011
OSPF Quick Steps
The followings steps are designed to show the user the necessary set of commands for setting up a router
to use OSPF:
1
Create a VLAN using the
vlan
command. For example:
-> vlan 5
-> vlan 5 admin-state enable
2
Assign a router IP address and subnet mask to the VLAN using the
ip interface
command. For exam-
ple:
-> ip interface vlan-5 vlan 5 address 120.1.4.1 mask 255.0.0.0
3
Assign a port to the created VLANs using the
vlan members
command. For example:
-> vlan 5 members port 2/1 untagged
Note.
The port will be statically assigned to the VLAN, as a VLAN must have a physical port assigned to
it in order for the router port to function. However, the router could be set up in such a way that mobile
ports are dynamically assigned to VLANs using VLAN rules. See the chapter titled “Defining VLAN
Rules” in the
OmniSwitch AOS Release 7 Network Configuration Guide
.
4
Assign a router ID to the router using the
ip router router-id
command. For example:
-> ip router router-id 1.1.1.1
5
Load and enable OSPF using the
ip load ospf
and the
ip ospf admin-state
commands. For example:
-> ip load ospf
-> ip ospf admin-state enable
6
Create a backbone to connect this router to others, and an area for the router’s traffic, using the
ip ospf
area
command. (Backbones are always labeled area 0.0.0.0.) For example:
-> ip ospf area 0.0.0.0
-> ip ospf area 0.0.0.1
7
Create an OSPF interface for each VLAN created in Step 1, using the
ip ospf interface
command. The
OSPF interface should use the same interface name used for the VLAN router IP created in Step 2. For
example:
-> ip ospf interface vlan-5
Note.
The interface name
cannot
have spaces.
8
Assign the OSPF interface to the area and the backbone using the
ip ospf interface area
command.
For example:
-> ip ospf interface vlan-5 area 0.0.0.0