SGS-6341-Series User Manual

Table Of Contents
Network A
Vlan1
1.1.1.1
Vlan2
2.2.2.2
Network B
Figure 26
-6 Function of O
SPF importing the routers of other OSPF processes example
We can configure as follows:
Switch(config)#interface vlan 1
Switch(Config-if-Vlan1)#ip address 1.1.1.1 255.255.255.0
Switch(Config-if-Vlan1)#exit
Switch(config)#interface vlan 2
Switch(Config-if-Vlan2)#ip address 2.2.2.2 255.255.255.0
Switch(Config-if-Vlan2)#exit
Switch(config)#router ospf 10
Switch(config-router)#network 2.2.2.0/24 area 1
Switch(config-router)#exit
Switch(config)#router ospf 20
Switch(config-router)#network 1.1.1.0/24 area 1
Switch(config-router)#redistribute ospf 10
Switch(config-router)#exit
26.5.5 Configuration Examples of OSPF VPN
Figure 26-7 OSPF VPN Example
The above figure shows that a network consists of three Layer 3 switches in which the switchA
as PE, SwitchB and SwitchC as CE1 and CE2. The PE is connected to CE1 and CE2 through
Interface
vlan1:10.1.1.
1/24
Interface
SWITCHB
vlan1:10.1.1.2/24
SWITCHC
SWITCHA
Interface Interface
vlan2:20.1.1.1/24 vlan1:20.1.1.2/24
26-42
User’s Manual of SGS-6341 series