Planet XGS3-42000R User Manual page 300

4-slot layer 3 ipv6/ ipv4 routing chassis switch
Table of Contents

Advertisement

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 rout ers 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 t he 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 37-3-3 Function of OSPF importing the routers of other OSPF processes example
We can configure as follows:
XGS 3-42000R(config)#interface vlan 1
XGS 3-42000R(config-if-Vlan1)#ip address 1.1.1.1 255.255.255.0
XGS 3-42000R(config-if-Vlan1)#exit
XGS 3-42000R(config)#interface vlan 2
XGS 3-42000R(config-if-Vlan2)#ip address 2.2.2.2 255.255.255.0
XGS 3-42000R(config-if-Vlan2)#exit
XGS 3-42000R(config)#router ospf 10
Network A
Vlan1
1.1.1.1
Vlan2
2.2.2.2
Network B
37-15

Advertisement

Table of Contents

Troubleshooting

loading

Table of Contents