交换机常用设备信息查看命令

交换机常用设备信息查看命令

ID:38996646

大小:26.00 KB

页数:3页

时间:2019-06-23

交换机常用设备信息查看命令_第1页
交换机常用设备信息查看命令_第2页
交换机常用设备信息查看命令_第3页
资源描述:

《交换机常用设备信息查看命令》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库

1、交换机常用设备信息查看命令Ruijie#showrunning-config查看设备当前的配置2)Ruijie#showversion查看设备的软件版本信息3)Ruijie#showlog查看设备的日志4)Ruijie#showipinterfacebrief查看设备的三层接口ip和掩码5)Ruijie#showinterfacef0/1查看f0/1接口的信息,包括mac地址,流量信息等等6)Ruijie#showinterfacestatus查看交换接口的信息,包括状态、vlan、双工、速度和使用介质7)Ruijie#sho

2、wvlan查看交换接口所属的vlan信息交换机的基本命令有以下四种:一、模式命令:1.用户模式:Switch>2.特权模式:Switch>enableSwitch#3.全局配置模式:Switch#configterminalSwitch(config)#4.接口配置模式:Switch(config)#interfacefastethernet0/1Switch(config-if)#5.Line模式:Switch(config)#lineconsole0Switch(config-line)#二、特权模式下的命令:1.查看机M

3、AC地址:Switch#showmac-address-table2.发现(CDP):Switch#showcdpSwitch#showcdpinterfacefastethernet0/1Switch#showcdpneighborsSwitch#showcdpneighborsdetailSwitch#showcdpentry3.保存机配置:Switch#copyrunning-configstartup-config或者Switch#write4.恢复交换机出厂值:Switch#erasestartup-configSw

4、itch#reload三、全局配置模式下的命令:1.配置主机名:Switch(config)#hostnameSw1Sw1(config)#2、设置登陆台密码:Switch(config)#lineconsole0Switch(config-line)#password密码Switch(config-line)#login3.使能口令:Switch(config)#enablePassword密码4.加密保存的使能口令:Switch(config)#enablesecret密码5.配置IP地址:Switch(config)#i

5、nterfacevlan1Switch(config-if)#ipaddressIP地址网关Switch(config-if)#noshutdown6.配置交换机网关:Switch(config)#ipdefault-gateway网关四、VLAN配置命令:1.创建vlan命令:a)全局配置模式下:Switch(config)#vlan2Switch(config)#namev2Switch(config)#mtu数值Switch(config)#endb)Vlan数据库下:Switch#vlandatabaseSwitch#

6、vlan2namev2Switch#vlan2mut数值Switch#exit2.删除vlan命令:a)全局配置模式下:Switch(config)#novlan2Switch(config)#endb)Vlan数据库下:Switch#novlan2namev2Switch#exit3.在vlan中添加端口:Switch#configterminalSwitch(config)#interfacef0/1(端口)Switch(config-if)#SwitchportmodeaccessSwitch(config-if)#sw

7、itchportaccessvlan2Switch(config-if)#end一次将多个端口添加到vlan中:Switch#configterminalSwitch(config)#interfacerangef0/1-5(端口)Switch(config-if)#switchportaccessvlan2Switch(config-if)#end注:switch#showvlanbiref(查看vlan信息)4.配置vlantrunk:1.配置接口为trunk命令:Switch(config)#interfacef0/1(

8、端口)Switch(config-if)#Switchportmodetrunk2.配置接口为动态协商模式的命令:Switch(config)#interfacef0/1(端口)Switch(config-if)#switchportmodedynamicdesirable/

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

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

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