当前位置:文档之家› 华为交换机简单配置

华为交换机简单配置

一、配置登陆IP地址命令如下
<huawei> system-view //进入系统模式[huawei] interface Vlanif 1 //进入三层vlanif 接口[huawei-Vlanif1] ip address 192.168.0.1 24 //配置管理IP 地[huawei]shutdown
[huawei]undo shutdown
[huawei]display ip interface brief //查看IP
二、设置console密码
<huawei> system-view
[huawei]user-interface console 0 //进入用户接口模式[huawei-ui-console0]set authentication-mode password cipher admin1234
//设置console密码admin1234
三、创建web 管理账号
<huawei>dir
<huawei> system-view
[huawei] http server load ********.web.zip
[huawei] http server enable //系统视图下使能http 功能[HUAWEI]http secure-server enable
[huawei] aaa //系统视图下进入aaa 模式[huawei-aaa] local-user admin password cipher admin1234 //创建HTTP 登录用户名admin、密码admin1234
[huawei-aaa] local-user admin privilege level 15 //配置http 登录名权限
[huawei-aaa] local-user admin service-type http ssh telnet web //开启http ssh telnet web 登录服务
[huawei-aaa] quit //退出aaa [huawei]user-interface vty 0 4 //进入远程配置视图模式[huawei-ui-vty0-4]authentication-mode aaa //远程连接使用AAA认证模式,远程连接时可以调用AAA模式中的用户进行登录验证[huawei]undo HTTP server enable
[huawei]HTTP server port XX //更改默认的80端口
<huawei>save //全局模式下保存
四、VLAN设置
[huawei]VLAN 10 //创建或进入VLAN10
[huawei-vlan10]port gigabiteethernet 0/0/21 //端口21加入VLAN10 [huawei]Interface gigabitethernet 0/0/21 //进入端口21
[huawei-gigabitethernet0/0/21] port link-type access //设置端口类型为access
[huawei-gigabitethernet0/0/21] quit
[huawei]Interface gigabitethernet 0/0/22
[huawei-gigabitethernet0/0/22] port link-type trunk //trunk类型[huawei-gigabitethernet0/0/22]port trunk allow-pass vlan 1 10 //允许vlan1、vlan10通过该端口。

相关主题