

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進行舉報或認領(lǐng)
文檔簡介
1、CISCO培訓(xùn)文檔 (交換機的基本配置),湖南聯(lián)信科技有限公司,拓撲圖,實驗要求,,,一、最基本要求分別重命名兩臺交換機為:sw1和sw2關(guān)閉域名查找(解釋)設(shè)置輸入同步設(shè)置執(zhí)行會話時間為20分30秒,二、設(shè)置路由器的時區(qū)、日期和時鐘,實驗要求,,,三、設(shè)置交換機的接口:把fa1/7接口設(shè)置為:速率10M;半雙工模式;access模式把fa1/8接口設(shè)置為:速率100M;全雙工模
2、式;access模式;portfast把fa1/1和fa1/2接口設(shè)置為:速率100M;全雙工模式;trunk模式;trunk封裝dot1q,四、配置靜態(tài)MAC地址:在sw1上把MAC地址:0010.65c9.2568與0012.2b30.1234分別以靜態(tài)方式分配給接口fa1/9和fa1/10在sw2上把MAC地址:1111.1111.1111與2222.2222.2222分別以靜態(tài)方式分配給接口fa1/9和fa1/10,實驗要
3、求,,,五、設(shè)置交換機管理vlan IP地址和默認網(wǎng)關(guān),七、設(shè)置密碼設(shè)置訪問配置交換機的端口(Console和VTY)密碼使用service password-encryption命令把明文密碼隱藏起來使用MD5算法對特權(quán)模式進行加密設(shè)置實現(xiàn)對同一網(wǎng)段的交換機進行telnet訪問設(shè)置,六、設(shè)置交換機的描述信息設(shè)置登陸描述信息設(shè)置fa1/1和fa1/2接口的描述信息,實驗要求,,,八、創(chuàng)建靜態(tài)hostname表,然后使用該表對
4、直連的交換機進行telnet訪問設(shè)置,實驗步驟,一、基本要求SW1:Router>show versionRouter>enableRouter#configure terminalRouter(config)#hostname sw1sw1(config)#no ip domain-lookupsw1(config)#line console 0sw1(config-line)#logging synch
5、ronous sw1(config-line)#exec-timeout 20 30sw1(config-line)#end,SW2:Router>show versionRouter>enRouter#conf tRouter(config)#ho sw2sw2(config)#no ip domain-loosw2(config)#line con 0sw2(config-line)#logg ssw
6、2(config-line)#exec-ti 20 30sw2(config-line)#end,實驗步驟,二、設(shè)置路由器的時區(qū)、日期和時鐘SW1:sw1#show clock*00:05:58.767 UTC Fri Mar 1 2002sw1#conf tsw1(config)#clock timezone Beijing +8sw1(config)#exitsw1#clock set 8:22:50 oct 22
7、 2008sw1#show clock08:22:53.815 Beijing Wed Oct 22 2008SW2設(shè)置同上,實驗步驟,三、設(shè)置交換機的接口SW1:Sw1#show interfaces status //查看交換機所有接口默認狀態(tài)信息sw1#conf tsw1(config)#int fa1/7 //進入fa1/7接
8、口sw1(config-if)#speed 10 //設(shè)置速度為10M;speed ?可查看可選參數(shù)sw1(config-if)#duplex half //設(shè)置為半雙工模式;duplex ?可查看可選參數(shù) sw1(config-if)#switchport mode access //設(shè)置為訪問模式;switchport mode ?查看
9、參數(shù)sw1(config-if)#no shutdownsw1(config-if)#exit,實驗步驟,sw1(config)#int fa1/8 //進入fa1/8sw1(config-if)#speed 100 //設(shè)置速度為100Msw1(config-if)#duplex full //設(shè)置
10、為全雙工模式sw1(config-if)#switchport mode access //設(shè)置為訪問模式sw1(config-if)#spanning-tree portfast //設(shè)置接口為portfast模式(前提端口為訪問模式)sw1(config-if)#no shsw1(config-if)#exitsw1(config)#int range fa1/1 , fa1/2
11、 //同時配置fa1/1和fa1/2接口sw1(config-if-range)#speed 100sw1(config-if-range)#duplex fullsw1(config-if-range)#switchport mode trunk //封裝trunk模式sw1(config-if-range)#switchport trunk encapsulation dot1
12、q //trunk封裝dot1qsw1(config-if-range)#no shsw1(config-if-range)#end,實驗步驟,檢查命令(每配置完一個接口檢查一次):sw1#show running-config interface fa1/7 //查看接口當(dāng)前運行的配置sw1#show interfaces fa1/7 //查看
13、接口的完整信息sw1#show interfaces statussw1#show interfaces fa1/1 switchport sw1#show interfaces trunksw1#show vlan brief //實驗時未能使用改命令sw1#show ip interface brief
14、 //查看所有接口狀態(tài)的概要信息 SW2的配置同上,實驗步驟,四、配置靜態(tài)MAC地址SW1:sw1#conf tsw1(config)#mac-address-table static 0010.65c9.2568 interface fa1/9 vlan 1sw1(config)#mac-address-table static 0012.2b30.1234 interface fa
15、1/10 vlan 1sw1(config)#interface range fa1/9 , fa1/10sw1(config-if-range)#no shsw1(config-if-range)#endsw1#show mac-address-table //查看MAC地址表中所有MAC地址sw1#show mac-address-table static
16、//查看靜態(tài)MAC地址表sw1#show mac-address-table dynamic //查看動態(tài)MAC地址表sw1#show mac-address-table interface fa1/1 //查看指定接口的MAC地址,實驗步驟,SW2:sw2#conf tsw2(config)#mac-address-table static 1111.1111.1111 int fa1/9
17、 vlan 1sw2(config)#mac-address-table static 2222.2222.2222 int fa1/10 vlan 1sw2(config)#int ran fa1/9 , fa1/10sw2(config-if-range)#no shsw2(config-if-range)#end,實驗步驟,五、設(shè)置交換機管理vlan IP和默認網(wǎng)關(guān)SW1:sw1#conf tsw1(config)
18、#interface vlan 1sw1(config-if)#ip add 10.1.1.1 255.255.255.0sw1(config-if)#no shsw1(config-if)#ip default-gateway 10.1.1.254sw1(config)#endsw1#show int vlan 1sw1#show ip int vlan 1sw1#show ip default-gateway,實驗步驟
19、,SW2:sw2#conf tsw2(config)#int vlan 1sw2(config-if)#ip add 10.1.1.2 255.255.255.0sw2(config-if)#no shsw2(config-if)#exitsw2(config)#ip default-ga 10.1.1.254sw2(config)#endsw2#ping 10.1.1.1,實驗步驟,六、設(shè)置交換機的描述信息SW1:
20、sw1(config)#banner motd # Enter TEXT message. End with the character 'm'. //輸入完文本后以m結(jié)束,有的以#結(jié)束This is CCNA club sw1 m //文本內(nèi)容sw1(config)#int range fa1/1 , fa1/2sw1(config-if-ran
21、ge)#desc link to office switchsw1(config-if-range)#no shsw1(config-if-range)#end SW2配置同上,實驗步驟,七、設(shè)置密碼sw1#conf tsw1(config)#line con 0sw1(config-line)#pass ciscosw1(config-line)#loginsw1(config-line)#exitsw
22、1(config)#line vty ? //查看vty接口數(shù) First Line numbersw1(config)#line vty 0 871sw1(config-line)#pass ciscosw1(config-line)#loginsw1(config-line)#exitsw1(config)#service password-encryptionsw1(config)#enable s
23、ecret ciscosw1(config)#endSW2配置同上,實驗步驟,測試:sw2#telnet 10.1.1.1 //從r2 telnet r1Trying 10.1.1.1 ... OpenUser Access VerificationPassword: sw1>enPassword: sw1#,實驗步驟,八、創(chuàng)建靜態(tài)hostname表,然后用
24、該表對直連的交換機進行telnet訪問設(shè)置SW1:sw1#conf tsw1(config)#ip host sw2 10.1.1.2 //鄰居的hostname和IP地址sw1(config)#end SW2:sw1#conf tsw1(config)#ip host sw1 10.1.1.1sw1(config)#end,實驗步驟,sw2#telnet sw1Trying
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 眾賞文庫僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
評論
0/150
提交評論