[S9300-A] ospf 2
[S9300-A-ospf-2] area 0
[S9300-A-ospf-2-area-0.0.0.0] network 40.1.1.0 0.0.0.255
[S9300-A-ospf-2-area-0.0.0.0] network 10.1.1.0 0.0.0.255
[S9300-A-ospf-2-area-0.0.0.0] quit
[S9300-A-ospf-2] quit
# Configure S9300-C.
[S9300-C] ospf 2
[S9300-C-ospf-2] area 0
[S9300-C-ospf-2-area-0.0.0.0] network 40.1.1.0 0.0.0.255
[S9300-C-ospf-2-area-0.0.0.0] network 10.2.1.0 0.0.0.255
[S9300-C-ospf-2-area-0.0.0.0] quit
[S9300-C-ospf-2] quit
Step 5 Verify the configuration.
# Run the displayip routing-table command on S9300-A and S9300-C. You can see the OSPF
route from the tunnel interface to the user-side network segment of the peer. In addition, the next
hop on the route to the destination physical address (30.1.1.0/24) of the tunnel is not a tunnel
interface.
# 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 : 11 Routes : 11
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
10.2.1.0/24 OSPF 10 2 D 40.1.1.2 Tunnel1/0/1
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
40.1.1.0/24 Direct 0 0 D 40.1.1.1 Tunnel1/0/1
40.1.1.1/32 Direct 0 0 D 127.0.0.1 InLoopBack0
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
# PC1 and PC2 can ping each other.
----End
Configuration Files
l Configuration file of S9300-A
#
sysname S9300-A
#
vlan batch 10 30
#
interface Vlanif10
ip address 20.1.1.1 255.255.255.0
#
interface Vlanif30
ip address 10.1.1.2 255.255.255.0
#
interface GigabitEthernet1/0/0
port hybrid pvid vlan 10
port hybrid untagged vlan 10
#
interface GigabitEthernet2/0/0
port hybrid pvid vlan 10
2 GRE Configuration
Quidway S9300 Terabit Routing Switch
Configuration Guide - VPN
2-22 Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 03 (2009-08-20)