设为首页 友情链接
在线留言 发表文章
加入收藏 广告联系

刺猬首页

| 专案技术 | 网络技术 | 图形图象 | 网络编程 | 网页设计 | 操作系统 | 服务器 | 技术白皮书 | 在线实验室 | 刺猬论坛 |
小说专版  | 数据库 | 设计赏析 | 存储频道 | 网络安全 | 私服架设 |  Solaris | 网站评估 | PC维护技巧 | 下载中心 | 博 客 |
专   题: | Linux | java | cisco | 防病毒 | 刀片 | SOA | iscsi | ASP.NET | SQL | Oracle |
您现在的位置: IT公社 IT community >> 思科学堂 >> 思科网络学堂 >> 文章正文 用户登录 新用户注册
专 题 栏 目
最 新 热 门
最 新 推 荐
相 关 文 章
pix+2611的ADSL+VPN配置
DMVPN with NHRP
PIX 7.0 dynamic VPN us
PIX 7.0 dynamic VPN
PIX上实现VPN步骤
思科IP MPLS VPN
Cisco IOS Easy VPN Ser
IP-VPN实例
用RSVP协议保证VoIP 质量
Cisco 路由器 VPN典型配
  DMVPN-NHRP - spoke-to-spoke VPN IOS 12.2.15T         
DMVPN-NHRP - spoke-to-spoke VPN IOS 12.2.15T
 

【导读】DMVPN-NHRP - spoke-to-spoke VPN IOS 12.2.15T
hostname hub

!

crypto isakmp policy 20

authentication pre-share

crypto isakmp key cisco address 0.0.0.0 0.0.0.0

!

crypto ipsec transform-set test esp-aes esp-sha-hmac

mode transport

!>crypto ipsec profile test

set transform-set test

!

interface Loopback0

ip address 192.168.1.1 255.255.255.0

!

interface Tunnel0

ip address 10.0.0.1 255.255.255.0

no ip redirects

ip mtu 1436

ip nhrp authentication cisco

ip nhrp map multicast dynamic

ip nhrp network-id 1000

ip nhrp holdtime 600

no ip split-horizon eigrp 1

tunnel source Ethernet0/0

tunnel mode gre multipoint

tunnel key 100000

tunnel protection ipsec profile test

!

interface Ethernet0/0

ip address 172.17.0.1 255.255.255.0

!

router eigrp 1

network 10.0.0.0 0.0.0.255

network 192.168.1.0

no auto-summary
hub#sh ip route

Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP

D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area

N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2

E1 - OSPF external type 1, E2 - OSPF external type 2

i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area

* - candidate default, U - per-user static route, o - ODR

P - periodic downloaded static route
Gateway of last resort is not set
172.17.0.0/24 is subnetted, 1 subnets

C 172.17.0.0 is directly connected, Ethernet0/0

10.0.0.0/24 is subnetted, 1 subnets

C 10.0.0.0 is directly connected, Tunnel0

C 192.168.1.0/24 is directly connected, Loopback0

D 192.168.2.0/24 [90/297372416] via 10.0.0.2, 00:52:46, Tunnel0

D 192.168.3.0/24 [90/297372416] via 10.0.0.3, 00:49:59, Tunnel0

hub#

hub#sh ip nhrp

10.0.0.2/32 via 10.0.0.2, Tunnel0 created 09:33:21, expire 00:04:28

Type: dynamic, Flags: authoritative unique registered

NBMA address: 172.17.0.2

10.0.0.3/32 via 10.0.0.3, Tunnel0 created 09:33:06, expire 00:04:14

Type: dynamic, Flags: authoritative unique registered

NBMA address: 172.17.0.3

hub#

hub#sh crypto socket
Number of Crypto Socket connections 2
Tu0 Peers (local/remote): 172.17.0.1/172.17.0.3

Local Ident (addr/mask/port/prot): (172.17.0.1/255.255.255.255/0/47)

Remote Ident (addr/mask/port/prot): (172.17.0.3/255.255.255.255/0/47)

Socket State: Open

Client: "TUNNEL SEC" (Client State: Active)

Tu0 Peers (local/remote): 172.17.0.1/172.17.0.2

Local Ident (addr/mask/port/prot): (172.17.0.1/255.255.255.255/0/47)

Remote Ident (addr/mask/port/prot): (172.17.0.2/255.255.255.255/0/47)

Socket State: Open

Client: "TUNNEL SEC" (Client State: Active)
Crypto Sockets in Listen state:

1 TUNNEL SEC Profile: "test" Map-name "Tunnel0-head-0"

=====================================================

hostname r2-spoke
crypto isakmp policy 20

authentication pre-share

crypto isakmp key cisco address 0.0.0.0 0.0.0.0

!

crypto ipsec transform-set test esp-aes esp-sha-hmac

mode transport

!

