R3303-HP HSR6800 Routers Layer 3 - IP Services Configuration Guide
268
# Configure an IPv4 address for interface GigabitEthernet 2/1/1.
<RouterA> system-view
[RouterA] interface gigabitethernet 2/1/1
[RouterA-GigabitEthernet2/1/1] ip address 10.1.1.1 255.255.255.0
[RouterA-GigabitEthernet2/1/1] quit
# Configure an IPv4 address for interface Serial 2/2/0, the physical interface of the tunnel.
[RouterA] interface serial 2/2/0
[RouterA-Serial2/2/0] ip address 1.1.1.1 255.255.255.0
[RouterA-Serial2/2/0] quit
# Create a tunnel interface Tunnel 0.
[RouterA] interface tunnel 0
# Configure an IPv4 address for the tunnel interface Tunnel 0.
[RouterA-Tunnel0] ip address 10.1.2.1 255.255.255.0
# Configure the tunnel encapsulation mode.
[RouterA-Tunnel0] tunnel-protocol gre
# Configure the source address of the tunnel interface Tunnel 0 as the IP address of Serial 2/2/0.
[RouterA-Tunnel0] source 1.1.1.1
# Configure the destination address of the tunnel interface Tunnel 0 as the IP address of Serial
2/2/1 on Router B.
[RouterA-Tunnel0] destination 2.2.2.2
[RouterA-Tunnel0] quit
# Configure a static route from Router A through the tunnel interface Tunnel 0 to Group 2.
[RouterA] ip route-static 10.1.3.0 255.255.255.0 tunnel 0
2. Configure Router B:
# Configure an IPv4 address for interface GigabitEthernet 2/1/1.
<RouterB> system-view
[RouterB] interface gigabitethernet 2/1/1
[RouterB-GigabitEthernet2/1/1] ip address 10.1.3.1 255.255.255.0
[RouterB-GigabitEthernet2/1/1] quit
# Configure an IPv4 address for interface Serial 2/2/1, the physical interface of the tunnel.
[RouterB] interface serial 2/2/1
[RouterB-Serial2/2/1] ip address 2.2.2.2 255.255.255.0
[RouterB-Serial2/2/1] quit
# Create a tunnel interface Tunnel 0.
[RouterB] interface tunnel 0
# Configure an IP address for the tunnel interface Tunnel 0.
[RouterB-Tunnel0] ip address 10.1.2.2 255.255.255.0
# Configure the tunnel encapsulation mode.
[RouterB-Tunnel0] tunnel-protocol gre
# Configure the source address of the tunnel interface Tunnel 0 as the IP address of the interface
Serial 2/2/1.
[RouterB-Tunnel0] source 2.2.2.2
# Configure the destination address of the tunnel interface Tunnel 0 as the IP address of the
interface Serial 2/2/0 on Router A.
[RouterB-Tunnel0] destination 1.1.1.1