10.2.1.0/24  BGP    255  0             D  10.1.1.2        Vlanif10
      127.0.0.0/8   Direct 0    0             D  127.0.0.1       InLoopBack0
      127.0.0.1/32  Direct 0    0             D  127.0.0.1       InLoopBack0
<CE1> ping 10.2.1.1
  PING 10.2.1.1: 56  data bytes, press CTRL_C to break
    Reply from 10.2.1.1: bytes=56 Sequence=1 ttl=252 time=120 ms
    Reply from 10.2.1.1: bytes=56 Sequence=2 ttl=252 time=73 ms
    Reply from 10.2.1.1: bytes=56 Sequence=3 ttl=252 time=111 ms
    Reply from 10.2.1.1: bytes=56 Sequence=4 ttl=252 time=86 ms
    Reply from 10.2.1.1: bytes=56 Sequence=5 ttl=252 time=110 ms
  --- 10.2.1.1 ping statistics ---
    5 packet(s) transmitted
    5 packet(s) received
    0.00% packet loss
    round-trip min/avg/max = 73/100/120 ms 
Run the display bgp vpnv4 all routing-table command on an ASBR, and you can view VPNv4
routes on the ASBR.
For example, information about ASBR1 is displayed as follows:
[ASBR1] display bgp vpnv4 all routing-table
BGP Local router ID is 2.2.2.9
 Status codes: * - valid, > - best, d - damped,
               h - history,  i - internal, s - suppressed, S - Stale
               Origin : i - IGP, e - EGP, ? - incomplete
 Total number of routes from all PE: 3
 Route Distinguisher: 100:1
      Network            NextHop        MED        LocPrf    PrefVal Path/Ogn
 *>i  10.1.1.0/24        1.1.1.9         0          100        0      ?
 *>i  10.1.1.1/32        1.1.1.9         0          100        0      ?
Route Distinguisher: 200:1
      Network            NextHop        MED        LocPrf    PrefVal Path/Ogn
 *>   10.2.1.0/24        192.1.1.2                             0      200?
----End
Configuration Files
l Configuration file of CE1
#
 sysname CE1
#
 vlan batch 10
#
interface Vlanif10
 ip address 10.1.1.1 255.255.255.0
#
interface GigabitEthernet1/0/0
 port link-type trunk
 port trunk allow-pass vlan 10
#
bgp 65001
 peer 10.1.1.2 as-number 100
 #
 ipv4-family unicast
  undo synchronization
  import-route direct
  peer 10.1.1.2 enable
return
l Configuration file of PE1
#
 sysname PE
#
 vlan batch 10 11
#
ip vpn-instance vpn1
Quidway S7700 Smart Routing Switch
Configuration Guide - VPN 3 BGP MPLS IP VPN Configuration
Issue 01 (2011-07-15) Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
233