enable;進入特權(quán)模式switch#configterminal;進入全局配置模式switch(config)#hostname;設(shè)置交換機的主機名s">
思科交換機 路由器配置命令大全

思科交換機 路由器配置命令大全

ID:39577304

大?。?2.00 KB

頁數(shù):5頁

時間:2019-07-06

思科交換機 路由器配置命令大全_第1頁
思科交換機 路由器配置命令大全_第2頁
思科交換機 路由器配置命令大全_第3頁
思科交換機 路由器配置命令大全_第4頁
思科交換機 路由器配置命令大全_第5頁
資源描述:

《思科交換機 路由器配置命令大全》由會員上傳分享,免費在線閱讀,更多相關(guān)內(nèi)容在教育資源-天天文庫

1、思科Cisco交換機、路由器設(shè)置命令交換機口令設(shè)置:switch>enable;進入特權(quán)模式switch#configterminal;進入全局配置模式switch(config)#hostname;設(shè)置交換機的主機名switch(config)#enablesecretxxx;設(shè)置特權(quán)加密口令為xxxswitch(config)#enablepasswordxxx;設(shè)置特權(quán)非密口令為xxxswitch(config)#lineconsole0;進控制臺口(Rs232)初始化switch(config-line)

2、#linevty04;進入虛擬終端virtualttyswitch(config-line)#login;允許登錄switch(config-line)#passwordxx;設(shè)置登錄口令xxswitch#exit;返回命令交換機VLAN設(shè)置:switch#vlandatabase;進入VLAN設(shè)置switch(vlan)#vlan2;建VLAN2switch(vlan)#novlan2;刪vlan2switch(config)#intf0/1;進入端口1switch(config-if)#switchportaccessvlan2

3、;當(dāng)前端口1加入VLAN2switch(config-if)#switchportmodetrunk;設(shè)置為干線switch(config-if)#switchporttrunkallowedvlan1,2;設(shè)置允許的vlanswitch(config-if)#switchporttrunkencapdot1q;設(shè)置vlan中繼switch(config)#vtpdomain;設(shè)置發(fā)vtp域名switch(config)#vtppasswordswitch(config)#vtpmodeserverswitc

4、h(config)#vtpmodeclient交換機設(shè)置IP地址:switch(config)#interfacevlan1;進入vlan1switch(config-if)#ipaddress;添加遠程登錄IPswitch(config)#ipdefault-gateway;添加默認(rèn)網(wǎng)關(guān)switch#dirflash:;查看內(nèi)存交換機顯示命令:switch#write;寫入保存switch#showvtpswitch#showrun;查看當(dāng)前配置信息switch#showvlan;看VLANswitch

5、#showinterface;顯示所有端口信息switch#showintf0/0;顯示端口0的信息^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^路由器顯示命令:router#showrun;顯示接口router#showinterface;顯示接口router#showiproute;顯示路由router#showcdpnei;看鄰居router#reload ??;重新起動設(shè)置口令:router>enable;進入特權(quán)模式router#configterminal;進入全局配置

6、模式router(config)#hostname;設(shè)置交換機的主機名router(config)#enablesecretxxx;設(shè)置特權(quán)加密口令為xxxrouter(config)#enablepasswordxxx;設(shè)置特權(quán)非密口令為xxxrouter(config)#lineconsole0;進控制臺口(Rs232)初始化router(config-line)#linevty04;進入虛擬終端virtualttyrouter(config-line)#login;允許登錄router(config-lin

7、e)#passwordxx;設(shè)置登錄口令xxrouter(config)#(Ctrl+z);返回特權(quán)模式router#exit;返回命令配置IP地址:router(config)#ints0/0;進行串Serail接口router(config-if)#noshutdown;起動接口router(config-if)#clockrate64000;設(shè)置時鐘router(config-if)#ipaddress10.1.1.1255.255.0.0;設(shè)置IP地址和子網(wǎng)掩碼router(config-if)#ipadd10.1.1.22

8、55.255.0.0second;router(config-if)#intf0/0.1;進入子接口router(config-subif.1)#ipaddress;router(config-subif.1

當(dāng)前文檔最多預(yù)覽五頁,下載文檔查看全文

此文檔下載收益歸作者所有

當(dāng)前文檔最多預(yù)覽五頁,下載文檔查看全文
溫馨提示:
1. 部分包含數(shù)學(xué)公式或PPT動畫的文件,查看預(yù)覽時可能會顯示錯亂或異常,文件下載后無此問題,請放心下載。
2. 本文檔由用戶上傳,版權(quán)歸屬用戶,天天文庫負(fù)責(zé)整理代發(fā)布。如果您對本文檔版權(quán)有爭議請及時聯(lián)系客服。
3. 下載前請仔細(xì)閱讀文檔內(nèi)容,確認(rèn)文檔內(nèi)容符合您的需求后進行下載,若出現(xiàn)內(nèi)容與標(biāo)題不符可向本站投訴處理。
4. 下載文檔時可能由于網(wǎng)絡(luò)波動等原因無法下載或下載錯誤,付費完成后未能成功下載的用戶請聯(lián)系客服處理。