2022年实验五网络地址转 .pdf





《2022年实验五网络地址转 .pdf》由会员分享,可在线阅读,更多相关《2022年实验五网络地址转 .pdf(4页珍藏版)》请在淘文阁 - 分享文档赚钱的网站上搜索。
1、实验五 网络地址转换实验 5.1 静态内部源地址转换NAT 【实验名称】静态内部源地址转换NAT 【实验目的】掌握内网中一台服务器连接到Internet 网时的静态内部源地址转换【背景描述】你是某公司的网络管理员,内部网络有 FTP 服务器可以为外部用户提供的服务,服务器的 IP 地址必须采用静态地址转换,以便外部用户可以使用这些服务。【实现功能】一个企业不想让外部网络用户知道自己的网络内部结构,可以通过NAT 将内部网络与外部Internet 隔离开,则外部用户根本不知道通过NAT 设置的内部 IP 地址。【实验拓扑】 R1 R2 【实验设备】R2624 或R2620(2 台) 【实验步骤】
2、第一步 :基本配置Red-Giant (config)#hostname R1 R1(config)#interface serial 0 R1(config-if)#ip address 192.1.1.1 255.255.255.0 R1(config-if)#clock rate 64000 R1(config-if)#no shu R1(config-if)#no shutdown R1(config-if)#end R1(config)#interface fastEthernet 0 R1(config-if)#ip add 192.168.1.1 255.255.255.0 R1
3、(config-if)#no sh Red-Giant(config)#hostname R2 R2(config)#int serial 0 R2(config-if)#ip add 192.1.1.2 255.255.255.0 R2(config-if)#no sh R2(config-if)#end 验证测试: R2#ping 192.1.1.1 Type escape sequence to abort. Sending 5, 100-byte ICMP Echoes to 192.1.1.1, timeout is 2 seconds: ! PC F0 S0 名师资料总结 - -
4、-精品资料欢迎下载 - - - - - - - - - - - - - - - - - - 名师精心整理 - - - - - - - 第 1 页,共 4 页 - - - - - - - - - 第二步 :配置静态 NAT 映射R1(config)#ip nat inside source static 192.168.1.2 192.1.1.3 !定义静态映射一一匹配R1(config)#int fastEthernet 0 R1(config-if)#ip nat inside !定义内部接口R1(config)#int serial 0 R1(config-if)#ip nat outsi
5、de !定义外部接口R1(config)#ip route 0.0.0.0 0.0.0.0 serial 0 验证测试: R1#sh ip nat translations Pro Inside global Inside local Outside local Outside global - 192.1.1.3 192.168.1.1 - - 【注意事项】1 不要把 inside 和outside 应用的接口弄错;2 要加上能使数据包向外转发的路由,比如默认路由;3 尽量不要用广域网接口地址作为映射的全局地址。【参考配置】R1#sh run Current configuration: !
6、 version 6.14(2) ! hostname R1 ! ip subnet-zero ! interface FastEthernet0 ip address 192.168.1.1 255.255.255.0 ip nat inside ! interface FastEthernet1 no ip address shutdown ! interface FastEthernet2 no ip address shutdown ! interface FastEthernet3 no ip address shutdown ! interface Serial0 ip addre
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 2022年实验五网络地址转 2022 实验 网络地址

限制150内