Configuration Examples Of Ospf Vpn - Planet XGS3-42000R User Manual

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

Advertisement

XGS 3-42000R(config-router)#network 2.2.2.0/24 area 1
XGS 3-42000R(config-router)#exit
XGS 3-42000R(config)#router ospf 20
XGS 3-42000R(config-router)#network 1.1.1.0/24 area 1
XGS 3-42000R(config-router)#redistribute ospf 10
XGS 3-42000R(config-router)#exit

37.3.2 Configuration Examples of OSPF VPN

Interface
vlan1:10. 1.1.1/24
SWITCHA
vlan2:20. 1.1.1/24
The above figure shows that a network consists of three Layer 3 switches in which the switchA as PE,
SwitchB and S witchC as CE1 and CE 2. The PE is connected t o CE 1 and CE 2 through vlan1 and vlan2. The
routing messages are exchanged between PE and CE through OSPF protocol.
a)
SwitchA, the Layer 3 switch as P E
Configure VPN route/transmitting examples vpnb and vpnc
SwitchA#config
SwitchA(config)#ip vrf vpnb
SwitchA(config-vrf)#
SwitchA(config-vrf)#exit
SwitchA#(config)
SwitchA(config)#ip vrf vpnc
SwitchA(config-vrf)#
SwitchA(config-vrf)#exit
Associate the vlan 1 and vlan 2 respectively with vpnb and vpnc while configuring IP address
SwitchA(config)#in vlan1
SwitchA(config-if-Vlan1)#ip vrf forwarding vpnb
SwitchA(config-if-Vlan1)#ip address 10.1.1.1 255.255.255.0
SwitchA(config-if-Vlan1)#exit
SwitchA(config)#in vlan2
SwitchA(config-if-Vlan2)#ip vrf forwarding vpnc
SwitchA(config-if-Vlan2)#ip address 20.1.1.1 255.255.255.0
Interface
Figure 37-3-4 OSPF VPN Example
Interface
vlan1:10. 1.1.2/24
Interface
vlan1:20. 1.1.2/24
37-16
SWITCHB
SWITCHC

Advertisement

Table of Contents

Troubleshooting

loading

Table of Contents