127.0.0.1/32  Direct 0    0           D  127.0.0.1       InLoopBack0
127.255.255.255/32  Direct 0    0           D  127.0.0.1       InLoopBack0 
      168.1.1.0/24  Direct 0    0           D  168.1.1.1       Vlanif20
      168.1.1.1/32  Direct 0    0           D  127.0.0.1       InLoopBack0
    168.1.1.255/24  Direct 0    0           D  168.1.1.1       Vlanif20
      169.1.1.0/24  OSPF   10   2           D  168.1.1.2       Vlanif20
255.255.255.255/32  Direct 0    0           D  127.0.0.1       InLoopBack0
Run the display ospf peer command, and you can see that the OSPF neighbor relation is set up
and the neighbor status is Full.
Take the display on PE1 for example:
<PE1> display ospf peer
          OSPF Process 1 with Router ID 1.1.1.9
                  Neighbors
 Area 0.0.0.0 interface 168.1.1.1(Vlanif20)'s neighbors
 Router ID: 2.2.2.9       Address: 168.1.1.2
   State: Full  Mode:Nbr is  Master  Priority: 1
   DR: None  BDR: None  MTU: 0
   Dead timer due in 35  sec
   Neighbor is up for 00:17:12
   Authentication Sequence: [ 0 ]
Step 3 Configure basic MPLS functions and LDP, and set up LDP LSPs.
The configuration procedure is not mentioned here.
After the configuration, run the display mpls ldp session and display mpls ldp peer commands
on each LSR. You can see information about the LDP session and peers.
Take the display on PE1 for example:
<PE1> display mpls ldp session
 LDP Session(s) in Public Network
 Codes: LAM(Label Advertisement Mode), SsnAge Unit(DDDD:HH:MM)
 A '*' before a session means the session is being deleted.
 ------------------------------------------------------------------------------
 PeerID             Status      LAM  SsnRole  SsnAge      KASent/Rcv
 ------------------------------------------------------------------------------
 2.2.2.9:0          Operational DU   Passive  0000:00:07  32/32
 ------------------------------------------------------------------------------
 TOTAL: 1 session(s) Found.
<PE1> display mpls ldp peer
LDP Peer Information in Public network
 A '*' before a peer means the peer is being deleted.   
 ------------------------------------------------------------------------------
 Peer-ID                Transport-Address  Discovery-Source
 ------------------------------------------------------------------------------
 2.2.2.9:0              2.2.2.9            Vlanif20
 ------------------------------------------------------------------------------
 TOTAL: 1 Peer(s) Found.
Step 4 Configure the basic BGP L2VPN capability.
# Configure PE1.
[PE1] mpls l2vpn
[PE1-l2vpn] quit
[PE1] bgp 100
[PE1-bgp] peer 3.3.3.9 as-number 100
[PE1-bgp] peer 3.3.3.9 connect-interface loopback 1
Quidway S7700 Smart Routing Switch
Configuration Guide - VPN 5 VLL Configuration
Issue 01 (2011-07-15) Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
516