crypto ipsec profile test

set transform-set test

!

interface Loopback0

ip address 192.168.2.1 255.255.255.0

!

interface Tunnel0

ip address 10.0.0.2 255.255.255.0

no ip redirects

ip mtu 1436

ip nhrp authentication cisco

ip nhrp map 10.0.0.1 172.17.0.1

ip nhrp map multicast 172.17.0.1

ip nhrp network-id 1000

ip nhrp holdtime 300

ip nhrp nhs 10.0.0.1

no ip route-cache

no ip mroute-cache

tunnel source Ethernet0/0

tunnel mode gre multipoint

tunnel key 100000

tunnel protection ipsec profile test

!

interface Ethernet0/0

ip address 172.17.0.2 255.255.255.0
router eigrp 1

network 10.0.0.0 0.0.0.255

network 192.168.2.0

no auto-summary
r2#sh ip route

Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP

D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area

N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2

E1 - OSPF external type 1, E2 - OSPF external type 2

i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area

* - candidate default, U - per-user static route, o - ODR

P - periodic downloaded static route
Gateway of last resort is not set
172.17.0.0/24 is subnetted, 1 subnets

C 172.17.0.0 is directly connected, Ethernet0/0

10.0.0.0/24 is subnetted, 1 subnets

C 10.0.0.0 is directly connected, Tunnel0

D 192.168.1.0/24 [90/297372416] via 10.0.0.1, 00:47:57, Tunnel0

C 192.168.2.0/24 is directly connected, Loopback0

D 192.168.3.0/24 [90/310172416] via 10.0.0.1, 00:45:09, Tunnel0

r2#

r2#

r2#sh ip nhrp

10.0.0.1/32 via 10.0.0.1, Tunnel0 created 00:48:20, never expire

Type: static, Flags: authoritative used

NBMA address: 172.17.0.1

r2#

r2#sh crypto socket
Number of Crypto Socket connections 1
Tu0 Peers (local/remote): 172.17.0.2/172.17.0.1

Local Ident (addr/mask/port/prot): (172.17.0.2/255.255.255.255/0/47)

Remote Ident (addr/mask/port/prot): (172.17.0.1/255.255.255.255/0/47)

Socket State: Open

Client: "TUNNEL SEC" (Client State: Active)
Crypto Sockets in Listen state:

1 TUNNEL SEC Profile: "test" Map-name "Tunnel0-head-0"

==============================================

hostname r3-spoke

!

crypto isakmp policy 20

authentication pre-share

crypto isakmp key cisco address 0.0.0.0 0.0.0.0

!

crypto ipsec transform-set test esp-aes esp-sha-hmac

mode transport

!

crypto ipsec profile test

set transform-set test

!

interface Loopback0

ip address 192.168.3.1 255.255.255.0

!

interface Tunnel0

ip address 10.0.0.3 255.255.255.0

no ip redirects

ip mtu 1436

ip nhrp authentication cisco

ip nhrp map 10.0.0.1 172.17.0.1

ip nhrp map multicast 172.17.0.1

ip nhrp network-id 1000

ip nhrp holdtime 300

ip nhrp nhs 10.0.0.1

no ip route-cache

no ip mroute-cache

tunnel source Ethernet0/0

tunnel mode gre multipoint

tunnel key 100000

tunnel protection ipsec profile test

!

interface Ethernet0/0

ip address 172.17.0.3 255.255.255.0
router eigrp 1

network 10.0.0.0 0.0.0.255

network 192.168.3.0

no auto-summary
r3#sh ip route

Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP

D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area

N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2

E1 - OSPF external type 1, E2 - OSPF external type 2

i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area

* - candidate default, U - per-user static route, o - ODR

P - periodic downloaded static route
Gateway of last resort is not set
172.17.0.0/24 is subnetted, 1 subnets

C 172.17.0.0 is directly connected, Ethernet0/0

10.0.0.0/24 is subnetted, 1 subnets

C 10.0.0.0 is directly connected, Tunnel0

D 192.168.1.0/24 [90/297372416] via 10.0.0.1, 00:47:16, Tunnel0

D 192.168.2.0/24 [90/310172416] via 10.0.0.1, 00:47:16, Tunnel0

C 192.168.3.0/24 is directly connected, Loopback0

r3#

r3#sh ip nhrp

10.0.0.1/32 via 10.0.0.1, Tunnel0 created 00:48:49, never expire

Type: static, Flags: authoritative used

NBMA address: 172.17.0.1

r3#

r3#sh crypto socket
Number of Crypto Socket connections 2
Tu0 Peers (local/remote): 172.17.0.3/172.17.0.1

Local Ident (addr/mask/port/prot): (172.17.0.3/255.255.255.255/0/47)

Remote Ident (addr/mask/port/prot): (172.17.0.1/255.255.255.255/0/47)

