3com 8807 User Guide

Page of 883
VPLS Basic Configuration Example
649
# Enable the ACL in port view.
[PE1] interface GigabitEthernet4/1/1
 
[PE1-GigabitEthernet4/1/1] packet-filter inbound link-group 4001 rule 1 
Configure PE2
# Configure the Router ID used to advertise OSPF routing information. Generally, 
the interface address of both MPLS LSI-ID and Loopback0 can be configured with 
the same IP address.
[PE2] router id 1.2.3.4 
# Configure mpls lsr-id. Enable MPLS and MPLS LDP globally.
[PE2] mpls lsr-id 1.2.3.4
 
[PE2] mpls
 
[PE2] mpls ldp 
# Configure a 32-bit Loopback address, which is used to create LSP.
[PE2] interface loopback0
 
[PE2 -LoopBack0] ip address 1.2.3.4 32 
# Configure a public VLAN, add a port to it, configure the IP address for the 
interface. Then, enable MPLS and MPLS LDP on the interface.
[PE2] vlan 10
 
[PE2-vlan10] port GigabitEthernet 4/1/1
 
[PE2-vlan10] interface vlan 10
 
[PE2-vlan-interface10] ip address 10.10.10.11 24
 
[PE2-vlan-interface10] mpls
 
[PE2-vlan-interface10] mpls ldp enable 
# Configure OSPF to set up routes.
[PE2] ospf
 
[PE2-ospf-1] area 0
 
[PE2-ospf-1-area-0.0.0.0] network 1.2.3.4 0.0.0.0
 
[PE2-ospf-1-area-0.0.0.0] network 10.10.10.11 0.0.0.255
 
[PE2-ospf-1-area-0.0.0.0] quit
 
[PE2-ospf-1] import-route direct
 
[PE2-ospf-1] quit 
# Configure a LDP remote peer (PE1) to set up LDP session.
[PE2] mpls ldp remote-peer 1
 
[PE2-mpls-remote2] remote-ip 5.6.7.8 
# Enable L2VPN globally.
[PE2] mpls l2vpn 
# Configure a VPLS instance and VSI-ID (VPN-ID). Enter VSI-LDP view to configure 
the IP address for PE1.
[PE2] vsi 3Com static
 
[PE2-vsi-3Com] pwsignal ldp