思科Cisco交换机路由器设置命令.docx

思科Cisco交换机路由器设置命令.docx

ID:51705935

大小:35.55 KB

页数:5页

时间:2020-03-15

思科Cisco交换机路由器设置命令.docx_第1页
思科Cisco交换机路由器设置命令.docx_第2页
思科Cisco交换机路由器设置命令.docx_第3页
思科Cisco交换机路由器设置命令.docx_第4页
思科Cisco交换机路由器设置命令.docx_第5页
资源描述:

《思科Cisco交换机路由器设置命令.docx》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库

1、思科Cisco交换机、路由器设置命令交换机口令设置:switch>enable;进入特权模式switch#configterminal;进入全局配置模式switch(config)#hostname;设置交换机的主机名switch(config)#enablesecretxxx;设置特权加密口令为xxxswitch(config)#enablepasswordxxx;设置特权非密口令为xxxswitch(config)#lineconsole0;进控制台口(Rs232)初始化switch(config-line)#linevty04;进入

2、虚拟终端virtualttyswitch(config-line)#login;允许登录switch(config-line)#passwordxx;设置登录口令xxswitch#exit;返回命令交换机VLAN设置:switch#vlandatabase;进入VLAN设置switch(vlan)#vlan2;建VLAN2switch(vlan)#novlan2;删vlan2switch(config)#intf0/1;进入端口1switch(config-if)#switchportaccessvlan2;当前端口1加入VLAN2switch(config

3、-if)#switchportmodetrunk;设置为干线switch(config-if)#switchporttrunkallowedvlan1,2;设置允许的vlanswitch(config-if)#switchporttrunkencapdot1q;设置vlan中继switch(config)#vtpdomain;设置发vtp域名switch(config)#vtppasswordswitch(config)#vtpmodeserverswitch(config)#vtpmodeclient交换机设置IP地址:switch

4、(config)#interfacevlan1;进入vlan1switch(config-if)#ipaddress;添加远程登录IPswitch(config)#ipdefault-gateway;添加默认网关switch#dirflash:;查看内存交换机显示命令:switch#write;写入保存switch#showvtpswitch#showrun;查看当前配置信息switch#showvlan;看VLANswitch#showinterface;显示所有端口信息switch#showintf0/0;显示端口0的信息^^

5、^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^路由器显示命令:router#showrun;显示接口router#showinterface;显示接口router#showiproute;显示路由router#showcdpnei;看邻居router#reload  ;重新起动设置口令:router>enable;进入特权模式router#configterminal;进入全局配置模式router(config)#hostname;设置交换机的主机名router(config)#enabl

6、esecretxxx;设置特权加密口令为xxxrouter(config)#enablepasswordxxx;设置特权非密口令为xxxrouter(config)#lineconsole0;进控制台口(Rs232)初始化router(config-line)#linevty04;进入虚拟终端virtualttyrouter(config-line)#login;允许登录router(config-line)#passwordxx;设置登录口令xxrouter(config)#(Ctrl+z);返回特权模式router#exit;返回命令配置IP地址:rou

7、ter(config)#ints0/0;进行串Serail接口router(config-if)#noshutdown;起动接口router(config-if)#clockrate64000;设置时钟router(config-if)#ipaddress10.1.1.1255.255.0.0;设置IP地址和子网掩码router(config-if)#ipadd10.1.1.2255.255.0.0second;router(config-if)#intf0/0.1;进入子接口router(config-subif.1)#ipaddress

8、ask>;router(config-subif.1

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。