PLANET XGS3-24042 User Manual

Page 690

Advertising
background image

81-44

PE1(config-router-af)#neighbor 10.2.1.1 remote-as 65002

PE1(config-router-af)#redistribute connected

PE1(config-router-af)#exit

PE1(config-router)#exit

The configuration of router P is as follows:

(1) Globally enable MPLS and configure LDP on related interfaces.

P#config

P(config)#mpls enable

P(config)#router ldp

P(config-router)#exit

P(config)# interface loopback 1

P(config-if-Loopback1)# ip address 172.3.3.3 255.255.255.255

P(config-if-Loopback1)# exit

P(config)#interface vlan 100

P(config-if-Vlan100)#ip address 100.1.1.2 255.255.255.0

P(config-if-Vlan100)#label-switching

P(config-if-Vlan100)#ldp enable

P(config-if-Vlan100)#exit

P(config)#interface vlan200

P(config-if-Vlan200)#ip address 200.1.1.2 255.255.255.0

P(config-if-Vlan200)#label-switching

P(config-if-Vlan200)#ldp enable

P(config-if-Vlan200)#exit

(2) Configure OSPF

P(config)#router ospf

P(config-router)# ospf router-id 172.3.3.3

P(config-router)# network 0.0.0.0/0 area 0

P(config-router)# redistribute connected

The configuration of switch PE2 is as follows:

(1) Configure VPN instances

PE2#config

PE2(config)#ip vrf vpna

PE2(config-vrf)#rd 100:1

PE2(config-vrf)#route-target both 100:1

PE2(config)#ip vrf vpnb

PE2(config-vrf)#rd 100:2

PE2(config-vrf)#route-target both 100:2

Advertising
This manual is related to the following products: