SGS-6341-Series User Manual

Table Of Contents
SwitchD#config
SwitchD(config)# interface vlan 2
SwitchD(config-If-Vlan2)# ip address 10.1.1.4 255.255.255.0
SwitchD(config-If-Vlan2)#exit
Enable OSPF protocol, configure the area number for interface VLAN2.
SwitchD(config)#router ospf
SwitchD(config-router)#network 10.1.1.0/24 area 1
SwitchD(config-router)#exit
Configure simple key authentication.
SwitchD(config)#interface vlan 2
SwitchD(config-If-Vlan2)#ip ospf authentication
SwitchD(config-If-Vlan2)#ip ospf authentication-key DCS
SwitchD(config-If-Vlan2)#exit
Configure the IP address and the area number for the interface VLAN 1
SwitchD(config)# interface vlan 1
SwitchD(config-If-Vlan1)# ip address 10.1.6.1 255.255.255.0
SwitchD(config-If-Vlan1)exit
SwitchD(config)#router ospf
SwitchD(config-router)#network 10.1.6.0/24 area 0
SwitchD(config-router)#exit
Configure MD5 key authentication
SwitchD(config)#interface vlan 1
SwitchD(config-If-Vlan1)#ip ospf authentication message-digest
SwitchD(config-If-Vlan1)#ip ospf authentication-key DCS
SwitchD(config-If-Vlan1)exit
SwitchD(config)#exit
SwitchD#
Scenario 3: The function of OSPF importing the routers of other OSPF processes
As shown in the following graph, a switch running the OSPF routing protocol connects two
networks: network A and network B. Because of some reason, it is required that network A
should be able to learn the routers of network B, but network B should not be able to learn the
routers of network A. According to that, two OSPF processes can be started respectively on
interface VLAN 1 and interface VLAN 2. the OSPF process which interface VLAN 1 belongs to
is configured to import the routers of the OSPF process which interface VLAN 2 belongs to,
while the OSPF process which interface VLAN 2 belongs to should not be configured to import
the routers of the OSPF process which interface VLAN 1 belongs to.
26-41
User’s Manual of SGS-6341 series