EasyManuals Logo
Home>HP>Network Router>FlexNetwork MSR2003

HP FlexNetwork MSR2003 User Manual

HP FlexNetwork MSR2003
517 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #340 background imageLoading...
Page #340 background image
326
GRE configuration examples
Configuring an IPv4 over IPv4 GRE tunnel
Network requirements
Group 1 and Group 2 are two private IPv4 networks. The two networks both use private network
addresses and belong to the same VPN. Establish a GRE tunnel between Router A and Router B to
interconnect the two private IPv4 networks Group 1 and Group 2.
Figure 137 Network diagram
Configuration procedure
Before performing the following configuration, configure an IP address for each interface, and make
sure Router A and Router B can reach each other.
1. Configure Router A:
# Create a tunnel interface Tunnel 0, and specify the tunnel mode as GRE/IPv4.
<RouterA> system-view
[RouterA] interface tunnel 0 mode gre
# Configure an IP address for the tunnel interface.
[RouterA-Tunnel0] ip address 10.1.2.1 255.255.255.0
# Configure the source address of the tunnel interface as the IP address of GigabitEthernet
2/0/2 on Router A.
[RouterA-Tunnel0] source 1.1.1.1
# Configure the destination address of the tunnel interface as the IP address of GigabitEthernet
2/0/2 on Router B.
[RouterA-Tunnel0] destination 2.2.2.2
[RouterA-Tunnel0] quit
# Configure a static route from Router A through the tunnel interface to Group 2.
[RouterA] ip route-static 10.1.3.0 255.255.255.0 tunnel 0
2. Configure Router B:
# Create tunnel interface Tunnel 0 and specify the tunnel mode as GRE/IPv4.
<RouterB> system-view
[RouterB] interface tunnel 0 mode gre
# Configure an IP address for the tunnel interface.
[RouterB-Tunnel0] ip address 10.1.2.2 255.255.255.0
# Configure the source address of the tunnel interface as the IP address of interface
GigabitEthernet 2/0/2 on Router B.
[RouterB-Tunnel0] source 2.2.2.2
# Configure the destination address of the tunnel interface as the IP address of the interface
GigabitEthernet 2/0/2 on Router A.
[RouterB-Tunnel0] destination 1.1.1.1
[RouterB-Tunnel0] quit
# Configure a static route from Router B through the tunnel interface to Group 1.
IPv4
Group 2
IPv4
Group 1
GE2/0/1
10.1.1.1/24
GE2/0/1
10.1.3.1/24
Tunnel0
10.1.2.1/24
GE2/0/2
1.1.1.1/24
GE2/0/2
2.2.2.2/24
Internet
GRE tunnel
Tunnel0
10.1.2.2/24
Router A Router B

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the HP FlexNetwork MSR2003 and is the answer not in the manual?

HP FlexNetwork MSR2003 Specifications

General IconGeneral
BrandHP
ModelFlexNetwork MSR2003
CategoryNetwork Router
LanguageEnglish

Related product manuals