ImageVerifierCode 换一换
格式:DOCX , 页数:18 ,大小:20.72KB ,
资源ID:8048324      下载积分:3 金币
快捷下载
登录下载
邮箱/手机:
温馨提示:
快捷下载时,用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)。 如填写123,账号就是123,密码也是123。
特别说明:
请自助下载,系统不会自动发送文件的哦; 如果您已付费,想二次下载,请登录后访问:我的下载记录
支付方式: 支付宝    微信支付   
验证码:   换一换

加入VIP,免费下载
 

温馨提示:由于个人手机设置不同,如果发现不能下载,请复制以下地址【https://www.bdocx.com/down/8048324.html】到电脑端继续下载(重复下载不扣费)。

已注册用户请登录:
账号:
密码:
验证码:   换一换
  忘记密码?
三方登录: 微信登录   QQ登录  

下载须知

1: 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。
2: 试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。
3: 文件的所有权益归上传用户所有。
4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
5. 本站仅提供交流平台,并不能对任何下载内容负责。
6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

版权提示 | 免责声明

本文(路由器交换机命令.docx)为本站会员(b****5)主动上传,冰豆网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知冰豆网(发送邮件至service@bdocx.com或直接QQ联系客服),我们立即给予删除!

路由器交换机命令.docx

1、路由器交换机命令1、查看交换表show cam dynamic (大型交换机)show cam ip-address-table (小型交换机)2、启动http serverswitch-3548enablepassword:switch-3548#config tswitch-3548(config)#switch-3548(config)#ip http serverswitch-6500enableEnter password:switch-6500(enable)set ip http server enableswitch-6500(enable)3、配置交换机主机名switch-3

2、548(config)#hostname switch-PHY-3548switch-PHY-3548(config)#switch-6500(enable)set system name switch-PHY-6500system name setswitch-PHY-6500(enable)4、设置系统提示switch-6500(enable)set system prompt switch-PHY-6500switch-6500(enable)5、配置超级用户口令switch-3548(config)#enable secret 5 zzz (加密口令)switch-3548(confi

3、g)#enable password zzz (明码口令)switch-3548(config)#enable password 7 zzz (加密口令)switch-PHY-3548(config)#switch-PHY-6500set enablepass Enter old passwoed:Enter new password:Retype new password:Password changed.switch-PHY-6500(enable)6、配置远程登录口令switch-PHY-3548(config)#line vty 0 4switch-PHY-3548(config-li

4、ne)#password 7zzz (加密口令)switch-PHY-3548(config-line)#password 0zzz (明码口令)switch-PHY-3548(config-line)#switch-6500(enable)set passwordEnter old password:Enter new password:Retype new password:switch-6500(enable)7、改变系统时间switch-PHY-3548(config)#clock set 23:00:00 23 February 2007switch-PHY-6500set time

5、 Fri 23/2/2007 23:00:008、配置设备管理地址(IP地址)switch-PHY-3548(config)#interface VLAN1switch-PHY-3548(config-if)#ip address switch-PHY-3548(config-if)#switch-PHY-6500(enable)set interface sc0 switch-PHY-6500(enable)9、配置缺省路由switch-PHY-3548(config)#ip default-gateway switch-PHY-3548(config)#switch-PHY-6500(en

6、able)set ip router 0、0、0、0 switch-PHY-6500(enable)10、进入端口配置模式switch-PHY-3548(config)#interface f0/24switch-PHY-3548(config-if)#11、配置交换机端口描述switch-PHY-3548(config-if)#description To-libswitch-PHY-3548(config-if)#switch-PHY-6500(enable)set port name 4/5 mail-serverswitch-PHY-6500(enable)12、配置交换机端口的关闭与

7、开启switch-PHY-3548(config-if)#shoudown (关闭端口)switch-PHY-3548(config-if)#no shoudown (开启端口)switch-PHY-3548(config-if)#switch-PHY-6500(enable)set port enable 4/5 (开启端口)switch-PHY-6500(enable)set port disable 4/5 (关闭端口)13、配置交换机端口的通信方式switch-PHY-3548(config-if)#duplex auto (缺省值为自适应)switch-PHY-3548(config

8、-if)#duplex full (设置为全双工)switch-PHY-3548(config-if)#duplex half (设置为半双工)switch-PHY-3548(config-if)#switch-PHY-6500(enable)set port duplex 5/1 full (设置为全双工)switch-PHY-6500(enable)set port duplex 5/1-24 fullswitch-PHY-6500(enable)set port duplex 5/1 half (设置为全双工)switch-PHY-6500(enable)set port duplex

