Quidway S7700 Smart Routing Switch
Configuration Guide - VPN
[PE-bgp] peer 2.2.2.9 as-number 100
[PE-bgp] peer 2.2.2.9 connect-interface loopback 1
[PE-bgp] ipv4-family vpnv4
[PE-bgp-af-vpnv4] peer 2.2.2.9 enable
[PE-bgp-af-vpnv4] quit
[PE-bgp] quit
Step 5 Configure the SPE.
# Configure the VPN instance.
[SPE] ip vpn-instance vpna
[SPE-vpn-instance-vpna] route-distinguisher 200:1
[SPE-vpn-instance-vpna] vpn-target 1:1
[SPE-vpn-instance-vpna] quit
# Specify the UPE for the SPE.
[SPE] bgp 100
[SPE-bgp] ipv4-family vpnv4
[SPE-bgp-af-vpnv4] peer 1.1.1.9 upe
# Advertise the default route of the VPN instance to the UPE.
[SPE-bgp-af-vpnv4] peer 1.1.1.9 default-originate vpn-instance vpna
[SPE-bgp-af-vpnv4] quit
Step 6 Verify the configuration.
After the configuration, CE1 has no route to the network segment of the interface on CE2, but
it has a default route with the next hop being UPE. CE2 has a BGP route to the network segment
of the interface on CE1. CE1 and CE2 can ping each other.
<CE1> display ip routing-table
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Routing Tables: Public
Destination/Mask
127.255.255.255/32
255.255.255.255/32
[CE1] ping 10.2.1.1
PING 10.2.1.1: 56
--- 10.2.1.1 ping statistics ---
[CE2] display ip routing-table
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Routing Tables: Public
Issue 01 (2011-07-15)
Destinations : 8
Proto
0.0.0.0/0
BGP
10.1.1.0/24
Direct 0
10.1.1.1/32
Direct 0
10.1.1.255/32
Direct 0
127.0.0.0/8
Direct 0
127.0.0.1/32
Direct 0
Direct 0
Direct 0
data bytes, press CTRL_C to break
Reply from 10.2.1.1: bytes=56 Sequence=1 ttl=253 time=85 ms
Reply from 10.2.1.1: bytes=56 Sequence=2 ttl=253 time=70 ms
Reply from 10.2.1.1: bytes=56 Sequence=3 ttl=253 time=57 ms
Reply from 10.2.1.1: bytes=56 Sequence=4 ttl=253 time=66 ms
Reply from 10.2.1.1: bytes=56 Sequence=5 ttl=253 time=55 ms
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 55/66/85 ms
Destinations : 8
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Routes : 8
Pre
Cost
Flags
255
0
D
0
D
0
D
0
D
0
D
0
D
0
D
0
D
Routes : 8
3 BGP MPLS IP VPN Configuration
NextHop
Interface
10.1.1.2
Vlanif30
10.1.1.1
Vlanif30
127.0.0.1
InLoopBack0
127.0.0.1
InLoopBack0
127.0.0.1
InLoopBack0
127.0.0.1
InLoopBack0
127.0.0.1
InLoopBack0
127.0.0.1
InLoopBack0
241