tunnel-protocol gre
 source 30.1.1.2
 destination 20.1.1.1
#
ospf 1
 area 0.0.0.0
  network 30.1.1.0 0.0.0.255
#
ospf 2
 area 0.0.0.0
  network 40.1.1.0 0.0.0.255
  network 10.2.1.0 0.0.0.255
#
return
2.7.3 Example for Configuring the CE to Access a VPN Through a
GRE Tunnel of the Public Network
Networking Requirements
As shown in Figure 2-8,
l PE1 and PE2 are located in the MPLS backbone network.
l CE1 is connected to PE1 through Switch A.
l CE2 is connected to PE2 directly.
l CE1 and CE2 belong to the same VPN.
CE1 and CE2 are required to interwork with each other.
Figure 2-8 Networking diagram in which CEs access a VPN through the GRE tunnel of the
public network
Tunnel
PC1 PC1
GE1/0/0
GE1/0/0
GE1/0/0
GE1/0/0
GE1/0/0
GE2/0/0
GE2/0/0
GE2/0/0
GE2/0/0
GE2/0/0
CE1 CE2
PE1
PE2
Tunnel1/0/0
Tunnel2/0/0
SwitchA
Loopback1
Loopback1
Device
Interface VLANIF interface IP address
CE1 GigabitEthernet1/0/0 VLANIF 10 21.1.1.2/24
Quidway S7700 Smart Routing Switch
Configuration Guide - VPN 2 GRE Configuration
Issue 01 (2011-07-15) Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
84