9、5/1-24 half14、配置交换机端口的传输速率switch-PHY-3548(config-if)# speed 10 (设置为10Mbps)switch-PHY-3548(config-if)# speed 100 (设置为100Mbps)switch-PHY-3548(config-if)# speed auto (设置为自动速率配置)switch-PHY-6500(enable)set port speed 5/1 auto (设置为自动速率配置)switch-PHY-6500(enable)set port speed 5/1-24 autoswitch-PHY-6500(ena

10、ble)set port speed 5/1 10 (设置为10Mbps)switch-PHY-6500(enable)set port speed 5/1 100 (设置为100Mbps)switch-PHY-6500(enable)set port speed 5/1 1000 (设置为1000Mbps)15、交换机VTP的配置switch-PHY-3548(config)#vtp domain pku (设置vtp域名为pku)switch-PHY-3548(config)#vtp mode server (设置为vtp server 模式)switch-PHY-3548(config)

11、#vtp mode client (设置为vtp client 模式)switch-PHY-3548(config)#vtp mode Transparent (设置为vtp Transparent 模式)switch-PHY-3548(config)#switch-PHY-6500(enable)set vtp domain pku (设置vtp域名为pku)switch-PHY-6500(enable)set vtp mode server (设置为vtp server 模式)switch-PHY-6500(enable)set vtp mode client (设置为vtp client

12、 模式)switch-PHY-6500(enable)set vtp mode Transparent (设置为vtp Transparent 模式)switch-PHY-6500(enable)set vtp mode off (VTP关闭)switch-PHY-6500(enable)16、进入VLAN配置模式switch-PHY-3548#vlan dataswitch-PHY-3548(vlan)#17、建立、删除vlanswitch-PHY-3548(vlan)#vlan 1000 name vlan1000 (建立、修改 VLAN)switch-PHY-3548(vlan)#swi

13、tch-PHY-3548(vlan)#no vlan1000 (删除VLAN)switch-PHY-3548(vlan)#switch-PHY-6500(enable)set vlan 999 name vlan999 (建立、修改 VLAN)switch-PHY-6500(enable)switch-PHY-6500(enable)clear vlan999 (删除VLAN)Do you want to continue(y/n)n? yswitch-PHY-6500(enable)18、进入交换机端口配置模式switch-PHY-3548#configure tswitch-PHY-354

14、8(config)#int f0/24switch-PHY-3548(config-if)#19、为交换机端口分配VLANswitch-PHY-3548(config-if)#switchport access vlan 248(端口f0/24在248号vlan)switch-PHY-3548(config-if)#switch-PHY-6500(enable)set vlan 42 5/20(将端口5/20划分在42号vlan 中)switch-PHY-6500(enable)20、配置VLAN Trunkswitch-PHY-3548(config-if)#switchport mode

15、trunkswitch-PHY-3548(config-if)#switchport trunk encapsulation dot1 q (802.1)switch-PHY-3548(config-if)#switchport trunk encapsulation isl (isl)switch-PHY-3548(config-if)#switchport trunk encapsulation negotiate P(自动协商)switch-PHY-3548(config-if)#switch-PHY-3548(config-if)#switchport trunk allowed vl

16、an 10-24 (10-24中继)switch-PHY-3548(config-if)#switchport trunk allowed vlan except 100-1000switch-PHY-3548(config-if)# (“except 100-1000”除100-1000号VLAN以外,所有允许)switch-PHY-6500(enable)set trunk5/1 on dot 1 qPort(s)1/2 trunk mode set to on.(设置端口5/1为VLAN Trunk模式,封装802.1协议)switch-PHY-6500(enable)clear tru

17、nk 5/24 3-36(从端口5/24 允许 删除3-36号vlan)21、打开或关闭STPswitch-PHY-3548(config)#spanning-tree vlan3 (启用STP)switch-PHY-3548(config)#no spanning-tree vlan3 (关闭STP)switch-PHY-3548(config)#switch-PHY-6500(enable)set spantree enable 3 (启用STP)switch-PHY-6500(enable)set spantree disable 3 (关闭STP)switch-PHY-6500(ena

18、ble)22、配置根网桥和备份根网桥switch-PHY-3548(config)#spanning-tree vlan 3 root primary (设置主root)switch-PHY-3548(config)#spanning-tree vlan 3 root secondry (设置备份网桥)switch-PHY-3548(config)#switch-PHY-6500(enable)set spantree root 1,200-204 (设置主root)switch-PHY-6500(enable)set spantree root secondry 1,200-204(设置备份

19、网桥)23、设置生成树优先级switch-PHY-3548(config)# spanning-tree vlan 3 priority 8192switch-PHY-3548(config)#switch-PHY-6500(enable)set spantree priority 8192switch-PHY-6500(enable)24、配置BackboneFast生成树可选功能switch-PHY-3548(config)# spanning-tree backbonefast (允许backbonefast)switch-PHY-3548(config)#switch-PHY-6500

