PLANET XGS3-24042 User Manual

Page 320

Advertising
background image

38-16

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.

Figure 38-3 Function of OSPF importing the routers of other OSPF processes example

We can configure as follows:

Network A

Network B

Vlan1

1.1.1.1

Vlan2

2.2.2.2

Advertising
This manual is related to the following products: