3com 8807 User Guide

Page of 883
Martini MPLS L2VPN Configuration
623
Configure PE-B.
# Configure the LSR ID. Enable MPLS, LDP, and MPLS L2VPN.
[PE-B] mpls lsr-id 192.1.1.2
 
[PE-B] mpls
 
[PE-B-mpls] quit
 
[PE-B] mpls ldp
 
[PE-B] mpls l2vpn 
# Configure VLAN 22.
[PE-B] vlan 22
 
[PE-B-vlan22] port gigabitethernet 2/1/1
 
[PE-B-vlan22] interface Vlan-interface 22
 
[PE-B-Vlan-interface22] ip address 169.1.1.1 255.255.0.0
 
[PE-B-Vlan-interface22] mpls
 
[PE-B-Vlan-interface22] mpls ldp enable 
# Configure VLAN 212.
[PE-B] vlan 212
 
[PE-B-vlan212] port gigabitethernet 2/1/2
 
[PE-B-vlan212] interface vlan-interface 212
 
[PE-B-Vlan-interface212] quit 
# Configure an IP address for the Loopback interface, which is used as the LSR ID.
[PE-B] interface loopback 0
 
[PE-B-LoopBack0] ip address 192.1.1.2 255.255.255.255 
# Enable OSPF.
[PE-B] ospf 1
 
[PE-B-ospf-1] area 0.0.0.0
 
[PE-B-ospf-1-area-0.0.0.0] network 192.1.1.2 0.0.0.0
 
[PE-B-ospf-1-area-0.0.0.0] network 169.1.0.0 0.0.255.255 
# Create an LSP tunnel.
[PE-B] mpls
 
[PE-B-mpls] quit
 
[PE-B] mpls ldp 
# Configure the LDP Remote Peer.
[PE-B] mpls ldp remote-peer 1
 
[PE-B-mpls-remote1] remote-ip 192.1.1.1 
# Configure a Martini MPLS L2VPN connection.
[PE-B] interface vlan-interface 212
 
[PE-B-Vlan-interface212] mpls l2vc 192.1.1.1 20 
Configure P.
# Configure the LSR ID. Enable MPLS, LDP, and MPLS L2VPN.