資源描述:
《網(wǎng)絡(luò)端口地址轉(zhuǎn)換NAPT配置》由會員上傳分享,免費在線閱讀,更多相關(guān)內(nèi)容在教育資源-天天文庫。
1、網(wǎng)絡(luò)端口地址轉(zhuǎn)換NAPT配置一、pc機(jī)基本配置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