配置NAT配置实验报告

nat  时间:2021-02-20  阅读:()

软件Z092苑红尚094372

实验二

一实验目的

1. 掌握静态NAT的特征、配置及调试方法。

2. 掌握动态NAT的特征、配置及调试方法。

3. 掌握NAPT的特征、配置及调试方法。

二实验设备

神州数码路由器主机

三实验拓扑

软件Z092苑红尚094372

四配置步骤

路由器A配置基本信息

Router#config

Router_config#int f0/3

Router_config_f0/3#ip add 192.168.1.1255.255.255.0

Router_config_f0/3#no shut

Router_config_f0/3#exit

Router_config#int f0/0

Router_config_f0/0#ip add 200.1.1.1255.255.255.0

Router_config_f0/0#no shut

Router_config_f0/0#exit

Router_config#router rip

Router_config_rip#network 200.1.1.0

Router_config_rip#^Z

Router#Jan 100:14:58 Configured from console 0 by

Router#show ip route

Codes:C-connected,S- static,R-RIP,B-BGP,BC-B GP connectedD-DEIGRP,DEX-external DEIGRP,O-OSPF,OIA-OSPF inter areaON 1 -OSPF NSSA external type 1,ON2-OSPF NSSA external type 2OE 1 -OSPF external type 1,OE2-OSPF external type 2

软件Z092苑红尚094372

DHCP-DHCP type,L1 - IS-IS level-1,L2- IS-IS level-2

VRF ID:0

C 192.168.1.0/24 is directly connected,FastEthernet0/3

C 200.1.1.0/24 is directly connected,FastEthernet0/0

R 202.1.1.0/24 [120,1]via 200.1.1.2(on FastEthernet0/0)路由器B

Router#config

Router_config#int f0/3

Router_config_f0/3#ip add 202.1.1.1255.255.255.0

Router_config_f0/3#no shut

Router_config#int f0/0

Router_config_f0/0#ip add 200.1.1.2255.255.255.0

Router_config_f0/0#no shut

Router_config_f0/0#exit

Router_config#router rip

Router_config_rip#network 202.1.1.0

Router_config_rip#network 200.1.1.0

Router_config_rip#^Z

Router#Jan 100:15:19 Configured from console 0 by

Router#show ip route

Codes:C-connected,S- static,R-RIP,B-BGP,BC-B GP connectedD-DEIGRP,DEX-external DEIGRP,O-OSPF,OIA-OSPF inter areaON 1 -OSPF NSSA external type 1,ON2-OSPF NSSA external type 2OE 1 -OSPF external type 1,OE2-OSPF external type 2

DHCP-DHCP type,L1 - IS-IS level-1,L2- IS-IS level-2

VRF ID:0

C 200.1.1.0/24 is directly connected,FastEthernet0/0

C 202.1.1.0/24 is directly connected,FastEthernet0/3

Router#

路由器A配置静态NAT

Router#config

Router_config#ip nat inside source static 192.168.1.10200.1.1.3

Router_config#ip nat inside source static 192.168.1.20200.1.1.4

Router_config#int f0/3

Router_config_f0/3#ip nat inside

Router_config_f0/3#int f0/0

Router_config_f0/0#ip nat outside

Router_config_f0/0#^Z

软件Z092苑红尚094372

Router#Jan 100:19:28 Configured from console 0 by

Router#show ip nat transtranslations --Translation entries

Router#show ip nat translations

Pro.Dir Inside local Inside global Outside local Outside global---- --- 192.168.1.10 200.1.1.3 --- ------- --- 192.168.1.20 200.1.1.4 --- ---Router#

配置动态NAT

Router#config

Router_config#no ip nat inside source static 192.168.1.10200.1.1.3

Router_config#no ip nat inside source static 192.168.1.20200.1.1.4

Router_config#ip nat pool aaa 200.1.1.100200.1.1.200255.255.255.0

Router_config#ip access-list standard 1

Router_config_std_nacl#deny 192.168.1.40

Router_config_std_nacl#permit 192.168.1.00.0.0.255

Router_config_std_nacl#exit

Router_config#ip nat inside source list 1 pool aaa

Router_config#^Z

Router#Jan 100:07:01 Configured from console 0 by

Router#show ip route

Codes:C-connected,S- static,R-RIP,B-BGP,BC-B GP connected

D-DEIGRP,DEX-external DEIGRP,O-OSPF,OIA-OSPF inter areaON 1 -OSPF NSSA external type 1,ON2-OSPF NSSA external type 2OE 1 -OSPF external type 1,OE2-OSPF external type 2

DHCP-DHCP type,L1 - IS-IS level-1,L2- IS-IS level-2

VRF ID:0

C 192.168.1.0/24 is directly connected,FastEthernet0/3

C 200.1.1.0/24 is directly connected,FastEthernet0/0

R 202.1.1.0/24 [120,1]via 200.1.1.2(on FastEthernet0/0)Router#show ip nat trantranslations --Translation entries

Router#show ip nat translations

软件Z092苑红尚094372

Router#

Router#c onf

Router_config#ip access-list standard 1

Router_config_std_nacl#permit 192.168.1.0255.255.255.0Router_config_std_nacl#^Z

Router#Jan 100:13:57 Configured from console 0 byRouter#show run

Building configuration. . .

Current configuration:

!

!version 1.3.3Hservice timestamps log dateservice timestamps debug dateno service password-encryption

