GRE VPN(Generic Routing Encapsulation)即通用路由封裝協議,是對某些網路層協議(如IP和IPX)的資料報進行封裝,使這些被封裝的資料報能夠在另一個網路層協議(如IP)中傳輸,
GRE是VPN(Virtual Private Network)的第三層隧道協議,即在協議層之間采用了一種被稱之為Tunnel(隧道)的技術,
拓撲圖

配置思路
1. IP 、子網掩碼、網關配置
2. 給出口設備配置預設路由指向 ISO 運營商
3. 配置GRE
R1
sys
un in en
sys R1
int g0/0/0
ip address 172.16.1.254 24
int g0/0/2
ip address 100.100.100.1 30
q
下一跳
ip route-static 0.0.0.0 0 100.100.100.2
GRE
interface Tunnel0/0/1
ip address 1.1.1.1 255.255.255.252
tunnel-protocol gre
source 100.100.100.1
destination 200.200.200.1
q
ip route-static 172.16.1.0 24 Tunnel 0/0/1
ISO
sys
un in en
sys ISO
int g0/0/2
ip address 100.100.100.2 30
int g0/0/1
ip address 200.200.200.2 30
q
R3
sys
un in en
sys R3
int g0/0/0
ip address 192.168.1.254 24
int g0/0/1
ip address 200.200.200.1 30
q
下一跳
ip route-static 0.0.0.0 0 200.200.200.2
GRE
interface Tunnel0/0/1
ip address 1.1.1.2 255.255.255.252
tunnel-protocol gre
source 200.200.200.1
destination 100.100.100.1
q
ip route-static 192.168.1.0 24 Tunnel 0/0/1
驗證

轉載請註明出處,本文鏈接:https://www.uj5u.com/ruanti/398646.html
標籤:其他
上一篇:計算機網路重要/易混知識點匯總
