�
Create VFI and configure VFI parameters such as vcid, pwtype
and peer.
�
Bind physical address to VLAN, as shown in the figure, bind
gei_1/1 of PE1 to vlan 10, and gei_1/2 to vlan20.
�
Configure interface addresses on vlan10 of PE1, vlan20 and
vlan30 of P, and vlan40 of PE2.
�
Configure loopback addresses for PE1, P and PE2.
�
Run IGP protocol (such as OSPF) on PE1, P and PE2 to im-
plement interconnection of PE1 and PE2 and to learn loopback
interface address route of the peer party.
�
Start MPLS on PE1, P and PE2: Configure mpls ip globally and
specify the router-id of mpls ldp. Start mpls ip on vlan10 of
PE1, vlan20 and vlan30 of P, and vlan40 of PE2.
�
Configure target—session on PE1 and PE2 to establish the Idp
neighborhood relationship between PE1 and PE2. If P does not
exist in networking, the configuration is unnecessary.
�
Configure xconnect vfi on the interfaces of vlan100, vlan200
and vlan300 on PE1 and PE2 connecting CE.
The following describes the configurations of each device.
PE1 configuration:
PE1(config)#vfi vpls_a
PE1(config-vfi)#vcid 100
PE1(config-vfi)#pwtype ethernet-vlan
PE1(config-vfi)#peer 1.1.1.3
PE1(config)#interface gei_1/1
PE1(config-if)#switch access vlan 100
PE1(config-if)#exit
PE1(config)#interface gei_1/2
PE1(config-if)#switch access vlan 10
PE1(config-if)#exit
PE1(config)#interface loopback10
PE1(config-if)#ip address
PE1(config)#interface vlan 100
PE1(config-if)#xconnect vfi vpls_a
PE1(config-if)#exit
PE1(config)#interface vlan 10
PE1(config-if)#ip address
PE1(config-if)#mpls ip
PE1(config-if)#exit
PE1(config)#mpls ip
PE1(config)#mpls ldp router-id loopback10 force
PE1(config)#mpls ldp target-session 1.1.1.3
PE1(config)#router ospf 1
PE1(config-router)#network 1.1.1.1 0.0.0.0 area 0.0.0.0
PE1(config-router)#network 175.1.1.0 0.0.0.255 area 0.0.0.0
P configuration:
P(config)#interface gei_1/3
P(config-if)#switch access vlan 20
P(config-if)#exit
P(config)#interface gei_1/4
P(config-if)#switch access vlan 30
P(config-if)#exit
P(config)#interface loopback10
P(config-if)#ip address
P(config-if)#exit
P(config)#interface vlan 20
P(config-if)#ip address
P(config-if)#mpls ip
P(config-if)#exit
P(config)#interface vlan 30
Confidential and Proprietary Information of ZTE CORPORATION
Chapter 4 MPLS L2VPN Configuration
1.1.1.1 255.255.255.255
175.1.1.1 255.255.255.0
1.1.1.2 255.255.255.255
175.1.1.2 255.255.255.0
59