514
(assume vlan2 interface of layer3 SwitchE belongs to area 0). Swtich1 and SwitchE are
backbone layer3 switches, Swtich2 and SwitchD are area edge layer3 switches, and
SwitchC is the in-area layer3 switch.
Fig 14-9 Network topology of OSPF autonomous system.
The configuration for layer3 switch SwitchA and SwitchE is shown below:
Layer3 switch SwitchA:
! Enable OSPFv3 protocol, configure router ID
SwitchA(config)#router IPv6 ospf
SwitchA (config-router)#router-id 192.168.2.1
Configure interface vlan1 IPv6 address and affiliated OSPFv3 area
SwitchA#config
SwitchA(config)# interface vlan 1
SwitchA(config-if-vlan1)# IPv6 address 2010:1:1::1/64
SwitchA(config-if-vlan1)# IPv6 router ospf area 0
SwitchA(config-if-vlan1)#exit
Configure interface vlan2 IP address and affiliated OSPFv3 area
SwitchA(config)# interface vlan 2
SwitchA(config-if-vlan2)# IPv6 address 2100:1:1::1/64
SwitchA(config-if-vlan2)# IPv6 router ospf area 0
SwitchA (config-if-vlan2)#exit
SwitchA(config)#exit
SwitchA#
Layer 3 switch SwitchB:
Enable OSPFv3 protocol, configure router ID
SwitchB(config)#router IPv6 ospf
SwitchB (config-router)#router-id 192.168.2.2
Configure interface vlan1 address, vlan2 IPv6 address and affiliated OSPFv3 area
SwitchB#config
SwitchB(config)# interface vlan 1
SwitchB(config-if-vlan1)# IPv6 address 2010:1:1::2/64
SwitchB(config-if-vlan1)# IPv6 router ospf area 0
Area 1
Area 0
Area 2
SWITCHD
E1/1:2100:1:1::1/64
vlan2
E1/2:
2010:1:1::1/64
vlan1
E1/1:
2010:1:1::2/64
vlan1
E1/2:
2020:1:1::1/64
vlan3
E1/1: 2020:1:1::2/64
vlan3
E1/2:
2030:1:1::1
vlan3
E1/1:2100:1:1::2/64
vlan2
E1/1:
2030:1:1::2/64
vlan3
SwitchE
SwitchA
SwitchD
SwitchC
SwitchB