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
Configuration Roadmap
The configuration roadmap is as follows:
1. Run the dynamic routing protocol on the S9300s to implement interconnection.
2. Create tunnel interfaces on S9300-A and S9300-C and specify the source and destination
addresses of the tunnel. The source address is the IP address of the interface sending packets,
and the destination address is the IP address of the interface receiving packets.
3. Configure the IP address of the tunnel so that the tunnel supports the dynamic routing
protocol.
4. Configure the static route between S9300-A and its connected PCs, and between S9300-C
and its connected PCs to make the traffic between PC1 and PC2 transmitted through the
GRE tunnel.
5. Configure the egress of the static route as the local tunnel interface.
Data Preparation
To complete the configuration, you need the following data:
l IDs of the VLANs that the interfaces belong to, as shown in Figure 2-5
l IP address of VLANIF interfaces, as shown in Figure 2-5
l Data for configuring OSPF
l Source address and destination address of the GRE tunnel, and IP addresses of tunnel
interfaces
Procedure
Step 1 Assign the IP address to each interface.
<Quidway> system-view
[Quidway] sysname S9300-A
[S9300-A] vlan 10
[S9300-A-vlan10] quit
[S9300-A] vlan 30
[S9300-A-vlan30] quit
[S9300-A] interface GigabitEthernet 1/0/0
[S9300-A-GigabitEthernet1/0/0] port hybrid pvid vlan 10
[S9300-A-GigabitEthernet1/0/0] port hybrid untagged vlan 10
[S9300-A-GigabitEthernet1/0/0] quit
[S9300-A] interface GigabitEthernet 2/0/0
[S9300-A-GigabitEthernet2/0/0] port hybrid pvid vlan 30
[S9300-A-GigabitEthernet2/0/0] port hybrid untagged vlan 30
[S9300-A-GigabitEthernet2/0/0] quit
[S9300-A] interface vlanif 10
[S9300-A-Vlanif10] ip address 20.1.1.1 24
2 GRE Configuration
Quidway S9300 Terabit Routing Switch
Configuration Guide - VPN
2-16 Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 03 (2009-08-20)