|
如图:R1为中心站点,R2,R3为分支站点,双方运行DMVPN,物理接口为200.1.1.0/24网段,隧道接口为123.1.1.0/24网段。
R1的配置:crypto isakmp policy 10
encr 3des
hash md5
authentication pre-share
group 2
crypto isakmp key cisco address 0.0.0.0 0.0.0.0 no-xauth
!
!
crypto ipsec transform-set IPSEC esp-3des esp-md5-hmac
mode transport
!
crypto ipsec profile PRO
set transform-set IPSEC
interface Tunnel1
ip address 123.1.1.1 255.255.255.0
no ip redirects
no ip next-hop-self eigrp 100
ip nhrp authentication cisco
ip nhrp map multicast dynamic
ip nhrp network-id 10
no ip split-horizon
tunnel source FastEthernet0/0
tunnel mode gre multipoint
tunnel key 123
tunnel protection ipsec profile PRO
!
interface Loopback1
ip address 1.1.1.1 255.255.255.0
!
interface FastEthernet0/0
ip address 200.1.1.1 255.255.255.0
no ip next-hop-self eigrp 100
no ip split-horizon
duplex auto
speed auto
!
interface FastEthernet0/1
no ip address
shutdown
duplex auto
speed auto
!
!
router eigrp 100
network 1.1.1.0 0.0.0.255
network 123.1.1.0 0.0.0.255
no auto-summary
R1路由表:Gateway of last resort is not set
1.0.0.0/24 is subnetted, 1 subnets
C 1.1.1.0 is directly connected, Loopback1
2.0.0.0/24 is subnetted, 1 subnets
D 2.2.2.0 [90/297372416] via 123.1.1.2, 00:12:20, Tunnel1
3.0.0.0/24 is subnetted, 1 subnets
D 3.3.3.0 [90/297372416] via 123.1.1.3, 00:09:16, Tunnel1
C 200.1.1.0/24 is directly connected, FastEthernet0/0
123.0.0.0/24 is subnetted, 1 subnets
C 123.1.1.0 is directly connected, Tunnel1
R2的配置:crypto isakmp policy 10
encr 3des
hash md5
authentication pre-share
group 2
crypto isakmp key cisco address 0.0.0.0 0.0.0.0 no-xauth
!
!
crypto ipsec transform-set IPSEC esp-3des esp-md5-hmac
mode transport
!
crypto ipsec profile PRO
set transform-set IPSEC
!
!
!
!
!
!
interface Tunnel2
ip address 123.1.1.2 255.255.255.0
no ip redirects
ip nhrp authentication cisco
ip nhrp map 123.1.1.1 200.1.1.1
ip nhrp map multicast 200.1.1.1
ip nhrp network-id 10
ip nhrp nhs 123.1.1.1
tunnel source FastEthernet0/0
tunnel mode gre multipoint
tunnel key 123
tunnel protection ipsec profile PRO
!
interface Loopback2
ip address 2.2.2.2 255.255.255.0
!
interface FastEthernet0/0
ip address 200.1.1.2 255.255.255.0
no ip next-hop-self eigrp 100
no ip split-horizon
duplex auto
speed auto
!
interface FastEthernet0/1
no ip address
shutdown
duplex auto
speed auto
!
!
router eigrp 100
network 2.2.2.0 0.0.0.255
network 123.1.1.0 0.0.0.255
no auto-summary
R2路由表:Gateway of last resort is not set
1.0.0.0/24 is subnetted, 1 subnets
D 1.1.1.0 [90/297372416] via 123.1.1.1, 00:12:44, Tunnel2
2.0.0.0/24 is subnetted, 1 subnets
C 2.2.2.0 is directly connected, Loopback2
C 200.1.1.0/24 is directly connected, FastEthernet0/0
123.0.0.0/24 is subnetted, 1 subnets
C 123.1.1.0 is directly connected, Tunnel2
R3的配置:crypto isakmp policy 10
encr 3des
hash md5
authentication pre-share
group 2
crypto isakmp key cisco address 0.0.0.0 0.0.0.0 no-xauth
!
!
crypto ipsec transform-set IPSEC esp-3des esp-md5-hmac
mode transport
!
crypto ipsec profile PRO
set transform-set IPSEC
!
interface Tunnel3
ip address 123.1.1.3 255.255.255.0
no ip redirects
ip nhrp authentication cisco
ip nhrp map 123.1.1.1 200.1.1.1
ip nhrp map multicast 200.1.1.1
ip nhrp network-id 10
ip nhrp nhs 123.1.1.1
tunnel source FastEthernet0/0
tunnel mode gre multipoint
tunnel key 123
tunnel protection ipsec profile PRO
!
interface Loopback3
ip address 3.3.3.3 255.255.255.0
!
interface FastEthernet0/0
ip address 200.1.1.3 255.255.255.0
no ip next-hop-self eigrp 100
no ip split-horizon
duplex auto
speed auto
!
interface FastEthernet0/1
no ip address
shutdown
duplex auto
speed auto
!
!
router eigrp 100
network 3.3.3.0 0.0.0.255
network 123.1.1.0 0.0.0.255
no auto-summary
R3的路由表:Gateway of last resort is not set
1.0.0.0/24 is subnetted, 1 subnets
D 1.1.1.0 [90/297372416] via 123.1.1.1, 00:10:07, Tunnel3
3.0.0.0/24 is subnetted, 1 subnets
C 3.3.3.0 is directly connected, Loopback3
C 200.1.1.0/24 is directly connected, FastEthernet0/0
123.0.0.0/24 is subnetted, 1 subnets
C 123.1.1.0 is directly connected, Tunnel3
R1能够学到R2和R3的环回口路由,R2,R3能够学到R1的环回口路由,为什么R2,R3学不到对方的路由呢?
|
|