資源描述:
《實(shí)驗(yàn)三交換式和虛擬局域網(wǎng)3》由會(huì)員上傳分享,免費(fèi)在線閱讀,更多相關(guān)內(nèi)容在行業(yè)資料-天天文庫。
1、南京信息工程大學(xué)實(shí)驗(yàn)(實(shí)習(xí))報(bào)告實(shí)驗(yàn)名稱交換式和虛擬局域網(wǎng)日期得分指導(dǎo)教師計(jì)算機(jī)專業(yè)亂箭工程年級(jí)09班次1姓名周海燕學(xué)號(hào)200923111111、實(shí)驗(yàn)?zāi)康耐ㄟ^組裝交換式以太網(wǎng),初步了解和掌握配置VLAN的方法2、實(shí)驗(yàn)內(nèi)容(1)利用交換機(jī)組裝簡(jiǎn)單的交換式以太網(wǎng)(2)配置以太網(wǎng)交換機(jī)(3)在交換式以太網(wǎng)上劃分VLAN3、實(shí)驗(yàn)步驟拓?fù)鋱D:Switch(config)#hostnameS1S1(config)#S1(config)#lineconsole0S1(config-line)#loginS1(config-lin
2、e)#password123456S1(config-line)#exitS1#logoutRoutercon0isnowavailablePressRETURNtogetstartedPassword:S1>S1(config)#linevty015S1(config-line)#loginS1(config-line)#passwordabcdefS1(config)#enablepasswordqqqqqS1(config)#enablesecretweweweS1(config)#exitS1#exitPa
3、ssword:S1>enablePassword:S1#S1(config)#ipdefault-gateway201.71.19.1S1(config)#interfacevlan1S1(config-if)#ipaddress201.71.19.8255.255.255.0S1(config-if)#noshutdownS1#copyrunning-configstartup-configS1#reload>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
4、>>>>>>>>>>>>>>>>>Switch#vlandatabaseSwitch(vlan)#vlan20nameVLAN20Switch(vlan)#vlan30nameVLAN30Switch(vlan)#exitSwitch#Switch#conftSwitch(config)#interfacefa0/5Switch(config-if)#switchportaccessvlan20Switch(config-if)#interfacefa0/6Switch(config-if)#switchporta
5、ccessvlan20Switch(config-if)#interfacefa0/9Switch(config-if)#switchportaccessvlan30>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>在S1上創(chuàng)建VLAN2:S1#vlandatabaseS1(vlan)#vlan2nameVLAN2S1(vlan)#exit為VLAN2分配接口:S1#conftS1(config)#interfacefa0/3
6、S1(config-if)#switchportaccessvlan2S1(config-if)#interfacefa0/4S1(config-if)#switchportaccessvlan2S1(config-if)#interfacefa0/5S1(config-if)#switchportaccessvlan2在S2上創(chuàng)建VLAN2:S2#vlandatabaseS2(vlan)#vlan2nameVLAN2S2(vlan)#exit為VLAN2分配接口:S2#conftS2(config)#interf
7、acefa0/1S2(config-if)#switchportaccessvlan2S2(config-if)#interfacefa0/3S2(config-if)#switchportaccessvlan2定義交換機(jī)S1的8號(hào)接口為Trunk接口:S1(config-if)#interfacefa0/8S1(config-if)#switchportmodetrunk定義交換機(jī)S2的8號(hào)接口為Trunk接口:S2(config-if)#interfacefa0/8S2(config-if)#switchpor
8、tmodetrunk>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>定義S1為VTP服務(wù)器,域名為jsj:S1#conftS1(config)#vtpmodeserverS1(config)#vtpdomainjsj在S1上創(chuàng)建VLAN20、VLAN30:S1(con