系統城裝機大師 - 唯一官網:www.farandoo.com!

當前位置:首頁 > 網絡知識 > 網絡其他 > 詳細頁面

eNSP模擬器—IPsec配置實驗1

時間:2020-02-13來源:系統城作者:電腦系統城

1 拓撲圖

eNSP模擬器—IPsec配置實驗1

2 兩個PC配置

eNSP模擬器—IPsec配置實驗1

3 RouterA配置

#
 sysname RouterA
#
acl number 3101
 rule 5 permit ip source 10.1.1.0 0.0.0.255 destination 10.1.2.0 0.0.0.255
#
ipsec proposal tran1
 esp authentication-algorithm sha2-256
 esp encryption-algorithm aes-128 
#
ipsec policy map1 10 manual
 security acl 3101
 proposal tran1
 tunnel local 1.1.1.1
 tunnel remote 2.1.1.1
 sa spi inbound esp 54321
 sa string-key inbound esp cipher %^%#JvZxR2g8c;a9~FPN~n'$7`DEV&=G(=Et02P/%\*!%^%#
 sa spi outbound esp 12345
 sa string-key outbound esp cipher %^%#K{JG:rWVHPMnf;5\|,GW(Luq'qi8BT4nOj%5W5=)%^%#
#
interface GigabitEthernet0/0/0
 ip address 1.1.1.1 255.255.255.0
 ipsec policy map1
#
interface GigabitEthernet0/0/1
 ip address 10.1.1.1 255.255.255.0
#
ip route-static 2.1.1.0 255.255.255.0 1.1.1.2
ip route-static 10.1.2.0 255.255.255.0 1.1.1.2
#
return

4 RouterB配置

#
 sysname RouterB
#
acl number 3101
 rule 5 permit ip source 10.1.2.0 0.0.0.255 destination 10.1.1.0 0.0.0.255
#
ipsec proposal tran1
 esp authentication-algorithm sha2-256
 esp encryption-algorithm aes-128 
#
ipsec policy use1 10 manual
 security acl 3101
 proposal tran1
 tunnel local 2.1.1.1
 tunnel remote 1.1.1.1
 sa spi inbound esp 12345
 sa string-key inbound esp cipher %^%#IRFGEiFPJ1$&a'Qy,L*XQL_+*Grq-=yMb}ULZdS6%^%#
 sa spi outbound esp 54321
 sa string-key outbound esp cipher %^%#(3fr1!&6O=)!GN#~{)n,2fq>4#4+%;lMTs5(]:c)%^%#
#
interface GigabitEthernet0/0/0
 ip address 2.1.1.1 255.255.255.0
 ipsec policy use1
#
interface GigabitEthernet0/0/1
 ip address 10.1.2.1 255.255.255.0
#
ip route-static 1.1.1.0 255.255.255.0 2.1.1.2
ip route-static 10.1.1.0 255.255.255.0 2.1.1.2
#
return

5 Internet配置

#
sysname Internet
#
interface  GigabitEthernet  0/0/1
 ip address  2.1.1.2 255.255.255.0
#
interface  GigabitEthernet  0/0/0
 ip address  1.1.1.2 255.255.255.0
#
ip route-static 10.1.2.0 255.255.255.0 2.1.1.1
ip route-static 10.1.1.0 255.255.255.0 1.1.1.1
#
return

注:本例子參照了華為的配置示例,不算全部原創,只是記錄下給需要的人參考。

分享到:

相關信息

  • 網絡連接文件夾為空怎么辦?解決Win10網絡連接里沒有以太網圖標

    最近想要在以太網連接屬性中設置本地IP地址,但是發現打開網絡連接顯示“該文件夾為空”,找不到以太網的本地連接圖標和wifi無線網絡圖標,不知道如何恢復。那么Win10系統網絡連接文件夾為空怎么辦?下面裝機之家分享一下解...

    2021-02-01

  • 已連wifi怎么查看密碼 如何查看連接的wifi密碼

    已連wifi怎么查看密碼 如何查看連接的wifi密碼,wifi已是在我們的生活中占了很大部分,給我們帶來極大的方便,已是朋友會來自己家里也會進行連接,但也有記性不好的時候會忘了wifi的密碼,但自己手機已連接上了朋友的就連不上...

    2020-10-03

系統教程欄目

欄目熱門教程

人氣教程排行

站長推薦

熱門系統下載

jlzzjlzz亚洲乱熟在线播放