User Manual

Table Of Contents
81-43
PE1(config-if-Vlan100)#label-switching
PE1(config-if-Vlan100) #ldp enable
PE1(config-if-Vlan100)#exit
(5) Enable OSPF to advertise the inner network routes
PE1(config)#router ospf
PE1(config-router)# ospf router-id 172.1.1.1
PE1(config-router)# network 0.0.0.0/0 area 0
PE1(config-router)# redistribute connected
(6) Configure BGP
PE1(config)# router bgp 100
PE1(config-router)#neighbor 172.2.2.2 remote-as 100
PE1(config-router)#neighbor 172.2.2.2 update-source 172.1.1.1
PE1(config-router)#address-family vpnv4
PE1(config-router-af)#neighbor 172.2.2.2 activate
PE1(config-router-af)#exit
PE1(config-router)# address-family ipv4 vrf vpna
PE1(config-router-af)#neighbor 10.1.1.1 remote-as 65001
PE1(config-router-af)#redistribute connected
PE1(config-router-af)#exit
PE1(config-router)# address-family ipv4 vrf vpnb\
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