免费预览已结束,剩余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 jinghua 200.20.20.100 200.20.20.200 network 255.255.255.0R1(config)#ip nat inside source list 1 pool jinghuaR1(config)#access-list 1 permit 192.168.1.0 0.0.0.255R1(config)#int f0/0R1(config-if)#ip nat insideR1(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 192.168.1.1 - - 200.20.20.101 192.168.1.2 - -六、注意事项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 jinghua 200.20.20.100 200.20.20.200 netmask 255.255.255.0ip nat inside source list 1 pool jinghuaip 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!interface Vlan1 no ip
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 管理人员奉献精神培训
- 预防医学科传染病预防控制手册
- (2026.05.13)在镇2026年防范学生溺水专项行动工作会议上的讲话
- 杰出的设计师及其核心素养
- 癫痫患者的康复训练计划
- 肺癌化疗不良反应护理干预
- 感染科结核病预防控制规范培训手册
- Spark日志分析平台实战指南课程设计
- 爬虫数据加密方法课程设计
- 变压器内部故障课程设计
- 消防设施操作员职业前景
- (三模)南通市2026届高三第三次调研测试地理试题卷(含答案)
- GB/T 47433-2026智慧城市基础设施智慧交通通过优化运行速度实现节能运营指南
- 2026届湖北省黄冈实验中学中考二模语文试题含解析
- 宝兴县2026年上半年“雅州英才”工程赴外招才引智活动面向全国引进高层次和急需紧缺人才(14人)笔试参考题库及答案解析
- 2025年北京市事业单位联考A类真题试卷及答案
- 2026年南昌市西湖区社区工作者招聘考试参考题库及答案解析
- 山姆会员商店质量溯源体系优化方案
- 高磷血症患者饮食教育
- 海绵城市建设工程监理实施细则范本
- 不稳定型心绞痛诊疗指南(2025年版)
评论
0/150
提交评论