欢迎来到天天文库
浏览记录
ID:42668484
大小:13.88 KB
页数:5页
时间:2019-09-19
《网络端口地址转换NAPT配置》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、网络端口地址转换NAPT配置一、pc机基本配置pc1:192.168.1.2255.255.255.0192.168.1.1pc2:192.168.1.3255.255.255.0192.168.1.1server:202.1.2.2255.255.255.0202.1.2.1二、路由器基本配置Router#conftEnterconfigurationcommands,oneperline.EndwithCNTL/Z.Router(config)#hostR1R1(config)#intfa0/0R1(config-if)#ipadd192.168.1.1255.255.255.0R
2、1(config-if)#noshutdR1(config-if)#exitR1(config)#ints2/0R1(config-if)#ipadd202.1.1.1255.255.255.0R1(config-if)#clockrate64000R1(config-if)#%LINEPROTO-5-UPDOWN:LineprotocolonInterfaceSerial2/0,changedstatetoupR1(config-if)#noshutdownR1(config-if)#exitRouter#conftEnterconfigurationcommands,oneperl
3、ine.EndwithCNTL/Z.Router(config)#hostR2R2(config)#ints2/0R2(config-if)#ipadd202.1.1.2255.255.255.0R2(config-if)#noshutR2(config-if)#exitR2(config)#intfa0/0R2(config-if)#ipadd202.1.2.1255.255.255.0R2(config-if)#noshutR2(config-if)#exit三、查看IP地址R1#shipintbriInterfaceIP-AddressOK?MethodStatusProtoco
4、lFastEthernet0/0192.168.1.1YESmanualupupFastEthernet1/0unassignedYESmanualadministrativelydowndownSerial2/0202.1.1.1YESmanualupupSerial3/0unassignedYESmanualadministrativelydowndownFastEthernet4/0unassignedYESmanualadministrativelydowndownFastEthernet5/0unassignedYESmanualadministrativelydowndow
5、nR1#R2#shipintbriInterfaceIP-AddressOK?MethodStatusProtocolFastEthernet0/0202.1.2.1YESmanualupupFastEthernet1/0unassignedYESmanualadministrativelydowndownSerial2/0202.1.1.2YESmanualupupSerial3/0unassignedYESmanualadministrativelydowndownFastEthernet4/0unassignedYESmanualadministrativelydowndownF
6、astEthernet5/0unassignedYESmanualadministrativelydowndownR2#四、配置路由R1#conftEnterconfigurationcommands,oneperline.EndwithCNTL/Z.R1(config)#iproute202.1.2.0255.255.255.0202.1.1.2R1(config)#exitR2#conftEnterconfigurationcommands,oneperline.EndwithCNTL/Z.R2(config)#iproute192.168.1.0255.255.255.0202.
7、1.1.1R2(config)#exit五、查看路由R1#shiprouteCodes:C-connected,S-static,I-IGRP,R-RIP,M-mobile,B-BGPD-EIGRP,EX-EIGRPexternal,O-OSPF,IA-OSPFinterareaN1-OSPFNSSAexternaltype1,N2-OSPFNSSAexternaltype2E1-OSPFexternaltype1,E2-OSPFexterna
此文档下载收益归作者所有