[SPU]
ip route-static vpn-instance vpn-a 20.20.20.1 32 Eth-Trunk 0.20 20.20.20.1
[SPU]
ip route-static vpn-instance vpn-b 10.10.10.1 32 Eth-Trunk 0.10 10.10.10.1
Step 5
Verify the configuration.
Ping PC2 on PC1. The ping is successful.
----End
Configuration Files
l
Configuration file of switch
#
sysname Switch
#
vlan batch 10 20
#
interface Eth-Trunk0
port link-type trunk
undo port trunk allow-pass vlan 1
port trunk allow-pass vlan 10 20
#
interface GigabitEthernet1/0/4
port link-type access
port default vlan 10
#
interface GigabitEthernet1/0/6
port link-type trunk
undo port trunk allow-pass vlan 1
port trunk allow-pass vlan 20
#
interface XGigabitEthernet2/0/0
eth-trunk 0
#
interface XGigabitEthernet2/0/1
eth-trunk 0
#
return
l
Configuration file of the SPU on the switch
#
sysname SPU
#
interface Eth-Trunk0
#
interface Eth-Trunk 0.10
control-vid 10 dot1q-termination
dot1q termination vid 10
ip binding vpn-instance vpn-a
ip address 10.10.10.2 24
arp broadcast enable
#
interface Eth-Trunk 0.20
control-vid 20 dot1q-termination
dot1q termination vid 20
ip binding vpn-instance vpn-b
ip address 20.20.20.2 24
arp broadcast enable
#
interface XGigabitEthernet0/0/1
eth-trunk 0
#
interface XGigabitEthernet0/0/2
eth-trunk 0
#
ip route-static vpn-instance vpn-a 20.20.20.1 32 Eth-Trunk 0.20 20.20.20.1
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.
203