華為路由器 IPSec 與 GRE 結合實驗


二者結合的目的

GRE 支持單播、組播、廣播,IPSec 僅支持單播。GRE 不支持對於數據完整性以及身份認證的驗證功能,並且也不具備數據加密保護。而 IPSec 恰恰擁有強大的安全機制。達到了互補的功效!

實驗拓撲

各路由器配置

R1

sysname R1

ipsec proposal lance-proposal
esp authentication-algorithm sha1

ike peer lance-peer v2
pre-shared-key cipher huawei
 
ipsec profile lance
ike-peer lance-peer
proposal lance-proposal

interface GigabitEthernet0/0/0
ip address 192.168.1.1 255.255.255.0 

interface GigabitEthernet0/0/1
ip address 202.100.1.1 255.255.255.0 

interface Tunnel0/0/0
ip address 123.1.1.1 255.255.255.0 
tunnel-protocol gre
source 202.100.1.1
destination 61.128.1.1
gre key 1234
ipsec profile lance

ip route-static 61.128.1.0 255.255.255.0 202.100.1.10

R2

sysname R2

interface GigabitEthernet0/0/0
ip address 202.100.1.10 255.255.255.0 
interface GigabitEthernet0/0/1
ip address 61.128.1.10 255.255.255.0 

R3

sysname R3

ipsec proposal lance-proposal
esp authentication-algorithm sha1

ike peer lance-peer v2
pre-shared-key cipher huawei

ipsec profile lance
ike-peer lance-peer
proposal lance-proposal

interface GigabitEthernet0/0/0
ip address 10.0.0.1 255.255.255.0 

interface GigabitEthernet0/0/1
ip address 61.128.1.1 255.255.255.0 

interface Tunnel0/0/0
ip address 123.1.1.2 255.255.255.0 
tunnel-protocol gre
source 61.128.1.1
destination 202.100.1.1
gre key 1234
ipsec profile lance

ip route-static 0.0.0.0 0.0.0.0 61.128.1.10

抓包結果


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM