第二周第一天学习总结[VPN配置]

第二周第一天学习总结

  • 本周计划
  • 本日计划
  • 模拟部署IPsecVPN
    • 上海分公司路由器的配置:
    • 互联网路由器:
    • 北京分公司路由器:
  • 明日计划

本周计划

学习路由部分的知识
1、学习每个路由协议的原理,需要学习的路由协议有默认路由、静态路由、直连路由、rip、ospf ,bgp、isis(已完成)
2、掌握每个路由协议之间的区别
3、掌握每个路由协议的优先级、 学会路由之间的重分发(实验)(已完成)
4、掌握bgp选路原则
5、掌握路由策略和策略路由
6、学策略ACL(基本acl+扩展acl(选学))、NAT、VPN【底层原理,规则,实验】(已完成)

本日计划

学会部署VPN

模拟部署IPsecVPN

实验环境:思科模拟器8.2.1
拓扑如下:
第二周第一天学习总结[VPN配置]_第1张图片

上海分公司和北京分公司要建立点对点VPN:IPsecVPN
要求在两家分公司的核心路由器上建立隧道模式。

实验思路:
首先定义传输集的加密方式,指定完整性算法等配置
再定义感兴趣流量,和map映射表再将VPN配置在连接外网的接口上

上海分公司路由器的配置:

SH-R1#show run
Building configuration...

Current configuration : 1051 bytes
!
version 15.1
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname SH-R1
!
!
!
!
!
!
!
!
no ip cef
no ipv6 cef
!
!
!
!
license udi pid CISCO2811/K9 sn FTX10172J98-
!
!
!
crypto isakmp policy 1
 encr aes
 authentication pre-share
 group 2
 lifetime 3600
!
crypto isakmp key zhangsan address 200.1.1.1
!
!
!
crypto ipsec transform-set wentran esp-aes esp-sha-hmac
!
crypto map wenmap 1 ipsec-isakmp 
 set peer 200.1.1.1
 set transform-set wentran 
 match address 100
!
!
!
!
!
!
spanning-tree mode pvst
!
!
!
!
!
!
interface FastEthernet0/0
 ip address 100.1.1.1 255.255.255.0
 duplex auto
 speed auto
 crypto map wenmap
!
interface FastEthernet0/1
 ip address 192.168.1.254 255.255.255.0
 duplex auto
 speed auto
!
interface Vlan1
 no ip address
 shutdown
!
ip classless
ip route 0.0.0.0 0.0.0.0 100.1.1.254 
!
ip flow-export version 9
!
!
access-list 100 permit ip 192.168.0.0 0.0.255.255 172.16.0.0 0.0.255.255
!
!
!
!
!
line con 0
!
line aux 0
!
line vty 0 4
 login
!
!
!
end

互联网路由器:


ZXISP-R#show run
Building configuration...

Current configuration : 632 bytes
!
version 15.1
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname ZXISP-R
!
!
!
!
!
!
!
!
no ip cef
no ipv6 cef
!
!
!
!
license udi pid CISCO2811/K9 sn FTX1017FV6E-
!
!
!
!
!
!
!
!
!
!
!
spanning-tree mode pvst
!
!
!
!
!
!
interface FastEthernet0/0
 ip address 100.1.1.254 255.255.255.0
 duplex auto
 speed auto
!
interface FastEthernet0/1
 ip address 200.1.1.254 255.255.255.0
 duplex auto
 speed auto
!
interface Vlan1
 no ip address
 shutdown
!
ip classless
!
ip flow-export version 9
!
!
!
!
!
!
!
line con 0
!
line aux 0
!
line vty 0 4
 login
!
!
!
end

北京分公司路由器:

BJ-R1#show run
Building configuration...

Current configuration : 1050 bytes
!
version 15.1
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname BJ-R1
!
!
!
!
!
!
!
!
no ip cef
no ipv6 cef
!
!
!
!
license udi pid CISCO2811/K9 sn FTX1017ZQKX-
!
!
!
crypto isakmp policy 1
 encr aes
 authentication pre-share
 group 2
 lifetime 3600
!
crypto isakmp key zhangsan address 100.1.1.1
!
!
!
crypto ipsec transform-set wentran esp-aes esp-sha-hmac
!
crypto map wenmap 1 ipsec-isakmp 
 set peer 100.1.1.1
 set transform-set wentran 
 match address 100
!
!
!
!
!
!
spanning-tree mode pvst
!
!
!
!
!
!
interface FastEthernet0/0
 ip address 200.1.1.1 255.255.255.0
 duplex auto
 speed auto
 crypto map wenmap
!
interface FastEthernet0/1
 ip address 172.16.1.254 255.255.255.0
 duplex auto
 speed auto
!
interface Vlan1
 no ip address
 shutdown
!
ip classless
ip route 0.0.0.0 0.0.0.0 200.1.1.254 
!
ip flow-export version 9
!
!
access-list 100 permit ip 172.16.0.0 0.0.255.255 192.168.0.0 0.0.255.255
!
!
!
!
!
line con 0
!
line aux 0
!
line vty 0 4
 login
!
!
!
end

此时检查网络连通性可以发现,两家公司的设备已经可以互通
第二周第一天学习总结[VPN配置]_第2张图片
现在,持续qing北京的终端设备,并在路由器上查看VPN状态
第二周第一天学习总结[VPN配置]_第3张图片
就此,配置完成!

明日计划

掌握每个路由协议之间的区别
掌握bgp选路原则

你可能感兴趣的:(学习,网络,智能路由器)