手工隧道的原理_手工方式建立IPsec安全隧道

R1]dis curr

dis curr

#

sysname R1

#

acl number 3000

rule 5 permit ip source 10.1.1.0 0.0.0.255 destination 10.1.2.0 0.0.0.255

#

ipsec proposal h3c

esp authentication-algorithm sha1

esp encryption-algorithm 3des

#

ipsec policy hehe 10 manual

security acl 3000

proposal h3c

tunnel local 2.2.2.1

tunnel remote 2.2.3.1

sa spi inbound esp 123456

sa string-key inbound esp abc

sa spi outbound esp 123456

sa string-key outbound esp abc

#

interface Ethernet0/0/0

ip address 10.1.1.1 255.255.255.0

#

---- More ----

interface Serial0/0/0

---- More ----

link-protocol ppp

---- More ----

ip address 2.2.2.1 255.255.255.0

---- More ----

ipsec policy hehe

---- More ----

#

---- More ----

interface NULL0

---- More ----

#

---- More ----

aaa

---- More ----

authentication-scheme default

---- More ----

#

---- More ----

authorization-scheme default

---- More ----

#

---- More ----

accounting-scheme default

---- More ----

#

---- More ----

domain default

---- More ----

#

---- More ----

#

---- More ----

ospf 1

---- More ----

area 0.0.0.0

---- More ----

network 2.2.2.0 0.0.0.255

---- More ----

#

ip route-static 10.1.2.0 255.255.255.0 2.2.2.2

#

user-interface con 0

user-interface vty 0 4

user-interface vty 16 20

#

return

[R1]

sys

sys

Enter system view, return user view with Ctrl+Z.

[R2]dis curr

dis curr

#

sysname R2

#

interface Serial0/0/0

link-protocol ppp

ip address 2.2.2.2 255.255.255.0

#

interface Serial0/0/1

link-protocol ppp

ip address 2.2.3.2 255.255.255.0

#

interface NULL0

#

aaa

authentication-scheme default

#

authorization-scheme default

#

accounting-scheme default

#

domain default

#

#

---- More ----

ospf 1

---- More ----

area 0.0.0.0

---- More ----

network 2.2.2.0 0.0.0.255

---- More ----

network 2.2.3.0 0.0.0.255

---- More ----

#

---- More ----

user-interface con 0

---- More ----

user-interface vty 0 4

---- More ----

user-interface vty 16 20

---- More ----

#

---- More ----

return

---- More ----

[R3]dis curr

dis curr

#

sysname R3

#

acl number 3000

rule 5 permit ip source 10.1.2.0 0.0.0.255 destination 10.1.1.0 0.0.0.255

#

ipsec proposal h3c

esp authentication-algorithm sha1

esp encryption-algorithm 3des

#

ipsec policy hehe 10 manual

security acl 3000

proposal h3c

tunnel local 2.2.3.1

tunnel remote 2.2.2.1

sa spi inbound esp 123456

sa string-key inbound esp abc

sa spi outbound esp 123456

sa string-key outbound esp abc

#

interface Ethernet0/0/0

ip address 10.1.2.1 255.255.255.0

#

---- More ----

interface Serial0/0/0

---- More ----

link-protocol ppp

---- More ----

ip address 2.2.3.1 255.255.255.0

---- More ----

ipsec policy hehe

---- More ----

#

---- More ----

interface NULL0

---- More ----

#

aaa

---- More ----

authentication-scheme default

---- More ----

#

---- More ----

authorization-scheme default

---- More ----

#

---- More ----

accounting-scheme default

---- More ----

#

---- More ----

domain default

---- More ----

#

---- More ----

#

---- More ----

ospf 1

---- More ----

area 0.0.0.0

---- More ----

network 2.2.3.0 0.0.0.255

---- More ----

#

---- More ----

ip route-static 10.1.1.0 255.255.255.0 2.2.3.2

---- More ----

#

---- More ----

user-interface con 0

---- More ----

user-interface vty 0 4

---- More ----

user-interface vty 16 20

---- More ----

#

---- More ----

return

---- More ----

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值