[S9300-A-Vlanif10] quit
[S9300-A] interface vlanif 30
[S9300-A-Vlanif30] ip address 10.1.1.2 24
[S9300-A-Vlanif30] quit
The configurations of S9300-B and S9300-C are similar to the configuration of S9300-A, and
are not mentioned here.
Step 2 Configure IGP on the VPN backbone network.
# Configure S9300-A.
[S9300-A] ospf 1
[S9300-A-ospf-1] area 0
[S9300-A-ospf-1-area-0.0.0.0] network 20.1.1.0 0.0.0.255
[S9300-A-ospf-1-area-0.0.0.0] quit
[S9300-A-ospf-1] quit
The configurations of S9300-B and S9300-C are similar to the configuration of S9300-A, and
are not mentioned here.
# Run the display ip routing-table command on S9300-A and S9300-C. You can find that they
learn the OSPF routes destined for the network segment of the peer.
# Take S9300-A for example. The information is displayed as follows:
[S9300-A] display ip routing-table
Route Flags: R - relied, D - download to fib
------------------------------------------------------------------------------
Routing Tables: Public
Destinations : 10 Routes : 10
Destination/Mask Proto Pre Cost Flags NextHop Interface
10.1.1.0/24 Direct 0 0 D 10.1.1.2 Vlanif30
10.1.1.2/32 Direct 0 0 D 127.0.0.1 InLoopBack0
20.1.1.0/24 Direct 0 0 D 20.1.1.1 Vlanif10
20.1.1.1/32 Direct 0 0 D 127.0.0.1 InLoopBack0
20.1.1.2/32 Direct 0 0 D 20.1.1.2 Vlanif10
30.1.1.0/24 OSPF 10 2 D 20.1.1.2 Vlanif10
127.0.0.0/8 Direct 0 0 D 127.0.0.1 InLoopBack0
127.0.0.1/32 Direct 0 0 D 127.0.0.1 InLoopBack0
127.255.255.255/32 Direct 0 0 D 127.0.0.1 InLoopBack0
255.255.255.255/32 Direct 0 0 D 127.0.0.1 InLoopBack0
Step 3 Configure the tunnel interface.
# Configure S9300-A.
[S9300A] interface tunnel 1/0/1
[S9300-A-Tunnel1/0/1] tunnel-protocol gre
[S9300-A-Tunnel1/0/1] ip address 40.1.1.1 255.255.255.0
[S9300-A-Tunnel1/0/1] source 20.1.1.1
[S9300-A-Tunnel1/0/1] destination 30.1.1.2
[S9300-A-Tunnel1/0/1] quit
# Configure S9300-C.
[S9300-C] interface tunnel 1/0/1
[S9300-C-Tunnel1/0/1] tunnel-protocol gre
[S9300-C-Tunnel1/0/1] ip address 40.1.1.2 255.255.255.0
[S9300-C-Tunnel1/0/1] source 30.1.1.2
[S9300-C-Tunnel1/0/1] destination 20.1.1.1
[S9300-C-Tunnel1/0/1] quit
# After the configuration, the status of tunnel interfaces is Up, and the tunnel interfaces can ping
each other.
# Take S9300-A for example. The information is displayed as follows:
Quidway S9300 Terabit Routing Switch
Configuration Guide - VPN 2 GRE Configuration
Issue 03 (2009-08-20) Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
2-17