PLANET XGS3-24040 User Manual

Page 290

Advertising
background image

Chapter 37 OSPF

37-14

2)SwitchB:

Configure IP address for interface vlan2

SwitchB#config

SwitchB(config)# interface vlan 2

SwitchB(config-If-Vlan2)# ip address 10.1.1.2 255.255.255.0

SwitchB(config-If-Vlan2)#exit

Enable OSPF protocol, configure the area number for interface vlan2.

SwitchB(config)#router ospf

SwitchB(config-router)#network 10.1.1.0/24 area 1

SwitchB(config-router)#exit

SwitchB(config)#interface vlan 2

Configure simple key authentication.

SwitchB(config)#interface vlan 2

SwitchB(config-If-Vlan2)#ip ospf authentication

SwitchB(config-If-Vlan2)#ip ospf authentication-key DCS

SwitchB(config-If-Vlan2)#exit

Configure IP address and area number for interface vlan1.

SwitchB(config)# interface vlan 1

SwitchB(config-If-Vlan1)#ip address 20.1.2.1 255.255.255.0

SwitchB(config-If-Vlan1)#exit

SwitchB(config)#router ospf

SwitchB(config-router)#network 20.1.2.0/24 area 1

SwitchB(config-router)#exit

SwitchB(config)#exit

3)SwitchC:

Configure IP address for interface vlan2

SwitchC#config

SwitchC(config)# interface vlan 2

SwitchC(config-If-Vlan2)# ip address 10.1.1.3 255.255.255.0

SwitchC(config-If-Vlan2)#exit

Enable OSPF protocol, configure the area number for interface vlan2

SwitchC(config)#router ospf

SwitchC(config-router)#network 10.1.1.0/24 area 1

SwitchC(config-router)#exit

Advertising