路由器-IPSec-Over-GRE典型配置_第1頁
路由器-IPSec-Over-GRE典型配置_第2頁
路由器-IPSec-Over-GRE典型配置_第3頁
路由器-IPSec-Over-GRE典型配置_第4頁
路由器-IPSec-Over-GRE典型配置_第5頁
已閱讀5頁,還剩3頁未讀 繼續(xù)免費閱讀

下載本文檔

版權說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權,請進行舉報或認領

文檔簡介

路由器-IPSec-Over-GRE典型配置【需求】分部1和分部2通過野蠻IPSec的方式連接到中心,采用IPSec-Over-GRE的方式,在tunnel上運行OSPF協(xié)議來實現(xiàn)總部和分部之間的互通?!窘M網(wǎng)圖】

【配置腳本】中心配置腳本#sysname#ikelocal-namecenter

/中心ike的local-name為:center/#routerid1.1.1.1#radiusschemesystem#domainsystem#ikepeerbranch1

/配置到分部1的ikepeer/exchange-modeaggressive

/設置IPSec為野蠻方式/pre-shared-keyabc

/預共享密鑰為abc/id-typename

/選擇名字作為ike協(xié)商過程中使用的ID/remote-namebranch1

/分部1的名字為branch1/#ikepeerbranch2

/配置到分部2的ikepeer/exchange-modeaggressivepre-shared-keyabcid-typenameremote-namebranch2#ipsecproposal1

/定義ipsecproposal/#ipsecpolicycenter10isakmp

/配置到分部1的ipsecpolicy/securityacl3001

/指定安全策略所引用的訪問控制列表號/ike-peerbranch1

/引用ikepeer/proposal1

/引用ipsecproposal/#ipsecpolicycenter20isakmp

/到分部2的配置和分部1的配置類似/securityacl3002ike-peerbranch2proposal1#aclnumber3001

/定義從中心到分部1的內(nèi)網(wǎng)數(shù)據(jù)流/rule0permitipsource192.168.1.00.0.0.255destination192.168.2.00.0.0.255aclnumber3002

/定義從中心到分部2的內(nèi)網(wǎng)數(shù)據(jù)流/rule0permitipsource192.168.1.00.0.0.255destination192.168.2.00.0.0.255#interfaceSerial2/0link-protocolpppipaddress202.101.1.2255.255.255.252#interfaceTunnel0

/配置中心和分部1之間的GREtunnel/ipaddress10.0.0.1255.255.255.252source202.101.1.2destination202.101.2.2ipsecpolicybranch1

/在tunnel0上應用IPSecpolicybranch1/#interfaceTunnel1

/配置中心和分部2之間的GREtunnel/ipaddress10.0.0.5255.255.255.252source202.101.1.2destination202.101.3.2ipsecpolicybranch2

/在tunnel1上應用IPSecpolicybranch2/#interfaceNULL0#interfaceLoopBack0ipaddress1.1.1.1255.255.255.255#interfaceEthernet0/0ipaddress192.168.1.1255.255.255.0

/中心的內(nèi)網(wǎng)地址/#ospf1area0.0.0.10

/分部1屬于area10/network10.0.0.00.0.0.3#area0.0.0.20

/分部2屬于area20/network10.0.0.40.0.0.3#area0.0.0.0

/總部屬于area0/network1.1.1.10.0.0.0network192.168.1.00.0.0.255#iproute-static0.0.0.00.0.0.0202.101.1.1preference60#user-interfacecon0user-interfacevty04#return分部1配置腳本===============================Interface:Tunnel0

pathMTU:64000===============================

-----------------------------

IPsecpolicyname:"branch1"

sequencenumber:10

mode:isakmp

-----------------------------

connectionid:8

encapsulationmode:tunnel

perfectforwardsecrecy:None

tunnel:

local

address:10.0.0.1

remoteaddress:10.0.0.2

flow:

(4timesmatched)

souraddr:192.168.1.0/255.255.255.0

port:0

protocol:IP

destaddr:192.168.2.0/255.255.255.0

port:0

protocol:IP

[inboundESPSAs]

spi:2701983530(0xa10cff2a)

proposal:ESP-ENCRYPT-DESESP-AUTH-MD5

saremainingkeyduration(bytes/sec):1887436664/2136

maxreceivedsequence-number:2

udpencapsulationusedfornattraversal:N

[outboundESPSAs]

spi:2132567950(0x7f1c678e)

proposal:ESP-ENCRYPT-DESESP-AUTH-MD5

saremainingkeyduration(bytes/sec):1887436632/2136

maxsentsequence-number:3

udpencapsulationusedfornattraversal:N===============================Interface:Tunnel1

pathMTU:64000===============================

-----------------------------

IPsecpolicyname:"branch2"

sequencenumber:10

mode:isakmp

-----------------------------

connectionid:9

encapsulationmode:tunnel

perfectforwardsecrecy:None

tunnel:

local

address:10.0.0.5

remoteaddress:10.0.0.6

flow:

(18timesmatched)

souraddr:192.168.1.0/255.255.255.0

port:0

protocol:IP

