路由器常用配置命令

路由器常用配置命令

ID:40888151

大小:56.50 KB

页数:6页

时间:2019-08-09

路由器常用配置命令_第1页
路由器常用配置命令_第2页
路由器常用配置命令_第3页
路由器常用配置命令_第4页
路由器常用配置命令_第5页
资源描述:

《路由器常用配置命令》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库

1、Cisco常用配置命令Cisco常用配置命令一.交换机的基本配置C2950#configterminal进入全局配置模式showinterfacefastethernet0/1查看端口0/1的配置结果showinterfacefastethernet0/1status查看端口0/1的状态showmac-address-table查看整个MAC地址表clearmac-address-tablerestrictedstatic清除限定性地址C2950(config)#hostname2950A/设置主机名为2950Ainterfacef0/23/进入端口23的配置模

2、式enablepasswordcisco/设置enablepassword为ciscoenablesecretcisco1/设置enablesecret为cisco1ipaddress192.168.1.1255.255.255.0/设置交换机IP地址ipdefault-gateway192.168.1.254/设置默认网关ipdomain-namecisco.com/设置域名ipname-server200.0.0.1/设置域名服务器配置查看MAC地址表mac-address-table?mac-address-tableaging-time100/设置超时是

3、时间为100smac-address-tablepermanent0000.0c01.cc/f0/3加入永久地址mac-address-tablerestrictedstatic0000.0c02.bbcc/f0/6f0/7加入静态地址endshowmac-address-table/查看整个Mac地址表clearmac-address-tablerestrictedstaticC2950(config-if)#interfacefastethernet0/1/进入接口F0/1子配置模式interfaceEthernet0/进入以太网口0子配置模式noshutd

4、own/激活接口speed?/查看speed命令的子命令speed100/设置该端口速率为100Mb/sdulplexfull/half/auto/设置该端口为全双工descriptionTO_PC1/设置该端口描述为TO_PC1showinterfacefastethernet0/1/查看端口0/1的配置结果showinterfacefastethernet0/1status/查看端口0/1的状态配置VTP和STP一.配置VTP2950A#vlandatabase/进入VLAN配置子模式showvtpstatus/查看VTP设置信息showvlan/查看VLA

5、N配置信息copyrunning-configstartup-config/保存配置文件2950A(vlan)#vtpserver/client/设置本交换机为server/client模式vtppruning/启动修剪功能vtpdomainvtpserver/设置域名为vtpservervlan2/创建VLAN2,系统将自动命名vlan3namevlan3/创建VLAN3,并命名为vlan3Switch(config-if)#switchportmodetrunk/设置当前端口为Trunk模式switchporttrunkallowedvlanall/设置允许

6、从该端口交换数据的VLANswitchporttrunkvlanremotevlan6/设置允许交换数据的Vlan(除vlan6外)switchportmodeaccess/设置端口为静态VLAN访问模式switchportaccessvlan2/将端口9分配给相信的VLAN2showvlan生成树协议配置(负载均衡)Switch#spanning-treevlan1port-priority10/设置VLAN1的端口的权值为10(默认值为128)spanning-treevlan1cost19/设置VLAN1生成树路径值为19专题三配置路由协议Router#e

7、nableRouter#configterminalRouter(conf)#hostnameR1showsession/查看终端服务器的会话showline1/查看线路1的状态clearline2/清除线路2A.静态路由格式:iprouteip-addrsubnet-maskgateway加入静态路由R1(conf)#iproute192.168.1.0255.255.255.010.1.1.1iprouting/启动IP路由B.动态路由(1)配置RIP协议nologgingconsole防止大量的端口状态变化信息和报警信息对配置过程的影响[no]iprout

8、ing允许/不允许路由选

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

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

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