Ospf Examples; Configuration Example Of Ospf - Planet XGS3-42000R User Manual

4-slot layer 3 ipv6/ ipv4 routing chassis switch
Table of Contents

Advertisement

37.3 OSPF Examples

37.3.1 Configuration Example of OSPF

Scenario 1: OSPF autonomous system.
This scenario takes an OSPF autonomous system consists of five switch for example.
E1/1:100.1.1.1
E1/2:30.1.1.1
SwitchA
SwitchE
SwitchD
vlan2
vlan3
E1/2:10.1.1.1
E1/1:100.1.1.2
E1/1:30.1.1.2
vlan1
vlan2
vlan3
Area 0
E1/1:10.1.1.2
vlan1
E1/1:20.1.1.2
vlan3
E1/2:20.1.1.1
SwitchB
SwitchC
vlan3
Area 1
Figure 37-3-1 Network topology of OSPF autonomous system
The configuration for lay er3 S witch1 and Switch5 is shown below:
Layer 3 Switch1
Configuration of the IP address for interface vlan1
Switch1#config
Switch1(config)# interface vlan 1
Switch1(config-if-vlan1)# ip address 10.1.1.1 255.255.255.0
Switch1(config-if-vlan1)#exit
Configuration of the IP address for interface vlan2
Configure the IP address of interface vlan2
Switch1(config)# interface vlan 2
Switch1(config-if-vlan2)# ip address 100.1. 1.1 255.255.255.0
Switch1 (config-if-vlan2)#exit
Enable OSPF protocol, configure the area number for interface vlan1 and vlan2.
Switch1(config)#router ospf
Switch1(config-rout er)#network 10.1.1. 0/24 area 0
Switch1(config-rout er)#network 100.1.1.0/24 area 0
Switch1(config-rout er)#exit
Switch1(config)#exit
Switch1#
Layer 3 Switch2:
37-8

Advertisement

Table of Contents

Troubleshooting

loading

Table of Contents