3com 8807 User Guide

Page of 883
622
C
HAPTER
 51: MPLS VLL
Configuration procedure
Configure PE-A.
# Configure the LSR ID. Enable MPLS, LDP, and MPLS L2VPN.
[PE-A] mpls lsr-id 192.1.1.1
 
[PE-A] mpls
 
[PE-A-mpls] quit
 
[PE-A] mpls ldp
 
[PE-A] mpls l2vpn 
# Configure VLAN 212.
[PE-A] vlan 212
 
[PE-A-vlan212] port gigabitethernet 2/1/2
 
[PE-A-vlan212]interface vlan-interface 212
 
[PE-A-Vlan-interface212] quit 
# Configure VLAN 21.
[PE-A] vlan 21
 
[PE-A-vlan21] port gigabitethernet 2/1/1
 
[PE-A-vlan21] quit
 
[PE-A] interface Vlan-interface 21
 
[PE-A-Vlan-interface21] ip address 168.1.1.1 255.255.0.0
 
[PE-A-Vlan-interface21] mpls
 
[PE-A-Vlan-interface21] mpls ldp enable 
# Configure an IP address for the Loopback interface, which is used as the Router 
ID.
[PE-A] interface loopback 0
 
[PE-A-LoopBack0] ip address 192.1.1.1 255.255.255.255 
# Enable OSPF.
[PE-A] ospf 1
 
[PE-A-ospf-1] area 0.0.0.0
 
[PE-A-ospf-1-area-0.0.0.0] network 192.1.1.1 0.0.0.0
 
[PE-A-ospf-1-area-0.0.0.0] network 168.1.1.1 0.0.255.255 
# Create an LSP tunnel.
[PE-A] mpls
 
[PE-A-mpls] quit
 
[PE-A] mpls ldp 
# Configure the LDP Remote Peer.
[PE-A] mpls ldp remote-peer 1
 
[PE-A-remote-peer-1] remote-ip 192.1.1.2 
# Configure a Martini MPLS L2VPN connection.
[PE-A] interface vlan-interface 212
 
[PE-A-Vlan-interface212] mpls l2vc 192.1.1.2 20