!

!

!

!

!

!

!gbsc group default

!

!

!

!

!

!

!

!

!

!

!

!interface FastEthernet0/0ip address 200.1.1.1255.255.255.0no ip directed-broadcastip nat outside

!interface FastEthernet0/3ip address 192.168.1.1255.255.255.0no ip directed-broadcast

软件Z092苑红尚094372

ip nat inside

!interface Serial0/1no ip addressno ip directed-broadcast

!interface Serial0/2no ip addressno ip directed-broadcast

!interface Async0/0no ip addressno ip directed-broadcast

!

!

!

!router ripnetwork 200.1.1.0

!

!

!

!

!

!

!

!

!

!

!

!

!ip access-list standard 1deny 192.168.1.40255.255.255.255permit 192.168.1.0255.255.255.0

!

!

!

!

!

!ip nat pool aaa 200.1.1.100200.1.1.200255.255.255.0ip nat inside source list 1 pool aaa

软件Z092苑红尚094372

!

!

!

Router#

配置NAPT

Router#config

Router_config#no ip nat inside source list 1 pool aaa

Router_config#no ip nat pool aaa

Router_config#no ip access-list standard 1

Router_config#ip nat pool bbb 200.1.1.1200.1.1.1255.255.255.0

Router_config#ip access-list standard 10

Router_config_std_nacl#permit 192.168.1.0255.255.255.0

Router_config_std_nacl#exit

Router_config#ip nat inside source list 10 pool bbb overload

Router_config#^Z

Router#Jan 100:25:55 Configured from console 0 by

Router#show ip nat

Incomplete command

Router#show ip nat trantranslations --Translation entries

Router#show ip nat translations

Pro.Dir Inside local Inside global Outside local Outside global

ICMP OUT 192.168.1.20:512 200.1.1.1:33280 202.1.1.10:33280 202.1.1.10:332

80

ICMP OUT 192.168.1.40:512 200.1.1.1:25088 202.1.1.10:25088 202.1.1.10:250

88

ICMP OUT 192.168.1.30:512 200.1.1.1:16896 202.1.1.10:16896 202.1.1.10:168

96

ICMP OUT 192.168.1.10:512 200.1.1.1:8704 202.1.1.10:8704 202.1.1.10:870

4

Router#

五实验结果各种验证指令及结果

Ping 202.1.1.10

静态NAT

Pc0 

软件Z092苑红尚094372

Pc1

Pc2

软件Z092苑红尚094372

Pc3

动态NAT

Pc0:

盘点AoYoZhuJi傲游主机商8个数据中心常见方案及八折优惠

傲游主机商我们可能很多人并不陌生,实际上这个商家早年也就是个人主机商,传说是有几个个人投资创办的,不过能坚持到现在也算不错,毕竟有早年的用户积累正常情况上还是能延续的。如果是新服务商这几年确实不是特别容易,问到几个老牌的个人服务商很多都是早年的用户积累客户群。傲游主机目前有提供XEN和KVM架构的云服务器,不少还是亚洲CN2优化节点,目前数据中心包括中国香港、韩国、德国、荷兰和美国等多个地区的CN...

CloudCone:$14/年KVM-512MB/10GB/3TB/洛杉矶机房

CloudCone发布了2021年的闪售活动,提供了几款年付VPS套餐,基于KVM架构,采用Intel® Xeon® Silver 4214 or Xeon® E5s CPU及SSD硬盘组RAID10,最低每年14.02美元起,支持PayPal或者支付宝付款。这是一家成立于2017年的国外VPS主机商,提供VPS和独立服务器租用,数据中心为美国洛杉矶MC机房。下面列出几款年付套餐配置信息。CPU:...

蓝速数据(58/年)秒杀服务器独立1核2G 1M

蓝速数据金秋上云季2G58/年怎么样?蓝速数据物理机拼团0元购劲爆?蓝速数据服务器秒杀爆产品好不好?蓝速数据是广州五联科技信息有限公司旗下品牌云计算平台、采用国内首选Zkeys公有云建设多种开通方式、具有IDC、ISP从业资格证IDC运营商新老用户值得信赖的商家。我司主要从事内地的枣庄、宿迁、深圳、绍兴、成都(市、县)。待开放地区:北京、广州、十堰、西安、镇江(市、县)。等地区数据中心业务,均KV...

nat为你推荐
淘宝收费淘宝都什么服务是收费的?ghostxp3GHOST系统 ghostxp3 ghostxp2 ghostxp1 三者有什么区别?不兼容Google play 服务提示不兼容怎么办?如何建立一个网站要建立一个网站怎么弄啊?xp系统停止服务Windowsxp系统为什么停止服务人人逛街人人逛街评论怎么不显示链接了?好像4月28日就不能显示了。是什么原因呢?安装迅雷看看播放器如何用手机安装迅雷看看播放器宕机宕机是什么意思?如何清理ie缓存怎么清除IE缓存.网站排名靠前如何使网站排名靠前?
中文域名注册 租服务器价格 n点虚拟主机管理系统 flashfxp怎么用 美国主机代购 godaddy 线路工具 php免费空间 美国十次啦服务器 息壤代理 上海联通宽带测速 drupal安装 supercache 万网注册 新疆服务器 香港博客 japanese50m咸熟 cdn加速技术 低价 日本小学生 更多