VPN实例配置方案-中文注解(图)

文章作者 100test 发表时间 2007:03:14 13:17:46
来源 100Test.Com百考试题网


Router:sam-i-am(VPN Server)

  Current configuration:
  !
  version 12.2
  service timestamps debug uptime
  service timestamps log up time
  no service password-encryption
  !
  hostname sam-i-am
  !
  ip subnet-zero

  !--- IKE配置

  sam-i-am(config)#crypto isakmp policy 1 //定义策略为1
  sam-i-am(isakmp)#hash md5 //定义MD5散列算法
  sam-i-am(isakmp)#authentication pre-share //定义为预共享密钥认证方式
  sam-i-am(config)#crypto isakmp key cisco123 address 0.0.0.0 0.0.0.0

  !--- 配置预共享密钥为cisco123,对等端为所有IP

  !--- IPSec协议配置

  sam-i-am(config)#crypto ipsec transform-set rtpset esp-des esp-md5-hmac

  !--- 创建变换集 esp-des esp-md5-hmac

  sam-i-am(config)#crypto dynamic-map rtpmap 10 //创建动态保密图rtpmap 10
  san-i-am(crypto-map)#set transform-set rtpset //使用上面的定义的变换集rtpset
  san-i-am(crypto-map)#match address 115 //援引访问列表确定受保护的流量
  sam-i-am(config)#crypto map rtptrans 10 ipsec-isakmp dynamic rtpmap

  !--- 将动态保密图集加入到正规的图集中

  !
  interface Ethernet0
  ip address 10.2.2.3 255.255.255.0
  no ip directed-broadcast
  ip nat inside

  no mop enabled
  !
  interface Serial0
  ip address 99.99.99.1 255.255.255.0
  no ip directed-broadcast
  ip nat outside
  crypto map rtptrans //将保密映射应用到S0接口上

  !
  ip nat inside source route-map nonat interface Serial0 overload
  !--- 这个NAT配置启用了路由策略,内容为10.2.2.0到10.1.1.0的访问不进行地址翻译
  !--- 到其他网络的访问都翻译成SO接口的IP地址

  ip classless
  ip route 0.0.0.0 0.0.0.0 Serial0 //配置静态路由协议
  no ip http server
  !
  access-list 115 permit ip 10.2.2.0 0.0.0.255 10.1.1.0 0.0.0.255
  access-list 115 deny ip 10.2.2.0 0.0.0.255 any
  !
  access-list 120 deny ip 10.2.2.0 0.0.0.255 10.1.1.0 0.0.0.255
  access-list 120 permit ip 10.2.2.0 0.0.0.255 any
  !
  sam-i-am(config)#route-map nonat permit 10 //使用路由策略
  sam-i-am(router-map)#match ip address 120
  !
  line con 0
  transport input none
  line aux 0
  line vty 0 4
  password ww
  login
  !
  end




相关文章


关于IP-MAC绑定的交换机设置
Cisco管理员必备的三个工具(图)
以太网络建立多个VLAN典型案例
通过路由器保护内网安全九大步骤
VPN实例配置方案-中文注解(图)
Cisco4种低端路由器简单配置方法
某网络专业人士笔记(非常值得收藏)
交换机故障的一般分类和排障步骤
CISCO常见问题及解答—VPN相关
澳大利亚华人论坛
考好网
日本华人论坛
华人移民留学论坛
英国华人论坛