PLANET XGS3-24042 User Manual

Page 708

Advertising
background image

82-62

PE1(config)#router bgp 100

PE1(config-router)#neighbor 100.200.1.2 remote-as 60102

PE1(config-router)#neighbor 200.200.1.1 remote-as 100

PE1(config-router)#neighbor 202.200.3.2 remote-as 100

PE1(config-router)#neighbor 202.200.3.2 next-hop-self

PE1(config-router)#address-family vpnv4 unicast

PE1(config-router-af)#neighbor 200.200.1.1 activate

PE1(config-router-af)#exit-address-family

PE1(config-router)#address-family ipv4 vrf VRF-A

PE1(config-router-af)#neighbor 192.168.102.2 remote-as 60102

PE1(config-router-af)#no neighbor 192.168.102.2 send-community extended

PE1(config-router-af)#exit-address-family

PE1(config-router)#exit

PE1(config)# router ldp

PE1(config-router)#ip route 100.200.1.2 255.255.255.0 100.100.1.2

The configuration of P is as follows:

P#config

P(config)#interface Vlan1

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

P(config-if-Vlan1)#ldp enable

P(config-if-Vlan1)#ip address 202.200.1.1 255.255.255.0

P(config-if-Vlan1)#exit

P(config)#interface Vlan2

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

P(config-if-Vlan2)#enable-ldp

P(config-if-Vlan2)#ip address 202.200.2.1 255.255.255.0

P(config-if-Vlan2)#exit

P(config)#interface Vlan3

P(config-if-Vlan3)#ip address 202.200.3.1 255.255.255.0

P(config-if-Vlan3)#exit

P(config)#router ospf

P(config-router)#network 202.200.1.0/24 area 0

P(config-router)#network 202.200.2.0/24 area 0

P(config-router)#network 202.200.3.0/24 area 0

P(config-router)#exit

P(config)#router ldp

The configuration of PE2 is as follows:

PE2#config

PE2(config)#ip vrf VRF-A

PE2(config-vrf)#rd 100:10

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

Advertising
This manual is related to the following products: