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……

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

Leave a Reply