H3C MSR router GRE over IPv4 typical configuration case

Source: Internet
Author: User

I. Networking requirements
Router H3C A and router H3C B are connected over the Internet. Two private subnets, Group 1 and Group 2, are interconnected through a GRE tunnel between the two routers.

2. The following figure shows the network topology.
 

650) this. width = 650; "border =" 0 "alt =" "src =" http://www.bkjia.com/uploads/allimg/131227/02230QQ8-0.jpg "/>


3. configuration steps


Before starting the following configuration, make sure that the routes between H3C A and H3C B are reachable.

(1) Configure router H3C

# Configure the interface Ethernet1/1.

<H3C A> system-view

[H3C A] interface ethernet 1/1

[H3C A-Ethernet1/1] ip address 10.1.1.1 255.255.255.0

[H3C Co., A-Ethernet1/1] quit

# Configure the actual physical interface of the serial/0 tunnel interface ).

[H3C A] interface serial 2/0

[H3C A-Serial2/0] ip address 1.1.1.1 255.255.255.0

[H3C A-Serial2/0] quit

# Create Tunnel0 interface.

[H3C A] interface tunnel 0

# Configure the IP address of the Tunnel0 interface.

[H3C A-Tunnel0] ip address 10.1.2.1 255.255.255.0

# Configure the Tunnel encapsulation mode.

[H3C A-Tunnel0] tunnel-protocol gre

# Configure the source IP address of the Tunnel0 interface (IP address of serial/0 ).

[H3C A-Tunnel0] source 1.1.1.1

# Configure the IP address of the destination address of the Tunnel0 interface (the IP address of serial/1 of H3C B ).

[H3C A-Tunnel0] destination 2.2.2.2

[H3C A-Tunnel0] quit

# Configure A static route from H3C A to Group 2 through Tunnel0 interface.

[H3C A] ip route-static 10.1.3.0 255.255.255.0 tunnel 0

(2) Configure router H3C B

# Configure the interface Ethernet1/1.

<H3C B> system-view

[H3C B] API ethernet 1/1

[H3C B-Ethernet1/1] ip address 10.1.3.1 255.255.255.0

[H3C Co., B-Ethernet1/1] quit

# Configure the actual physical interface of the serial/1 tunnel interface ).

[H3C B] interface serial 2/1

[H3C B-Serial2/1] ip address 2.2.2.2 255.255.255.0

[H3C Co., B-Serial2/1] quit

# Create Tunnel0 interface.

[H3C B] interface tunnel 0

# Configure the IP address of the Tunnel0 interface.

[H3C B-Tunnel0] ip address 10.1.2.2 255.255.255.0

# Configure the Tunnel encapsulation mode.

[H3C B-Tunnel0] tunnel-protocol gre

# Configure the source IP address of the Tunnel0 interface serial/1 ).

[H3C B-Tunnel0] source 2.2.2.2

# Configure the IP address of the destination address of the Tunnel0 interface (H3C A's serial/0 ).

[H3C B-Tunnel0] destination 1.1.1.1

[H3C B-Tunnel0] quit

# Configure a static route from H3C B to Group 1 through Tunnel0 interface.

[H3C B] ip route-static 10.1.1.0 255.255.255.0 tunnel 0

Iv. Verify Configuration results

After completing the preceding configuration, view the Tunnel interface status of H3C A and H3C B respectively.

[H3C A] display interface tunnel 0

Tunnel0 current state: UP

Line protocol current state: UP

Description: Tunnel0 Interface

The Maximum Transmit Unit is 1476

Internet Address is 10.1.2.1/24 Primary

Encapsulation is TUNNEL, service-loopback-group ID not set.

Tunnel source 1.1.1.1, destination 2.2.2.2

Tunnel keepalive disabled

Tunnel protocol/transport GRE/IP

GRE key disabled

Checksumming of GRE packets disabled

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

Last clearing of counters: Never

Last 300 seconds input: 0 bytes/sec, 0 packets/sec

Last 300 seconds output: 0 bytes/sec, 0 packets/sec

10 packets input, 840 bytes

0 input error

10 packets output, 840 bytes

0 output error

[H3C B] display interface tunnel 0

Tunnel0 current state: UP

Line protocol current state: UP

Description: Tunnel0 Interface

The Maximum Transmit Unit is 1476

Internet Address is 10.1.2.2/24 Primary

Encapsulation is TUNNEL, service-loopback-group ID not set.

Tunnel source 2.2.2.2, destination 1.1.1.1

Tunnel keepalive disabled

Tunnel protocol/transport GRE/IP

GRE key disabled

Checksumming of GRE packets disabled

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

Last clearing of counters: Never

Last 300 seconds input: 2 bytes/sec, 0 packets/sec

Last 300 seconds output: 2 bytes/sec, 0 packets/sec

10 packets input, 840 bytes

0 input error

10 packets output, 840 bytes

0 output error

# From H3C B, Ping the address of the Ethernet1/1 interface on H3C.

[H3C B] ping 10.1.1.1

PING 10.1.1.1: 56 data bytes, press CTRL_C to break

Reply from 10.1.1.1: bytes = 56 Sequence = 1 ttl = 255 time = 2 MS

Reply from 10.1.1.1: bytes = 56 Sequence = 2 ttl = 255 time = 2 MS

Reply from 10.1.1.1: bytes = 56 Sequence = 3 ttl = 255 time = 2 MS

Reply from 10.1.1.1: bytes = 56 Sequence = 4 ttl = 255 time = 2 MS

Reply from 10.1.1.1: bytes = 56 Sequence = 5 ttl = 255 time = 2 MS

 

--- 10.1.1.1 ping statistics ---

5 packet (s) transmitted

5 packet (s) received

0.00% packet loss

Round-trip min/avg/max = 2/2/2 MS

Now, through the configuration in this case, we believe you are familiar with the GRE over IPv4 of the H3C MSR router. Welcome!

This article is from the "dripping water and stone" blog and will not be reposted!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.