雲計算GRE實驗1

2021-10-19 07:33:22 字數 2628 閱讀 5290

gre實驗:

路由器cq與路由器sh之間通過isp相連。執行ip協議的私有網路的兩個子網cq和sh,通過在兩台路由器之間使用gre over ipsec vpn建立隧道實現私網互聯。

拓撲圖如圖所示:

路由器ar3的配置命令:

system-view

sysname isp

inte***ce g0/0/0

ip address 6.6.6.2 29

inte***ce g0/0/1

ip address 16.16.16.2 29

inte***ce loopback 100

ip address 99.99.99.99 32

路由器cq配置命令:

system-view

sysname cq

inte***ce g0/0/0

ip address 6.6.6.1 29

inte***ce g0/0/2

ip address 192.168.6.1 24

ip route-static 0.0.0.0 0.0.0.0 6.6.6.2

inte***ce tunnel0/0/1

ip address 10.10.10.1 30

tunnel-protocol gre

source 6.6.6.1

destination 16.16.16.1

ip route-static 192.168.16.0 255.255.255.0 tunnel0/0/1

acl 2000

rule 5 permit source any

inte***ce g0/0/0

nat outbound 2000

rip

version 2

network 10.0.0.0

network 192.168.6.0

ospf

area 0

network 10.10.10.0 0.0.0.3

network 192.168.6.0 0.0.0.255

ipsec proposal lance-proposal

esp authentication-algorithm sha1

ike peer lance-peer v2

pre-shared-key cipher lucy

ipsec profile lance

ike-peer lance-peer

proposal lance-proposal

inte***ce g0/0/2

ip address 192.168.6.1 255.255.255.0

inte***ce g0/0/0

ip address 6.6.6.1 255.255.255.0

路由器sh的配置命令:

system-view

sysname sh

inte***ce g0/0/1

ip address 16.16.16.1 29

inte***ce g0/0/2

ip address 192.168.16.1 24

ip route-static 0.0.0.0 0.0.0.0 16.16.16.2

inte***ce tunnel0/0/1

ip address 10.10.10.1 30

tunnel-protocol gre

source 16.16.16.1

destination 6.6.6.1

ip route-static 192.168.6.0 255.255.255.0 tunnel0/0/1

acl 2000

rule 5 permit source any

inte***ce g0/0/1

nat outbound 2000

rip

version 2

network 10.0.0.0

network 192.168.16.0

ospf

area 0

network 10.10.10.0 0.0.0.3

network 192.168.16.0 0.0.0.255

ipsec proposal lance-proposal

esp authentication-algorithm sha1

ike peer lance-peer v2

pre-shared-key cipher lucy

ipsec profile lance

ike-peer lance-peer

proposal lance-proposal

inte***ce g0/0/2

ip address 192.168.16.1 255.255.255.0

inte***ce g0/0/0

ip address 16.16.16.1 255.255.255.0

菜菜的**,希望能夠幫助到你喲!

華為 GRE實驗(GRE隧道)

每日一句 we are all in the gutter,but some of us arelooking at the stars.我們都生活在陰溝裡,但仍有人仰望星空。奧斯卡 王爾德 公司1和公司2之間通過gre隧道傳輸192.168.10.0 24 和 192.168.20.0 24資料流...

python雲計算1 python雲計算1

雲計算介紹 雲計算 cloud computing 是由分布式計算 distributed computing 並 處理 parallel computing 格計算 grid computing 發展來的 是 種新興的商業計算模型。前,對於雲計算的認識在不斷的發展變化,雲計算沒仍沒 有普遍 致的定...

雲計算專業IPsec實驗

ipsec實驗 拓撲圖如圖所示 路由器配置命令 ar1 system view sysname isp inte ce g0 0 0 ip address 6.6.6.2 29 inte ce g0 0 1 ip address 16.16.16.2 29 ar2 system view sysna...