Socket State: Open

Client: "TUNNEL SEC" (Client State: Active)

Tu0 Peers (local/remote): 172.17.0.3/172.17.0.2

Local Ident (addr/mask/port/prot): (172.17.0.3/255.255.255.255/0/47)

Remote Ident (addr/mask/port/prot): (172.17.0.2/255.255.255.255/0/47)

Socket State: Closed

Client: "TUNNEL SEC" (Client State: Listening)
Crypto Sockets in Listen state:

1 TUNNEL SEC Profile: "test" Map-name "Tunnel0-head-0"
=================================================
r2#ping 192.168.3.1
Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 192.168.3.1, timeout is 2 seconds:

.!!!!

Success rate is 80 percent (4/5), round-trip min/avg/max = 12/12/12 ms

r2#

r2#sh ip nhrp

10.0.0.1/32 via 10.0.0.1, Tunnel0 created 00:55:58, never expire

Type: static, Flags: authoritative used

NBMA address: 172.17.0.1

192.168.3.0/24 via 192.168.3.1, Tunnel0 created 00:00:09, expire 00:04:50

Type: dynamic, Flags: router unique used

NBMA address: 172.17.0.3

r2#

r2#

r2#sh crypto socket
Number of Crypto Socket connections 2
Tu0 Peers (local/remote): 172.17.0.2/172.17.0.1

Local Ident (addr/mask/port/prot): (172.17.0.2/255.255.255.255/0/47)

Remote Ident (addr/mask/port/prot): (172.17.0.1/255.255.255.255/0/47)

Socket State: Open

Client: "TUNNEL SEC" (Client State: Active)

Tu0 Peers (local/remote): 172.17.0.2/172.17.0.3

Local Ident (addr/mask/port/prot): (172.17.0.2/255.255.255.255/0/47)

Remote Ident (addr/mask/port/prot): (172.17.0.3/255.255.255.255/0/47)

Socket State: Open

Client: "TUNNEL SEC" (Client State: Active)
Crypto Sockets in Listen state:

1 TUNNEL SEC Profile: "test" Map-name "Tunnel0-head-0"

======================================================
r3#sh ip nhrp

10.0.0.1/32 via 10.0.0.1, Tunnel0 created 00:54:33, never expire

Type: static, Flags: authoritative used

NBMA address: 172.17.0.1

10.0.0.2/32 via 10.0.0.2, Tunnel0 created 00:01:23, expire 00:02:15

Type: dynamic, Flags: router unique

NBMA address: 172.17.0.2

192.168.3.0/24 via 192.168.3.1, Tunnel0 created 00:01:23, expire 00:03:38

Type: dynamic, Flags: router authoritative unique local

NBMA address: 172.17.0.3

r3#sh crypto socket
Number of Crypto Socket connections 2
Tu0 Peers (local/remote): 172.17.0.3/172.17.0.1

Local Ident (addr/mask/port/prot): (172.17.0.3/255.255.255.255/0/47)

Remote Ident (addr/mask/port/prot): (172.17.0.1/255.255.255.255/0/47)

Socket State: Open

Client: "TUNNEL SEC" (Client State: Active)

Tu0 Peers (local/remote): 172.17.0.3/172.17.0.2

Local Ident (addr/mask/port/prot): (172.17.0.3/255.255.255.255/0/47)

Remote Ident (addr/mask/port/prot): (172.17.0.2/255.255.255.255/0/47)

Socket State: Open

Client: "TUNNEL SEC" (Client State: Active)
Crypto Sockets in Listen state:

1 TUNNEL SEC Profile: "test" Map-name "Tunnel0-head-0"

  (责任编辑: 51CTO.com TEL:010-68476606)

频道声明:本频道的文章除部分特别声明禁止转载的专稿外,可以自由转载.但请务必注明出出处和原始作者 文章版权归本频道与文章作者所有.对于被频道转载文章的个人和网站,我们表示深深的谢意。

原始作者:佚名 录入时间:2006-10-13 4:49:37
信息来源:不详 投稿信箱:itqoo@126.com
文章录入:admin    责任编辑:admin 
  • 上一篇文章:

  • 下一篇文章:
  • 【字体: 】【发表评论】【加入收藏】【告诉好友】【打印此文】【关闭窗口
      网友评论:(只显示最新10条。评论内容只代表网友观点,与本站立场无关!)
    - 关于我们 - 合作伙伴 - 友情链接 - 广告刊登 - 投稿热线 - 在线留言版权声明联系方式 -
    IT公社版权所有 粤ICP备05127012号
    Copyrigh@2005-2006 itqoo.com.Inc All Rights Reserved  推荐分辨率 1024*768
    联系站长:E-Mail:itqoo@126.com     MSN:urchincc@hotmail.com    QQ:点击这里给我发消息
    特别感谢:亿太网络提供空间支持