destaddr:192.168.3.0/255.255.255.0

port:0

protocol:IP

[inboundESPSAs]

spi:1612204948(0x60184b94)

proposal:ESP-ENCRYPT-DESESP-AUTH-MD5

saremainingkeyduration(bytes/sec):1887436188/2886

maxreceivedsequence-number:9

udpencapsulationusedfornattraversal:N

[outboundESPSAs]

spi:3432409622(0xcc966a16)

proposal:ESP-ENCRYPT-DESESP-AUTH-MD5

saremainingkeyduration(bytes/sec):1887436044/2886

maxsentsequence-number:10

udpencapsulationusedfornattraversal:N

3、中心路由表dispiprout

RoutingTable:publicnetDestination/Mask

ProtocolPre

Cost

Nexthop

Interface0.0.0.0/0

STATIC

60

0

202.101.1.1

Serial2/0/01.1.1.1/32

DIRECT

0

0

127.0.0.1

InLoopBack02.2.2.2/32

OSPF

10

1563

10.0.0.2

Tunnel03.3.3.3/32

OSPF

10

1563

10.0.0.6

Tunnel110.0.0.0/30

DIRECT

0

0

10.0.0.1

Tunnel010.0.0.1/32

DIRECT

0

0

127.0.0.1

InLoopBack010.0.0.4/30

DIRECT

0

0

10.0.0.5

Tunnel110.0.0.5/32

DIRECT

0

0

127.0.0.1

InLoopBack0127.0.0.0/8

DIRECT

0

0

127.0.0.1

InLoopBack0127.0.0.1/32

DIRECT

0

0

127.0.0.1

InLoopBack0192.168.1.0/24

DIRECT

0

0

192.168.1.1

LoopBack10192.168.1.1/32

DIRECT

0

0

127.0.0.1

InLoopBack0192.168.2.0/24

OSPF

10

1563

10.0.0.2

Tunnel0192.168.3.0/24

OSPF

10

1563

10.0.0.6

Tunnel1202.101.1.0/30

DIRECT

0

0

202.101.1.2

Serial2/0/0202.101.1.1/32

DIRECT

0

0

202.101.1.1

Serial2/0/0202.101.1.2/32

DIRECT

0

0

127.0.0.1

InLoopBack0

4、分部1的ikesa狀態(tài):dispikesa

connection-id

peer

flag

phase

doi

----------------------------------------------------------

27

10.0.0.1

RD|ST

1

IPSEC

28

10.0.0.1

RD|ST

2

IPSEC

flagmeaning

RD--READYST--STAYALIVERL--REPLACEDFD--FADINGTO—TIMEOUT

5、分部1的ipsecsa狀態(tài):dispipsecsa===============================Interface:Tunnel0

pathMTU:64000===============================

-----------------------------

IPsecpolicyname:"branch1"

sequencenumber:10

mode:isakmp

-----------------------------

connectionid:6

encapsulationmode:tunnel

perfectforwardsecrecy:None

tunnel:

local

address:10.0.0.2

remoteaddress:10.0.0.1

flow:

(4timesmatched)

souraddr:192.168.2.0/255.255.255.0

port:0

protocol:IP

destaddr:192.168.1.0/255.255.255.0

port:0

protocol:IP

[inboundESPSAs]

spi:2132567950(0x7f1c678e)

proposal:ESP-ENCRYPT-DESESP-AUTH-MD5

saremainingkeyduration(bytes/sec):1887436664/2054

maxreceivedsequence-number:2

udpencapsulationusedfornattraversal:N

[outboundESPSAs]

spi:2701983530(0xa10cff2a)

proposal:ESP-ENCRYPT-DESESP-AUTH-MD5

saremainingkeyduration(bytes/sec):1887436632/2054

maxsentsequence-number:3

udpencapsulationusedfornattraversal:N

6、分部1的路由表:dispiprout

RoutingTable:publicnetDestination/Mask

ProtocolPre

Cost

Nexthop

Interface0.0.0.0/0

STATIC

60

0

202.101.2.1

Serial2/0/01.1.1.1/32

OSPF

10

1563

10.0.0.1

Tunnel02.2.2.2/32

DIRECT

0

0

127.0.0.1

InLoopBack03.3.3.3/32

OSPF

10

3125

10.0.0.1

Tunnel010.0.0.0/30

DIRECT

0

0

10.0.0.2

Tunnel010.0.0.2/32

DIRECT

0

0

127.0.0.1

InLoopBack010.0.0.4/30

OSPF

10

3124

10.0.0.1

Tunnel0127.0.0.0/8

DIRECT

0

0

127.0.0.1

InLoopBack0127.0.0.1/32

DIRECT

0

0

127.0.0.1

InLoopBack0192.168.1.0/24

OSPF

10

1563

10.0.0.1

Tunnel0192.168.2.0/24

DIRECT

0

0

192.168.2.1

LoopBack10192.168.2.1/32

DIRECT

0

0

127.0.0.1

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
  • 4. 未經(jīng)權益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責。
  • 6. 下載文件中如有侵權或不適當內(nèi)容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論