Posts tagged ‘交换机配置’

博达交换机(BDCOM S6806)清除telnet空闲用户

一台博达交换机,型号为S6806,telnet至该交换机后,和思科交换机命令相似,输入enable进入了特权模式,再输入config想进入配置模式时,出现了如下图中的提示,为“Only 1 vty is permitted to enter config mode, vty 0 is in configuring.”,大致意思为配置模式已经被vty 0 给占用了。

bdcom1

立刻想到能否把vty 0的管理进程给杀死,首先使用show telnet命令显示出所有telnet的进程号,如下图:

bdcom2

最后,通过clear telnet的命令对显示的进程号进行清除,如下图所示。

bdcom3

完成后,再次使用config命令就能进入配置模式了。

操作记录:

                 Welcome to BDCOM MSU6806 Ethernet Switch

 

Switch>
Switch>en
en
^
Ambiguous Command – It may be one of the following :
enable english enter
Switch>enable
Switch#sh telnet
NO.         Remote Addr     Remote Port          Local Addr      Local Port
   1     192.168.250.103           53082     192.168.109.254              23
   2     192.168.109.145           49666     192.168.109.254              23
   3     192.168.109.145           50259     192.168.109.254              23
   4       61.160.81.178           53549     192.168.109.254              23
   5     186.116.111.108           39349     192.168.109.254              23
   6        179.53.11.96           42448     192.168.109.254              23
Switch#clear telnet 1
Switch#clear telnet 2
Switch#clear telnet 3
Switch#clear telnet 5
clear telnet 5
             ^
Parameter out of range
Switch#sh telnet
NO.         Remote Addr     Remote Port          Local Addr      Local Port
   1     192.168.109.145           49666     192.168.109.254              23
   2       61.160.81.178           53549     192.168.109.254              23
   3       61.216.84.111           34517     192.168.109.254              23
   4     186.116.111.108           40018     192.168.109.254              23
Switch#conf
Switch_config#ip route

H3C S3100解决两个配置问题

1、管理VLAN问题(management-vlan)

在该管理VLAN下配置一个IP地址,然后可以通过TELNET来管理此交换机。在我以前的印象中,二层交换机的管理VLAN是不能在非VLAN 1下的,即二层交换机的管理VLAN肯定为VLAN 1。今天配置了这台交换机,发现交换机有管理VLAN,即management-vlan,默认管理VLAN为1,但可以修改为其它VLAN。可能是我以前不知道有这个命令,还是最近才新增加的功能。下面即为将管理VLAN修改为50的例子:

[switch]vlan 50
[switch]undo management-vlan
[switch]management-vlan 50
[switch]interface Vlan-interface 50
[switch]interface Vlan-interface 50
[switch-Vlan-interface31]ip ad
[switch-Vlan-interface31]ip address 192.168.50.100 255.255.255.0
[switch-Vlan-interface31]quit
[switch]ip route-static 0.0.0.0 0.0.0.0 192.168.50.254

这样,在PC机上就可以通过telnet 192.168.50.100来管理此交换机了。

 

2、初始化交换机

当交换机配置错误就需要初始化交换机,首先交换机重启,然后一直按[ctrl] + b组合键,然后就会跳出password输入框,默认密码为空,直接回车即可。如下所示。

   ***********************************************************
*                                                                            *
*  H3C S3100-26TP-SI BOOTROM, Version 610  *
*                                                                            *
   ***********************************************************

   Copyright(c) 2004-2010 Hangzhou H3C Technologies Co., Ltd.
   Creation date   : Jul 21 2010, 16:49:03
   CPU Clock Speed : 200MHz
   BUS Clock Speed : 33MHz
   Memory Size     : 64MB
   Mac Address     : 3822d619dba6

Press Ctrl-B to enter Boot Menu… 1

password:

回车后,就能看到如下的菜单选项:

    BOOT  MENU

1. Download application file to flash
2. Select application file to boot
3. Display all files in flash
4. Delete file from flash
5. Modify bootrom password
6. Enter bootrom upgrade menu
7. Skip current configuration file
8. Set bootrom password recovery
9. Set switch startup mode
0. Reboot

选择第七项,即跳过当然配置来启动交换机,如下

Enter your choice(0-9): 7
The current setting is running configuration file when reboot.
Are you sure to skip current configuration file when reboot? Yes or No(Y/N) y
Setting……done!

    BOOT  MENU

1. Download application file to flash
2. Select application file to boot
3. Display all files in flash
4. Delete file from flash
5. Modify bootrom password
6. Enter bootrom upgrade menu
7. Skip current configuration file
8. Set bootrom password recovery
9. Set switch startup mode
0. Reboot

完成后,再选择0,即重启交换机,如下:

Enter your choice(0-9): 0
System rebooting…
Starting……

当进入后,就会发现交换机为初始化时的配置了。