時間:2020-02-13來源:系統城作者:電腦系統城
#
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
#
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
#
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
注:本例子參照了華為的配置示例,不算全部原創,只是記錄下給需要的人參考。
2021-04-14
紅米路由器指示燈能關嗎? 小米路由器關指示燈的技巧2021-04-14
家里的wifi如何防止蹭網 簡單設置解決路由器蹭網問題2021-03-28
光貓和路由器一樣嗎?兩者有什么區別?最近想要在以太網連接屬性中設置本地IP地址,但是發現打開網絡連接顯示“該文件夾為空”,找不到以太網的本地連接圖標和wifi無線網絡圖標,不知道如何恢復。那么Win10系統網絡連接文件夾為空怎么辦?下面裝機之家分享一下解...
2021-02-01
已連wifi怎么查看密碼 如何查看連接的wifi密碼,wifi已是在我們的生活中占了很大部分,給我們帶來極大的方便,已是朋友會來自己家里也會進行連接,但也有記性不好的時候會忘了wifi的密碼,但自己手機已連接上了朋友的就連不上...
2020-10-03