Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

[Cisco] GRE Tunnel Tunnel

2025-03-26 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >

Share

Shulou(Shulou.com)06/01 Report--

Description: company A's PC1 network segment 192.168.1.0 go 24 and company B's PC2 network segment 172.16.2.0 go 24 to establish GRE tunnel communication

Configuration ideas:

1. R1 and R2 should be able to communicate-- R1 and R2 should respectively configure a default route to ISP

2. Create a new tunnel port, set IP, and the two sides should be in the same network segment; configure source, that is, public network egress IP and destination, that is, each other's public network egress ip

3. The tunnel of both parties has been established and a route needs to be established. The configuration of the PC1 network segment to the PC2 network segment, the PC2 network segment to the PC1 network segment and the next hop address to the peer ip; ends at this time.

The topology diagram is as follows:

Configuration Information:

R1:

Config t

Ip route 0.0.0.0 0.0.0.0 100.1.1.2

Int g0/1

No sh

Ip add 100.1.1.1 255.255.255.252

Exit

Int f0/1

No sh

Ip add 192.168.1.1 255.255.255.0

Exit

Int tunnel 0

No sh

Ip add 10.10.10.1 255.255.255.0

Tunnel source 100.1.1.1

Tunnel destination 200.2.2.2

Tunnel mode gre ip

Exit

Ip route 172.16.2.0 255.255.255.0 10.10.10.2

Exit

ISP:

Config t

Int g0/1

No sh

Ip add 100.1.1.2 255.255.255.252

Exit

Int g0/2

No sh

Ip add 200.2.2.1 255.255.255.252

Exit

R3:

Config t

Ip route 0.0.0.0 0.0.0.0 200.2.2.1

Int g0/2

No sh

Ip add 200.2.2.2 255.255.255.252

Exit

Int f0/1

No sh

Ip add 172.16.2.1 255.255.255.0

Exit

Int tunnel 0

No sh

Ip add 10.10.10.2 255.255.255.0

Tunnel source 200.2.2.2

Tunnel destination 100.1.1.1

Tunnel mode gre ip

Exit

Ip route 192.168.1.0 255.255.255.0 10.10.10.2

Exit

You need to check the process of ping. You can open debug and debug ip packet

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Network Security

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report