Accton Technology ES4626 User Manual
Page 466

466
Fig 13-6 Network topology of OSPF autonomous system.
The configuration for layer3 SwitchA and SwitchE is shown below:
Layer 3 SwitchA
Configuration of the IP address for interface vlan1
SwitchA#config
SwitchA(config)# interface vlan 1
SwitchA(config-if-vlan1)# ip address 10.1.1.1 255.255.255.0
SwitchA(config-if-vlan1)#no shut-down
SwitchA(config-if-vlan1)#exit
Configuration of the IP address for interface vlan2
Configure the IP address of interface vlan2
SwitchA(config)# interface vlan 2
SwitchA(config-if-vlan2)# ip address 100.1.1.1 255.255.255.0
SwitchA (config-if-vlan2)#exit
Enable OSPF protocol, configure the area number for interface vlan1 and vlan2.
SwitchA(config)#router ospf
SwitchA(config-router)#network 10.1.1.0/24 area 0
SwitchA(config-router)#network 100.1.1.0/24 area 0
SwitchA(config-router)#exit
SwitchA(config)#exit
Layer 3 SwitchB
Configure the IP address for interface vlan1 and vlan2Configure the IP address of
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)#no shut-down
SwitchB(config-if-vlan1)#exit
SwitchB(config)# interface vlan 3
SwitchB(config-if-vlan3)# ip address 20.1.1.1 255.255.255.0
Area 1
Area 0
Area 2
SWITCHD
E1/1:100.1.1.1
vlan2
E1/2:10.1.1.1
vlan1
E1/1:10.1.1.2
vlan1
E1/2:20.1.1.1
vlan3
E1/1:20.1.1.2
vlan3
E1/2:30.1.1.1
vlan3
E1/1:100.1.1.2
vlan2
E1/1:30.1.1.2
vlan3
SwitchE
SwitchA
SwitchD
SwitchC
SwitchB