275
Table 20 Interface and IP address assignment
Device Interface IP address Device Interface IP address
CE 1 Vlan-int12 10.2.1.1/24 CE 3 Vlan-int12 10.1.1.1/24
CE 2 Vlan-int13 10.4.1.1/24 CE 4 Vlan-int13 10.3.1.1/24
UPE 1 Loop0 1.1.1.9/32 UPE 2 Loop0 4.4.4.9/32
Vlan-int11 172.1.1.1/24 Vlan-int11 172.2.1.1/24
Vlan-int12 10.2.1.2/24 Vlan-int12 10.1.1.2/24
Vlan-int13 10.4.1.2/24 Vlan-int13 10.3.1.2/24
SPE 1 Loop0 2.2.2.9/32 SPE 2 Loop0 3.3.3.9/32
Vlan-int11 172.1.1.2/24 Vlan-int11 172.2.1.2/24
Vlan-int12 180.1.1.1/24 Vlan-int12 180.1.1.2/24
499BConfiguration procedure
1. Configure UPE 1:
# Configure basic MPLS and MPLS LDP to establish LDP LSPs.
<UPE1> system-view
[UPE1] interface loopback 0
[UPE1-LoopBack0] ip address 1.1.1.9 32
[UPE1-LoopBack0] quit
[UPE1] mpls lsr-id 1.1.1.9
[UPE1] mpls ldp
[UPE1-ldp] quit
[UPE1] interface vlan-interface 11
[UPE1-Vlan-interface11] ip address 172.1.1.1 24
[UPE1-Vlan-interface11] mpls enable
[UPE1-Vlan-interface11] mpls ldp enable
[UPE1-Vlan-interface11] quit
# Configure the IGP protocol (OSPF, in this example).
[UPE1] ospf
[UPE1-ospf-1] area 0
[UPE1-ospf-1-area-0.0.0.0] network 172.1.1.0 0.0.0.255
[UPE1-ospf-1-area-0.0.0.0] network 1.1.1.9 0.0.0.0
[UPE1-ospf-1-area-0.0.0.0] quit
[UPE1-ospf-1] quit
# Configure VPN instances vpn1 and vpn2, allowing CE 1 and CE 2 to access UPE 1.
[UPE1] ip vpn-instance vpn1
[UPE1-vpn-instance-vpn1] route-distinguisher 100:1
[UPE1-vpn-instance-vpn1] vpn-target 100:1 both
[UPE1-vpn-instance-vpn1] quit
[UPE1] ip vpn-instance vpn2
[UPE1-vpn-instance-vpn2] route-distinguisher 100:2
[UPE1-vpn-instance-vpn2] vpn-target 100:2 both
[UPE1-vpn-instance-vpn2] quit
[UPE1] interface vlan-interface 12
[UPE1-Vlan-interface12] ip binding vpn-instance vpn1