《计算机网络》实验指导书:动态地址转换.doc_第1页
《计算机网络》实验指导书:动态地址转换.doc_第2页
《计算机网络》实验指导书:动态地址转换.doc_第3页
《计算机网络》实验指导书:动态地址转换.doc_第4页
《计算机网络》实验指导书:动态地址转换.doc_第5页
已阅读5页,还剩1页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

海量资料 超值下载动态地址转换一、实验目的通过实验掌握动态NAT的配置方法及实际应用。二、实验描述你是公司的高级网络管理员,公司申请了100个公网IP地址为整个销售部门提供上网服务,销售部门的网段为192.168.1.0/24.合法地址不够每人分配一个,但是销售部门平均有三分之一的人在外跑业务,在公司内部的也不会一直需要网络服务,根据此情况解决公司全局地址不够一一映射的情况。三、实验拓扑四、实验设备1.R2801 2台2.S2960 1台3.PC 2台4.网线 3根5.串口线 1根五、实验步骤第1步:基本配置R1(config)#int f0/0R1(config-if)#ip add 192.168.1.254 255.255.255.0R1(config-if)#no shutR1(config-if)#int s1/0R1(config-if)#ip add 200.20.20.1 255.255.255.0R1(config-if)#clock rate 64000R1(config-if)#no shutR2(config)#int s1/0R2(config-if)#ip add 200.20.20.2 255.255.255.0R2(config-if)#no shutR2(config)#int loop 0R2(config-if)#ip add 2.2.2.2 255.255.255.0第2步:配置路由协议R1(config)#route rip R1(config-router)#version 2R1(config-router)#no auto-summary R1(config-router)#net 200.20.20.0R1(config-router)#exitR2(config)#router rip R2(config-router)#ver 2R2(config-router)#no auR2(config-router)#net 200.20.20.0R2(config-router)#net 2.0.0.0R2(config-router)#exit第3步:配置动态内部源地址转换R1(config)#ip nat pool jsj414 200.20.20.100 200.20.20.200 netmask 255.255.255.0定义转换地址池R1(config)#ip nat inside source list 1 pool jsj414定义内部本地地址池调用转换地址池地址 overloadR1(config)#access-list 1 permit 192.168.1.0 0.0.0.255定义可以转换的地址网段R1(config)#int f0/0R1(config-if)#ip nat inside定义内部接口R1(config-if)#int s1/0R1(config-if)#ip nat outside 定义外部接口R1(config-if)#exit验证测试:在PC1、PC2上分别PING 2.2.2.2在R1上显示转换表:R1#sh ip nat translations Pro Inside global Inside local Outside local Outside global- 200.20.20.100:15 192.168.1.1 :5 - - 200.20.20.100 :20 192.168.1.2 :5 - -六、注意事项1. 在配置的时候不要把inside和outside应用接口弄错2. 要加上能能使数据包外发的路由协议。七、参考配置R1#sh runBuilding configuration.Current configuration : 834 bytes!version 12.4no service password-encryption!hostname R1!ip ssh version 1!interface FastEthernet0/0 ip address 192.168.1.254 255.255.255.0 ip nat inside duplex auto speed auto!interface FastEthernet0/1 no ip address duplex auto speed auto shutdown!interface Serial1/0 ip address 200.20.20.1 255.255.255.0 ip nat outside clock rate 64000!interface Serial1/1 no ip address shutdown!interface Serial1/2 no ip address shutdown!interface Serial1/3 no ip address shutdown!interface Vlan1 no ip address shutdown!router rip version 2 network 200.20.20.0 no auto-summary!ip nat pool jsj414 200.20.20.100 200.20.20.200 netmask 255.255.255.0ip nat inside source list 1 pool jsj414ip classless!access-list 1 permit 192.168.1.0 0.0.0.255!line con 0line vty 0 4 login!EndR2#sh runBuilding configuration.Current configuration : 689 bytes!version 12.4no service password-encryption!hostname R2!ip ssh version 1!interface Loopback0 ip address 2.2.2.2 255.255.255.0!interface FastEthernet0/0 no ip address duplex auto speed auto shutdown!interface FastEthernet0/1 no ip address duplex auto speed auto shutdown!interface Serial1/0 ip address 200.20.20.2 255.255.255.0!interface Serial1/1 no ip address shutdown!interface Serial1/2 no ip address shutdown!interface Serial1/3 no ip address shutdown!interf

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论