CISCO交换机和路由器基本配置.doc

CISCO交换机和路由器基本配置.doc

ID:56783137

大小:54.50 KB

页数:20页

时间:2020-07-11

CISCO交换机和路由器基本配置.doc_第1页
CISCO交换机和路由器基本配置.doc_第2页
CISCO交换机和路由器基本配置.doc_第3页
CISCO交换机和路由器基本配置.doc_第4页
CISCO交换机和路由器基本配置.doc_第5页
资源描述:

《CISCO交换机和路由器基本配置.doc》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库

1、一CISCO交换机和路由器基本配置交换机的配置1用户模式switch>2进入特权模式switch>enable  3进入全局配置模式,全局模式的配置对整个交换机生效.switch#configterminal  switch(config)#4进入接口模式,配置只对当前的接口生效switch(config)#interfacef0/1  switch(config-if)#进入line模式,这个模式主要用来对控制台做相应的配置5switch(config)#lineconsole0switch(config-line)6配置主机名switch(c

2、onfig)#hostname主机名7配置使能口令switch(config)#enablepassword密码8配置加密使能口令switch(config)#enablesecret密码9配置ip地址switch(config)#interfacevlan1switch(config)#ip  addip地址子网掩码switch(config)#noshutdown10配置交换机的网关switch(config)#ipdefault-gatewayip地址11保存配置switch#copyruning-configstartup-configs

3、witch#write12清空配置switch#erasestartup-config13清空接口配置switch(config)#interfacef0/1switch(config-if)#defaultinterfacef0/114清空交换码(1)关闭电源.(2)开启电源,并且按住交换机的mode键,当交换机进入................................................................     flash_init     load_helper     bootswitch:(3)在s

4、witch后执行flash_init命令switch:flash-init(4)在查看flash中的文件switch:dirflash:/(5)把config.text文件后缀名改了就可以,并且重新启动.(交换机重启后不会在读取配置文件了)switch:renameflash:config.textconfig.oldswitch:boot(6)启动后进入特权模式查看flash里面的文件,并且把config.text文件改回来.并且把flash里面的文件复制到存中switch#renameflash:config.oldflash:config.

5、textswitch#copystartup-configrunning-config15创建vlan2switch(config)#vlan216删除vlan2switch(config)#novlan217把端口f0/5到10添加到vlan2switch(config)#interfacerangef0/5-10switch(config)#switchportaccessvlan218将f0/1设置成中trunkswitch(config)#interfacef0/1switch(config)#switchportmodetrunk19将

6、f0/1设置成期望型或自动型switch(config)#switchportdynamicdesirable/auto20如果不需要trunk传送vlan2的数据,可以将vlan2从trunk中删除.switch(config)#interfacef*/*  (trunk接口)switch(cofnig-if)#switchprottrunkallowedvlanremovevlan221也可以添加vlan2switch(config)#interfacef*/*  (trunk接口)switch(config)#switchprottrunk

7、allowedvlanaddvlan2二交换机的查看命令switch#showmac-address-table   查看本机的mac地址表switch#showcdpneighbors  列出与本设备相连的cisco设备switch#showrunning-config查看交换机的配置switch#showvlanbrief  查看vlan的详细信息switch#show  Internet   trunk可以查看生成树协议三路由器配置命令1配置默认路由route(config)#iproute0.0.0.00.0.0.0下一跳2配置静态路由r

8、oute(config)#iproute目的ip子网掩码下一跳3对所有密码进行加密route(config)#enable  passw

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

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

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