PLANET XGS3-24040 User Manual
Page 289

Chapter 37 OSPF
37-13
Take area 1 as an example. Assume the IP address of layer3 SwitchA is 10.1.1.1, IP address of layer3
SwitchB interface VLAN2 is 10.1.1.2, IP address of layer3 SwitchC interface VLAN2 is 10.1.1.3, IP address of
layer3 SwitchD interface VLAN2 is 10.1.1.4. SwitchA is connecting to network N1 through Ethernet interface
VLAN1 (IP address 20.1.1.1); SwitchB is connecting to network N2 through Ethernet interface VLAN1 (IP
address 20.1.2.1); SwitchC is connecting to network N4 through Ethernet interface VLAN3 (IP address
20.1.3.1). All the three addresses belong to area 1. SwitchC is connecting to layer3 SwitchE through Ethernet
interface VLAN1 (IP address 10.1.5.1); SwitchD is connecting to layer3 SwitchD through Ethernet interface
VLAN1 (IP address 10.1.6.1); both two addresses belong to area 1. Simple authentication is implemented
among layer3 switches in area1, edge layer3 switches of area 1 authenticate with the area 0 backbone layer3
switches by MD5 authentication.
The followings are just configurations for all layer3 switches in area 1, configurations for layer3 switches of the
other areas are omitted. The following are the configurations of SwitchA SwitchB.SwitchC and SwitchD:
1)SwitchA:
Configure IP address for interface vlan2
SwitchA#config
SwitchA(config)# interface vlan 2
SwitchA(config-If-Vlan2)# ip address 10.1.1.1 255.255.255.0
SwitchA(config-If-Vlan2)#exit
Enable OSPF protocol, configure the area number for interface vlan2.
SwitchA(config)#router ospf
SwitchA(config-router)#network 10.1.1.0/24 area 1
SwitchA(config-router)#exit
Configure simple key authentication.
SwitchA(config)#interface vlan 2
SwitchA(config-If-Vlan2)#ip ospf authentication
SwitchA(config-If-Vlan2)#ip ospf authentication-key DCS
SwitchA(config-If-Vlan2)exit
Configure IP address and area number for interface vlan1.
SwitchA(config)# interface vlan 1
SwitchA(config-If-Vlan1)#ip address 20.1.1.1 255.255.255.0
SwitchA(config-If-Vlan1)#exit
SwitchA(config)#router ospf
SwitchA(config-router)#network 20.1.1.0/24 area 1
SwitchA(config-router)#exit