R3303-HP HSR6800 Routers Layer 3 - IP Services Configuration Guide

281
[RouterA] interface tunnel 0
[RouterA-Tunnel0] ip address 192.168.22.1 255.255.255.0
# Configure the tunnel encapsulation mode as P2MP GRE.
[RouterA-Tunnel0] tunnel-protocol gre p2mp
# Configure the mask of the branch network as 255.255.255.0.
[RouterA-Tunnel0] gre p2mp branch-network-mask 255.255.255.0
# Set the tunnel entry aging time to 20 seconds.
[RouterA-Tunnel0] gre p2mp aging-time 20
# Configure the source IP address of the tunnel interface Tunnel 0.
[RouterA-Tunnel0] source 11.1.1.1
[RouterA-Tunnel0] quit
# Configure a static route to the branch network with the outgoing interface being the tunnel
interface Tunnel 0.
[RouterA] ip route-static 192.168.12.0 255.255.255.0 tunnel 0
2. Configure Router B:
# Configure an IP address for interface GigabitEthernet 3/0/1.
<RouterB> system-view
[RouterB] interface gigabitethernet 3/0/1
[RouterB–GigabitEthernet3/0/1] ip address 11.1.1.2 255.255.255.0
[RouterB–GigabitEthernet3/0/1] quit
# Configure an IP address for interface GigabitEthernet 3/0/2.
[RouterB] interface gigabitethernet 3/0/2
[RouterB–GigabitEthernet 3/0/2] ip address 192.168.12.1 255.255.255.0
[RouterB–GigabitEthernet 3/0/2] quit
# Create a tunnel interface Tunnel 0 and configure an IP address for it.
[RouterB] interface tunnel 0
[RouterB-Tunnel0] ip address 192.168.22.2 255.255.255.0
# Configure the tunnel encapsulation mode as GRE over IPv4.
[RouterB-Tunnel0] tunnel-protocol gre
# Configure the source IP address of the tunnel interface Tunnel 0.
[RouterB-Tunnel0] source 11.1.1.2
# Configure the destination IP address of the tunnel interface Tunnel 0.
[RouterB-Tunnel0] destination 11.1.1.1
[RouterB-Tunnel0] quit
# Configure a static route to the headquarters network with the outgoing interface being the tunnel
interface Tunnel 0.
[RouterB] ip route-static 192.168.11.0 255.255.255.0 tunnel 0
Verifying the configuration.
# Display the tunnel entry information on Router A. The output shows that no tunnel entry exists.
[RouterA] 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.