481
interface vlan1 and vlan2
SwitchB#config
SwitchB(config)# interface vlan 1
SwitchB(config-if-vlan1)# ip address 10.1.1.2 255.255.255.0
SwitchB(config-if-vlan1)#exit
SwitchB(config)# interface vlan 3
SwitchB(config-if-vlan3)# ip address 20.1.1.1 255.255.255.0
SwitchB(config-if-vlan3)#exit
Enable OSPF protocol, configure the OSPF area interfaces vlan1 and vlan3 in
SwitchB(config)#router ospf
SwitchB(config-router)# network 10.1.1.0/24 area 0
SwitchB(config-router)# network 20.1.1.0/24 area 1
SwitchB(config-router)#exit
SwitchB(config)#exit
Layer 3 switch SwitchC
Configuration of the IP address for interface vlan3
SwitchC#config
SwitchC(config)# interface vlan 3
SwitchC(config-if-vlan1)# ip address 20.1.1.2 255.255.255.0
SwitchC(config-if-vlan3)#exit
Enable OSPF protocol, configure the OSPF area interfaces vlan3 resides in.
Initiate the OSPF protocol, configure the OSPF area to which interface vlan3 belongs
SwitchC(config)#router ospf
SwitchC(config-router)# network 20.1.1.0/24 area 1
SwitchC(config-router)#exit
SwitchC(config)#exit
Layer 3 switch SwitchD
Configuration of the IP address for interface vlan3
SwitchD#config
SwitchD(config)# interface vlan 3
SwitchD(config-if-vlan3)# ip address30.1.1.2 255.255.255.0
SwitchD(config-if-vlan3)#exit
Enable OSPF protocol, configure the OSPF area interfaces vlan3 resides in.
SwitchD(config)#router ospf
SwitchD(config-router)# network 30.1.1.0/24 area 0
SwitchD(config-router)#exit
SwitchD(config)#exit
Layer 3 switch SwitchE