資源描述:
《思科模擬器命令.docx》由會員上傳分享,免費在線閱讀,更多相關(guān)內(nèi)容在教育資源-天天文庫。
1、1.計算機命令:PCAlogin:root;使用root用戶password:linux;口令是linux#shutdown-hnow;同init0關(guān)機#logout#login#ifconfig;顯示IP地址#ifconfigeth0netmask;設(shè)置IP地址#ifconfigeht0netmaskdown;刪除IP地址#routeadddefaultgw;設(shè)置網(wǎng)關(guān)#routedeldefaultgw;刪除網(wǎng)關(guān)#route;顯示網(wǎng)關(guān)#ping#telnet
2、2.交換機支持的命令:交換機基本狀態(tài):switch:;交換機的ROM狀態(tài)rommon>;路由器的ROM狀態(tài)hostname>;用戶模式hostname#;特權(quán)模式hostname(config)#;全局配置模式hostname(config-if)#;接口狀態(tài)交換機口令設(shè)置:switch>enable;進入特權(quán)模式switch#configterminal;進入全局配置模式switch(config)#hostname;設(shè)置交換機的主機名switch(config)#enablesecretxxx;設(shè)置特權(quán)加密口令switch(config)#ena
3、blepasswordxxa;設(shè)置特權(quán)非密口令switch(config)#lineconsole0;進入控制臺口switch(config-line)#linevty04;進入虛擬終端switch(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
4、/1;進入端口1switch(config-if)#switchportaccessvlan2;當(dāng)前端口加入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)#vtppassword;設(shè)置發(fā)vt
5、p密碼switch(config)#vtpmodeserver;設(shè)置發(fā)vtp模式switch(config)#vtpmodeclient;設(shè)置發(fā)vtp模式交換機設(shè)置IP地址:switch(config)#interfacevlan1;進入vlan1switch(config-if)#ipaddress;設(shè)置IP地址switch(config)#ipdefault-gateway;設(shè)置默認(rèn)網(wǎng)關(guān)switch#dirflash:;查看閃存交換機顯示命令:switch#write;保存配置信息switch#showvtp;查看vtp配置信息switc
6、h#showrun;查看當(dāng)前配置信息switch#showvlan;查看vlan配置信息switch#showinterface;查看端口信息switch#showintf0/0;查看指定端口信息3.路由器支持的命令:路由器顯示命令:router#showrun;顯示配置信息router#showinterface;顯示接口信息router#showiproute;顯示路由信息router#showcdpnei;顯示鄰居信息router#reload ??;重新起動路由器口令設(shè)置:router>enable;進入特權(quán)模式router#configterminal;進入全局
7、配置模式router(config)#hostname;設(shè)置交換機的主機名router(config)#enablesecretxxx;設(shè)置特權(quán)加密口令router(config)#enablepasswordxxb;設(shè)置特權(quán)非密口令router(config)#lineconsole0;進入控制臺口router(config-line)#linevty04;進入虛擬終端router(config-line)#login;要求口令驗證router(config-line)#passwordxx;設(shè)置登錄口令xxrout