242
[P] mpls lsr-id 2.2.2.9
[P] mpls ldp
[P-ldp] quit
[P] interface pos 1/1/0
[P-Pos1/1/0] mpls enable
[P-Pos1/1/0] mpls ldp enable
[P-Pos1/1/0] quit
[P] interface pos 1/1/1
[P-Pos1/1/1] mpls enable
[P-Pos1/1/1] mpls ldp enable
[P-Pos1/1/1] quit
# Configure PE 2.
[PE2] mpls lsr-id 3.3.3.9
[PE2] mpls ldp
[PE2-ldp] quit
[PE2] interface pos 1/1/0
[PE2-Pos1/1/0] mpls enable
[PE2-Pos1/1/0] mpls ldp enable
[PE2-Pos1/1/0] quit
# Execute the
display mpls ldp peer
command to verify that LDP sessions in Operational state
have been established between PE 1, P, and PE 2. Execute the
display mpls ldp lsp
command to verify that the LSPs have been established by LDP. (Details not shown.)
3.
Configure VPN instances on PEs to allow CE access:
# Configure PE 1.
[PE1] ip vpn-instance vpn1
[PE1-vpn-instance-vpn1] route-distinguisher 100:1
[PE1-vpn-instance-vpn1] vpn-target 111:1
[PE1-vpn-instance-vpn1] quit
[PE1] ip vpn-instance vpn2
[PE1-vpn-instance-vpn2] route-distinguisher 100:2
[PE1-vpn-instance-vpn2] vpn-target 222:2
[PE1-vpn-instance-vpn2] quit
[PE1] interface gigabitethernet 1/1/1
[PE1-GigabitEthernet1/1/1] ip binding vpn-instance vpn1
[PE1-GigabitEthernet1/1/1] ip address 10.1.1.2 24
[PE1-GigabitEthernet1/1/1] quit
[PE1] interface gigabitethernet 1/1/2
[PE1-GigabitEthernet1/1/2] ip binding vpn-instance vpn2
[PE1-GigabitEthernet1/1/2] ip address 10.2.1.2 24
[PE1-GigabitEthernet1/1/2] quit
# Configure PE 2.
[PE2] ip vpn-instance vpn1
[PE2-vpn-instance-vpn1] route-distinguisher 200:1
[PE2-vpn-instance-vpn1] vpn-target 111:1
[PE2-vpn-instance-vpn1] quit
[PE2] ip vpn-instance vpn2
[PE2-vpn-instance-vpn2] route-distinguisher 200:2
[PE2-vpn-instance-vpn2] vpn-target 222:2