#
ospf 1
area 0.0.0.0
network 30.1.1.0 0.0.0.255
#
ip route-static 10.1.1.0 255.255.255.0 Tunnel1/0/1
#
return
2.7.2 Example for Configuring the Dynamic Routing Protocol on the
GRE Tunnel
Networking Requirements
As shown in Figure 2-6, S9300-A, S9300-B, and S9300-C are on the VPN backbone network.
OSPF runs among the S9300s.
GRE is used between S9300-A and S9300-C to implement the interworking between PC1 and
PC2.
PC1 and PC2 use S9300-A and S9300-C as their default gateways.
OSPF is enabled on the tunnel interfaces. OSPF process 1 is used for the VPN backbone network
and OSPF process 2 is used for user access.
Figure 2-6 Networking diagram for configuring dynamic routing protocol
S9300-A S9300-C
PC1
PC2
Tunnel
GE1/0/0
GE1/0/0
GE2/0/0
GE2/0/0
Tunnel1/0/1
Tunnel2/0/1
GE1/0/0 GE2/0/0
OSPF 1
OSPF 2 OSPF 2
S9300-B
S9300
Interface VLANIF interface IP address
S9300-A GigabitEthernet1/0/0 VLANIF 10 20.1.1.1/24
GigabitEthernet2/0/0 VLANIF 30 10.1.1.2/24
S9300-B GigabitEthernet1/0/0 VLANIF 10 20.1.1.2/24
GigabitEthernet2/0/0 VLANIF 20 30.1.1.1/24
S9300-C GigabitEthernet1/0/0 VLANIF 20 30.1.1.2/24
GigabitEthernet2/0/0 VLANIF 40 10.2.1.2/24
2 GRE Configuration
Quidway S9300 Terabit Routing Switch
Configuration Guide - VPN
2-20 Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 03 (2009-08-20)