資源描述:
《單臂路由實驗詳解.docx》由會員上傳分享,免費在線閱讀,更多相關(guān)內(nèi)容在教育資源-天天文庫。
1、我是一名正在學(xué)習(xí)NA的學(xué)員本來是小白學(xué)習(xí)NA的時候遇到的困難不是一點半點所以把NA中的實驗難點發(fā)給大家希望大家一起提高PC配置配置IP地址子網(wǎng)掩碼網(wǎng)關(guān)這是很基本的東西不用多說交換機配置Switch>Switch>enSwitch>enSwitch#conftEnterconfigurationcommands,oneperline.EndwithCNTL/Z.Switch(config)#vlan2配置VLAN2Switch(config-vlan)#exitSwitch(config)#vlan3配置VLAN3Switch(config-vlan)#exitSwit
2、ch(config)#intfa0/1把端口加入到VLANSwitch(config-if)#switchportmodeaccessSwitch(config-if)#switchportaccessvlan2Switch(config-if)#intfa0/2Switch(config-if)#switchportmodeaccessSwitch(config-if)#switchportaccessvlan3Switch(config-if)#exitSwitch(config)#intfa0/4設(shè)置TrunkSwitch(config-if)#switchpo
3、rtaccesstrunk^%Invalidinputdetectedat'^'marker.Switch(config-if)#switchportmodetrunkSwitch(config-if)#exitSwitch(config)#exitSwitch#%SYS-5-CONFIG_I:ConfiguredfromconsolebyconsoleSwitch#showintfa0/4switchport查看Trunk端口Name:Fa0/4Switchport:EnabledAdministrativeMode:trunkOperationalMode:tru
4、nkAdministrativeTrunkingEncapsulation:dot1qOperationalTrunkingEncapsulation:dot1qNegotiationofTrunking:OffAccessModeVLAN:1(default)TrunkingNativeModeVLAN:1(default)VoiceVLAN:noneAdministrativeprivate-vlanhost-association:noneAdministrativeprivate-vlanmapping:noneAdministrativeprivate-vl
5、antrunknativeVLAN:noneAdministrativeprivate-vlantrunkencapsulation:dot1qAdministrativeprivate-vlantrunknormalVLANs:noneAdministrativeprivate-vlantrunkprivateVLANs:noneOperationalprivate-vlan:noneTrunkingVLANsEnabled:ALLPruningVLANsEnabled:2-1001CaptureModeDisabledCaptureVLANsAllowed:ALL
6、Protected:falseAppliancetrust:noneSwitch#路由器配置、Router>enRouter#conftEnterconfigurationcommands,oneperline.EndwithCNTL/Z.Router(config)#intfa0/0Router(config-if)#noshutdown打開路由器Router(config-if)#exitRouter(config)#intfa0/0.?查看子接口<0-4294967295>FastEthernetinterfacenumberRouter(config)#int
7、fa0/0.1配置子接口Router(config-subif)#encapsulationdot1q2封裝給vlan2Router(config-subif)#ipadd192.168.1.1255.255.255.0Router(config-subif)#noshutdownRouter(config-subif)#intfa0/0.3%LINK-5-CHANGED:InterfaceFastEthernet0/0.3,changedstatetoup%LINEPROTO-5-UPDOWN:LineprotocolonInterfaceFast