20、(enable)set spantree backbonefast enable (允许backbonefast)switch-PHY-6500(enable)set spantree backbonefast disable(不允许backbonefast)25、Uplinkfast设置switch-PHY-3548(config)# spanning-tree uplinkfastswitch-PHY-3548(config)# spanning-tree uplinkfast max-updata-rate 3200switch-PHY-3548(config)#max-updata-r

21、ate的值是0-32000,单位是packet/s(每秒更新的包数)switch-PHY-6500(enable)set spantree uplinkfast enableswitch-PHY-6500(enable)set spantree uplinkfast enable rate 40switch-PHY-6500(enable)rate的缺省值是15packets/100ms26、配置PortFast生成树可选功能switch-PHY-3548(config)# spanning-tree portfast defaultswitch-PHY-3548(config)#switch

22、-PHY-6500(enable)set spantree portfast 3/2 enable(打开portfast)switch-PHY-6500(enable)set spantree portfast 4/1-24 disable(关闭portfast)switch-PHY-6500(enable)set spantree portfast 3/2 default(缺省启用portfast)27、被指BPDU生成树可选功能switch-PHY-3548(config)# spanning-tree portfast bpdufilter defaultswitch-PHY-3548(

23、config)#switch-PHY-6500(enable)set spantree portfast bpdu-filter enable (所有端口启用bpdu-filter)switch-PHY-6500(enable)set spantree portfast bpdu-filter disable(所有端口关闭bpdu-filter)switch-PHY-6500(enable)set spantree portfast bpdu-filter3/1-24 enable(3/1-24端口启用bpdu-filter)switch-PHY-6500(enable)set spantre

24、e portfast bpdu-filter3/1-24 disable(3/1-24端口关闭bpdu-filter)1、进入路由器模式用户模式 :Router 进入用户模式 telnet特权模式:Router password: Router#全局配置模式:Router#configure terminalRouter(config)#接口配置模式:Router(config)#int f0/12Router(config)#进入虚拟终端配置模式Router(config)#line vty 0 15Router(config-line)#进入RIP路由协议配置模式Router(config

25、)#router ipRouter(config-router)#2、在虚拟终端上配置远程登录密码Router(config)#line vty 0 15Router(config-line)#password 7 zzz307Router(config-line)#3、拷贝配置文件到TFTP serverRouter#write networkRemote host?Router#4、拷贝running-config到TFTPserverRouter#copy running-config tftp:Address or name of remote host?Destination fil

26、enameRouter-config?!3519 bytes copied in3.368secs(1066bytes/sec)Router#5、拷贝bootflash中的配置文件到TFTPserverRouter#copy bootflash:tftp:Source filename?Address or name of remote host?Destnation filenameconfig.txt?config.txt!23584bytes copied in 0.144secs(163778bytes/sec)Router#6、从TFTPserver上的配置文件拷贝到running-

27、configRouter#copy tftp:running-configAddress or name of remote host?Source filename?1383-wireless-config(输入文件名)Destination filenamerunning-config?Router#7、将TFTPserver上的配置文件拷贝到bootflashRouter#copy tftp:bootflash:Address or name of remote host?Source filename?config.txtDestination filenameconfig.txt?R

28、outer#8、配置路由器的主机名Router(config)#hostname Router-phyRouter-phy(config)#9、配置超级用户口令Router(config)#enable secret phy123Router(config)#enable password 7phy123Router(config)#10、设置系统时钟Router#calendar set 10:24:00 22 march 2007Router#11、保存配置到路由器的NVRAM中:Router#write memory12、保存配置到TFTP服务器中:Router#write networ

29、k tftp13、删除路由器全部配置:Router#write erase14、查看每一级路由器工作情况:Routertrace 15、查看flash:Routershow flash16、查看系统时钟:Routersh clock17、查看路由器软、硬件版本:Routersh version18、查看路由器的配置:Router#sh configuration19、查看路由表:Router#sh ip router20、查看ip路由协议的详细信息:Router#sh ip protocols21、配置接口描述信息:Router(config)#int g6/0Router(config-if

30、)#description TO-Beijing Foreign Studies UniversityRouter(config-if)#22、配置接口带宽:Router(config)#interface POS3/0Router(config-if)#bandwidth 2500000 (设置为2.5G)23、配置接口的IP地址Router(config)#interface f2/3Router(config-if)#ip address 24、接口开启与关闭Router(config)#interface f2/3Router(config-if)#shoudown (关闭接口)Router(config-if)#no shoudown (开启接口)25、配置标准的以太网接口(Enthrnet),简写eRouter(config)#interface Enthrnet0Router(config-if)#description To Huabei Qi Qiu WANGRouter(config-if)#ip address 202.112.7.4 255.255.255.0Router(config-if)#ba

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1