nsthink-666

1 路由器命令

2 交换机命令

恢复出厂设置

1、电脑COM口(没有的使用USB转COM转接头)通过console线连接到交换机console口,并打开超级终端调试窗口。
2、交换机接上电,上电过程中,按住交换机正面"mode"按钮,直到sys灯不闪动为止(即:常亮状态)松开"mode"按钮(也可以关注超级终端界面显示字符了就可以松开"mode"按钮),进入到交换机的底层模式switch:
3、输入命令switch:  flash_init  回车,初始化flash文件系统(该模式下,不支持命令的缩写,一定要把命令写全。)
4、输入命令switch:  dir  flash:  回车,查看交换机配置文件。(注意flash后面是有冒号的)
5、输入命令switch:  rename  flash:config.text  flash:config.bak回车,重命名交换机原始配置文件为config.bak,并使用命令switch:  dir  flash:查看文件名是否修改成功
6、成功后,输入命令switch:  boot,重启交换机。
7、最好在重启后清空当前配置和VLAN数据
Switch#erase  startup-config
Switch#delete  flash:vlan.dat
Switch#reload
最后当系统提示是否保存配置时,选择no

telnet配置

telnet enable
line vty 0 4
login local
username xxx privilege 15 secret xxx
enable secret yyy

查看交换机端口的配置信息

查看当前所有配置:
show running-config   

查看指定端口配置:
show running-config interfaces <int-type int-number>

查看所有端口详细信息:
show interfaces                                                    

查看指定端口详细信息:
show interfaces <interface-type interface-number>           

查看所有端口简要信息:
show interfaces status

查看3层端口简要信息:
show ip interfaces brief

查看指定端口简要信息
show interfaces <interface-type interface-number> status

查看聚合端口的状态信息

查看每个聚合组内包含哪些端口
show etherchannel summary        

查看所有聚合组信息及其所含端口的简要状态信息
show etherchannel detail      

查看所有聚合组的简要信息及其包含哪些端口
show etherchannel port-channel   

查看指定聚合组的端口信息
show interfaces port-channel <group-number>          

查看光纤端口的状态信息

查看所有光纤口的详细状态信息
show interfaces transceiver detail                  

查看指定光口的详细状态信息
show interfaces <int-type int-number> transceiver detail 

查看所有光纤口的简要状态信息
show interfaces transceiver           

查看指定光纤口的简要状态信息
show interfaces <int-type int-number> transceiver 

查看网段DHCP地址池使用情况

show ip dhcp pool oa
show ip dhcp pool vlan 113

分类:

技术点:

相关文章: