怎样登陆 华为s2700 交换机web

如题所述

第1个回答  2022-12-13

首先我们使用console线连接交换机,使用crt打开配置界面。

(1).激活web配置

<Quidway>dir (确认设备后缀名为web.zip的文件名字)

<Quidway>sys

1.配置ip地址

[Quidway]interface vlanif1

[Quidway-Vlanif1]ip address 192.168.0.2 255.255.255.0

[Quidway-Vlanif1]q

2.找个端口插上网线和pc直连

3.配置PC地址与设备该管理地址同网段。(如192.168.0.3)

[Quidway]http server load S2700SI-V100R005C01SPC100.web.zip (这里改为您dir看到的web文件的名字)

[Quidway]http secure-server enable

[Quidway]http server enable

[Quidway]aaa

[Quidway-aaa]local-user huawei password cipher Huawei@123 ---huawei为用户名 Huawei@123为密码 区分大小写

[Quidway-aaa]local-user huawei service-type http

[Quidway-aaa]local-user huawei privilege level 15

[Quidway-aaa]quit

[Quidway]quit

<Quidway>save

扩展资料:

一、模式命令:

1. 用户模式:Switch>

2. 特权模式:Switch>enable

Switch#

3. 全局配置模式:Switch#config terminal

Switch(config)#

4. 接口配置模式:Switch(config)#interface fastethernet0/1

Switch(config-if)#

5. Line模式:Switch(config)#line console 0

Switch(config-line)#

二、特权模式下的命令:

1. 查看机MAC地址:Switch#show mac-address-table

2. 发现(CDP):

Switch#show cdp

Switch#show cdp interface fastethernet0/1

Switch#show cdp neighbors

Switch#show cdp neighbors detail

Switch#show cdp entry

3. 保存机配置:

Switch#copy running-config startup-config或者Switch#write

4. 恢复交换机出厂值:

Switch#erase startup-config

Switch#reload

三、全局配置模式下的命令:

1. 配置主机名:Switch(config)#hostname Sw1

Sw1(config)#

2、 设置登录后台密码:Switch(config)#line console 0

Switch(config-line)#password 密码

Switch(config-line)#login

3. 使能口令:Switch(config)#enable Password 密码

4. 加密保存的使能口令:Switch(config)#enable secret 密码

5. 配置IP地址:

Switch(config)#interface vlan 1

Switch(config-if)#ip address IP地址 网关

Switch(config-if)#no shutdown

6. 配置交换机网关:Switch(config)#ip default-gateway 网关

参考资料来源:百度百科-交换机命令

相似回答
大家正在搜