Configuring OSPF
8-10 Configuring OSPF
Figure 8-2 Topology for Basic OSPF Configuration
Example
ThisexampleshowsthecompleteconfigurationdescribedinProcedu r e 8‐1,beginningwith
VLAN100configurationinswitchmode.
**Create the VLAN**
Matrix(rw)->set vlan create 100
**Set the inbound PVID associations for untagged frames**
Matrix(rw)->set port vlan fe.5.21-40 100
**Set the list of egress ports and tagging for the VLAN**
Matrix(rw)->set vlan egress 100 fe.5.21-20 untagged
**Configure the router**
Matrix(rw)->set router 1
Matrix(rw)->router 1
Matrix>Router1>enable
Matrix>Router1#configure terminal
**Assign and enable the routing interface**
Matrix>Router1(config)#interface vlan 100
Matrix>Router1(config-if(Vlan 100))#ip address 131.108.1.1 255.255.255.0
Matrix>Router1(config-if(Vlan 100))#no shutdown
Matrix>Router1(config-if(Vlan 100))#exit
**Configure OSPF on the interface**
Matrix>Router1(config)#router ospf 1
Matrix>Router1(config-router)#network 131.108.1.1 255.255.255.0 area 1
Procedure 8-1 Basic OSPF Configuration
Step Task Command
1. From switch mode, enter router mode on router 1. router 1
2. Enable router 1. enable
3. Enable global configuration mode. configure terminal
4. Create routing instance 1 on router 1, and enable
OSPF router configuration mode for this instance.
router ospf 1
5. Assign network interface 131.108.1.1 to area 1. network 131.108.1.1
255.255.255.0 area 1
Router 1
Router 2
VLAN
100
Comments to this Manuals