R3303-HP HSR6800 Routers Layer 3 - IP Services Configuration Guide
249
[RouterA-Tunnel1] source 2.1.1.1
# Specify the IP address of GigabitEthernet 2/0/2 of Router B as the destination address for
interface Tunnel 1.
[RouterA-Tunnel1] destination 3.1.1.1
[RouterA-Tunnel1] quit
# Configure a static route destined for the IP network Group 2 through interface Tunnel 1.
[RouterA] ip route-static 10.1.3.0 255.255.255.0 tunnel 1
• Configure Router B:
# Specify an IPv4 address for GigabitEthernet 2/0/1.
<RouterB> system-view
[RouterB] interface gigabitethernet 2/0/1
[RouterB-GigabitEthernet2/0/1] ip address 10.1.3.1 255.255.255.0
[RouterB-GigabitEthernet2/0/1] quit
# Specify an IPv4 address for GigabitEthernet 2/0/2, the physical interface of the tunnel.
[RouterB] interface gigabitethernet 2/0/2
[RouterB-GigabitEthernet2/0/2] ip address 3.1.1.1 255.255.255.0
[RouterB-GigabitEthernet2/0/2] quit
# Create interface Tunnel 2.
[RouterB] interface tunnel 2
# Specify an IPv4 address for interface Tunnel 2.
[RouterB-Tunnel2] ip address 10.1.2.2 255.255.255.0
# Configure the tunnel encapsulation mode as IPv4 over IPv4.
[RouterB-Tunnel2] tunnel-protocol ipv4-ipv4
# Specify the IP address of GigabitEthernet 2/0/2 as the source address for interface Tunnel 2.
[RouterB-Tunnel2] source 3.1.1.1
# Specify the IP address of GigabitEthernet 2/0/2 of Router A as the destination address for
interface Tunnel 2.
[RouterB-Tunnel2] destination 2.1.1.1
[RouterB-Tunnel2] quit
# Configure a static route destined for the IP network Group 1 through interface Tunnel 2.
[RouterB] ip route-static 10.1.1.0 255.255.255.0 tunnel 2
Verifying the configuration
# Display the status of the tunnel interfaces on Router A and Router B, respectively.
[RouterA] display interface tunnel 1
Tunnel1 current state: UP
Line protocol current state: UP
Description: Tunnel1 Interface
The Maximum Transmit Unit is 64000
Internet Address is 10.1.2.1/24 Primary
Encapsulation is TUNNEL, service-loopback-group ID not set
Tunnel source 2.1.1.1, destination 3.1.1.1
Tunnel protocol/transport IP/IP
Output queue : (Urgent queuing : Size/Length/Discards) 0/100/0
Output queue : (Protocol queuing : Size/Length/Discards) 0/500/0
Output queue : (FIFO queuing : Size/Length/Discards) 0/75/0