[P] ping 100.3.1.1
  PING 100.3.1.1: 56  data bytes, press CTRL_C to break
    Reply from 100.3.1.1: bytes=56 Sequence=1 ttl=254 time=62 ms
    Reply from 100.3.1.1: bytes=56 Sequence=2 ttl=254 time=62 ms
    Reply from 100.3.1.1: bytes=56 Sequence=3 ttl=254 time=62 ms
    Reply from 100.3.1.1: bytes=56 Sequence=4 ttl=254 time=62 ms
    Reply from 100.3.1.1: bytes=56 Sequence=5 ttl=254 time=62 ms
  --- 100.3.1.1 ping statistics ---
    5 packet(s) transmitted
    5 packet(s) received
    0.00% packet loss
    round-trip min/avg/max = 62/62/62 ms
The agent server can access the P on the Internet.
----End
Configuration Files
l Configuration file of CE1
#
 sysname CE1
#
 vlan batch 30 50
#
interface Vlanif30
  ip address 10.1.1.1 255.255.255.0
#
interface Vlanif50
  ip address 100.3.1.2 255.255.255.0
#
interface GigabitEthernet1/0/0
 port hybrid pvid vlan 30
 port hybrid untagged vlan 30
#
interface GigabitEthernet2/0/0
 port hybrid pvid vlan 10
 port hybrid untagged vlan 10
#
bgp 65410
 peer 10.1.1.2 as-number 100
 #
 ipv4-family unicast
  undo synchronization
  import-route direct
  peer 10.1.1.2 enable
#
 ip route-static 0.0.0.0 0.0.0.0 10.1.1.2
#
return
l Configuration file of PE1
#
 sysname PE1
#
 vlan batch 10 30
#
ip vpn-instance vpn1
 route-distinguisher 100:1
 vpn-target 1:1 export-extcommunity
 vpn-target 1:1 import-extcommunity
#
 mpls lsr-id 1.1.1.1
 mpls
#
mpls ldp
#
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.
273