[PE1] interface vlanif 10
[PE1-Vlanif10] l2 binding vsi bgp1
# Create a sub-interface on PE2, allow the sub-interface to receive packets from VLAN 10, and
bind a VSI to the sub-interface.
[PE2] interface vlanif 40
[PE2-Vlanif40] l2 binding vsi bgp1
Step 8 Assign an IP address to each VLANIF interface on CEs.
# Configure CE1.
<Quidway> sysname CE1
[CE1] interface vlanif 10
[CE1-Vlanif10] ip address 10.1.1.1 255.255.255.0
# Configure CE2.
<Quidway> sysname CE2
[CE2] interface vlanif 40
[CE2-Vlanif40] ip address 10.1.1.2 255.255.255.0
Step 9 Verify the configuration.
After the preceding configurations, run the display vsi name bgp1 verbose command on PE1.
You can find that a VSI named bgp1 sets up a PW to PE2, and the status of the VSI is UP.
.
<PE1> display vsi name bgp1 verbose
 ***VSI Name               : bgp1
    Administrator VSI      : no
    Isolate Spoken         : disable
    VSI Index              : 1
    PW Signaling           : bgp
    Member Discovery Style : auto
    PW MAC Learn Style     : unqualify
    Encapsulation Type     : vlan
    MTU                    : 1500
    Diffserv Mode          : uniform
    Mpls Exp               : --
    DomainId               : 255
    Domain Name            :
    Ignore AcState         : disable
    Create Time            : 0 days, 0 hours, 8 minutes, 38 seconds
    VSI State              : up
    BGP RD                 : 168.1.1.1:1
    SiteID/Range/Offset    : 1/5/0
    Import vpn target      : 100:1
    Export vpn target      : 100:1
    Remote Label Block     : 31744/10/0
    Local Label Block      : 31744/10/0
    Interface Name         : Vlanif10
    State                  : up
    Last Up Time           : 2009/02/03 00:26:25
    Total Up Time          : 0 days, 0 hours, 7 minutes, 31 seconds
   **PW Information:
   *Peer Ip Address        : 3.3.3.9
    PW State               : up
    Local VC Label         : 31745
    Remote VC Label        : 31746
    PW Type                : label
Quidway S7700 Smart Routing Switch
Configuration Guide - VPN 7 VPLS Configuration
Issue 01 (2011-07-15) Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
740