beautypg.com

Verification, Network requirements – H3C Technologies H3C SecPath F1000-E User Manual

Page 25

background image

9

[DeviceB–GigabitEthernet1/1] quit

# Configure an IP address for interface GigabitEthernet 1/2.

[DeviceB] interface gigabitethernet 1/2

[DeviceB–GigabitEthernet1/2] ip address 192.168.12.1 255.255.255.0

[DeviceB–GigabitEthernet1/2] quit

# Create interface Tunnel 0 and configure an IP address for it.

[DeviceB] interface tunnel 0

[DeviceB-Tunnel0] ip address 192.168.22.2 255.255.255.0

# Configure the tunnel encapsulation mode as GRE over IPv4.

[DeviceB-Tunnel0] tunnel-protocol gre

# Configure the source IP address of interface Tunnel 0.

[DeviceB-Tunnel0] source 11.1.1.2

# Configure the destination IP address of interface Tunnel 0.

[DeviceB-Tunnel0] destination 11.1.1.1

[DeviceB-Tunnel0] quit

# Configure a static route to the headquarters network with the outgoing interface being Tunnel 0.

[DeviceB] ip route-static 192.168.11.0 255.255.255.0 tunnel 0

Verification

# After the above configurations, view the tunnel entry information on Device A. No tunnel entry exists.

[DeviceA] display gre p2mp tunnel-table interface tunnel 0

Dest Addr Mask Tunnel Dest Addr Gre Key

# Ping Host A from Host B. The operation succeeds.
# View tunnel entry information on Device A again. As the branch has initiated the establishment of the

tunnel by sending packets to the headquarters, a tunnel entry should be installed, as shown in the

following output information:

[DeviceA] display gre p2mp tunnel-table interface tunnel 0

Dest Addr Mask Tunnel Dest Addr Gre Key

192.168.12.0 255.255.255.0 11.1.1.2

Configuration Example for P2MP GRE Tunnel Backup at the
Headquarters

Network requirements

As shown in

Figure 16

, the headquarters uses two gateways at the egress of the internal network, with

Device B for backup. Two GRE tunnels are created on Device C, the gateway at the branch, one for

connecting Device A and the other for connecting Device B. Normally, packets are forwarded along the
tunnel between Device A and Device C. When a failure occurs along this path, the tunnel between

Device B and Device C is used to transmit packets.
To meet the above requirements, you need to establish a P2MP GRE tunnel with the branch on both

Device A and Device B, establish a GRE over IPv4 tunnel between Device A and Device B, and on Device

A configure the tunnel interface of the GRE over IPv4 tunnel as the backup interface of the P2MP GRE

tunnel interface. Thus, when Device A cannot find the corresponding tunnel entry for a packet, it delivers
the packet to Device B, which then forwards the packet to Device C.