
Assign an IP address to each interface as shown in
. The specific configuration is not
mentioned here.
Step 2
Configure IGP for the VPN backbone network.
# Configure Router A.
[RouterA]
ospf 1
[RouterA-ospf-1]
area 0
[RouterA-ospf-1-area-0.0.0.0]
network 20.1.1.0 0.0.0.255
[RouterA-ospf-1-area-0.0.0.0]
quit
[RouterA-ospf-1]
quit
# Configure Router B.
[RouterB]
ospf 1
[RouterB-ospf-1]
area 0
[RouterB-ospf-1-area-0.0.0.0]
network 20.1.1.0 0.0.0.255
[RouterB-ospf-1-area-0.0.0.0]
network 30.1.1.0 0.0.0.255
[RouterB-ospf-1-area-0.0.0.0]
quit
[RouterB-ospf-1]
quit
# Configure Router C.
[RouterC]
ospf 1
[RouterC-ospf-1]
area 0
[RouterC-ospf-1-area-0.0.0.0]
network 30.1.1.0 0.0.0.255
[RouterC-ospf-1-area-0.0.0.0]
quit
[RouterC-ospf-1]
quit
After the configuration, run the
display ip routing-table
command on Router A and Router C.
You can find that they both learn the OSPF route to the network segment of the remote interface.
Take Router A as an example.
[RouterA]
display ip routing-table
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Routing Tables: Public
Destinations : 8 Routes : 8
Destination/Mask Proto Pre Cost Flags NextHop Interface
10.1.1.0/24 Direct 0 0 D 10.1.1.2
GigabitEthernet2/0/0
10.1.1.2/32 Direct 0 0 D 127.0.0.1 InLoopBack0
20.1.1.1/32 Direct 0 0 D 127.0.0.1 InLoopBack0
30.1.1.0/24 OSPF 10 2 D 20.1.1.2
GigabitEthernet1/0/0
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
Step 3
Configure the tunnel interface.
# Configure Router A.
[RouterA]
interface tunnel 0/0/1
[RouterA-Tunnel0/0/1]
ip address 40.1.1.1 24
[RouterA-Tunnel0/0/1]
source 20.1.1.1
[RouterA-Tunnel0/0/1]
destination 30.1.1.2
[RouterA-Tunnel0/0/1]
quit
# Configure Router C.
[RouterC]
interface tunnel 0/0/1
[RouterC-Tunnel0/0/1]
ip address 40.1.1.2 24
[RouterC-Tunnel0/0/1]
source 30.1.1.2
[RouterC-Tunnel0/0/1]
destination 20.1.1.1
[RouterC-Tunnel0/0/1]
quit
Huawei AR1200 Series Enterprise Routers
Configuration Guide - VPN
1 GRE Configuration
Issue 01 (2012-04-20)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
19