R3303-HP HSR6800 Routers Layer 3 - IP Services Configuration Guide
283
Device Interface IP Address
Device
Interface
IP Address
Router A GE3/1/1 11.1.1.1/24 Router B GE3/1/1 11.1.1.2/24
GE3/1/2 10.1.1.1
/
24
GE3/1/2 10.1.1.2
/
24
GE3/1/3 192.168.11.1/24
GE3/1/3 192.168.11.2
/
24
Tunnel0 172.168.1.1/24 Tunnel0 172.168.2.2/24
Tunnel1 192.168.22.1/24
Tunnel1
192.168.22.2/24
Router C GE3/1/1 11.1.1.3
/
24
Router C
Tunnel0
172.168.1.3/24
GE3/1/2 192.168.12.1/24 Tunnel1 172.168.2.3/24
Configuration procedure
1. Configure IP addresses and masks for interfaces according to Figure 122. (Details not shown.)
2. Configure Router A:
# Create a tunnel interface Tunnel 1 and configure an IP address for it.
<RouterA> system-view
[RouterA] interface tunnel 1
[RouterA-Tunnel1] ip address 192.168.22.1 255.255.255.0
# Configure the tunnel encapsulation mode of the tunnel interface Tunnel 1 as GRE over IPv4.
[RouterA-Tunnel1] tunnel-protocol gre
# Configure the source and destination IP addresses of the tunnel interface Tunnel 1.
[RouterA-Tunnel1] source 10.1.1.1
[RouterA-Tunnel1] destination 10.1.1.2
[RouterA-Tunnel1] quit
# Create a tunnel interface Tunnel 0 and configure an IP address for it.
[RouterA] interface tunnel 0
[RouterA-Tunnel0] ip address 172.168.1.1 255.255.255.0
# Configure the tunnel encapsulation mode of the tunnel interface Tunnel 0 as P2MP GRE.
[RouterA-Tunnel0] tunnel-protocol gre p2mp
# Configure the mask of the branch network connected to the tunnel interface Tunnel 0 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
# Configure the tunnel interface Tunnel1 as the backup interface of the tunnel interface Tunnel 0.
[RouterA-Tunnel0] gre p2mp backup-interface tunnel 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
3. Configure Router B:
# Create a tunnel interface Tunnel 0 and configure an IP address for it.
<RouterB> system-view