482
Configuration of the IP address for interface vlan2
SwitchE#config
SwitchE(config)# interface vlan 2
SwitchE(config-if-vlan2)# ip address 100.1.1.2 255.255.255.0
SwitchE(config-if-vlan2)#exit
Configuration of the IP address for interface vlan3
SwitchE(config)# interface vlan 3
SwitchE(config-if-vlan3)# ip address 30.1.1.1 255.255.255.0
SwitchE(config-if-vlan3)#exit
Enable OSPF protocol, configure the number of the area in which interface vlan2
and vlan3 reside in.
SwitchE(config)#router ospf
SwitchE(config-router)# network 30.1.1.0/24 area 0
SwitchE(config-router)# network 100.1.1.0/24 area 0
SwitchE(config-router)#exit
SwitchE(config)#exit
Scenario 2: Typical OSPF protocol complex topology.
Fig 14-7
Typical complex OSPF autonomous system.
This scenario is a typical complex OSPF autonomous system network topology.
Area1 include network N1-N4 and layer3 switch SwitchA-SwitchD, area2 include network
N8-N10, host H1 and layer3 switch SwitchH, area3 include N5-N7 and layer3 switch
SwitchG, SwitchG SwitchJ and SwitchK, and network N8-N10 share a summary route
with host H1(i.e. area3 is defined as a STUB area). Layer3 switch SwitchA, SwitchB,
Area3
Area2
Area1
N3
N1
N8
N5
N6
N9
N10
N4
N2
N15
N14
N7
N11
Area0
SwitchA
SwitchB
SwitchC
SwitchD
SwitchE
SwitchF
SwitchI
SwitchL
SwitchK
SwitchJ
SwitchG
SwitchH
N12
N13