华为交换机基础配置

作者: 管理员 | 发布时间: 2026-02-21
Huawei@123

Huawei@123

sys

sysname CS

vlan batch 101 200

interface vlanif 200

ip address 10.0.0.251 255.255.255.0

ip route-static 0.0.0.0 0.0.0.0 10.0.0.254

port-group pg1

group-membr ge 1/0/1 to ge 1/0/24

port link-type access

port default vlan 101

port-group pg2

group-membr 10ge 1/0/1 to 10ge 1/0/4

port link-type trunk

port trunk allow-pass vlan 101 200

aaa

local-user jhdz password cipher Jhdz@mm_208893.

local-user jhdz service-type http ssh terminal

local-user jhdz privilege level 3

web-manager http forward enable

web-manager enable port 443

web-manager server-source -i vlanif 200

web-manager ipv4 server-source -a 10.0.0.251 vpn-instance public

user-interface vty 0 4 (vty的虚拟终端 0-4共5个用户可以登录)

authentication-mode password (认证方式:password、aaa)

set suthentication password cipher Jhdz@mm_208893.

protocol inbound all (允许的协议通过:all、ssh、telnet)

ssh server enable

acl 2000

rule permit source 10.0.0.0 0.0.0.255

user-interface vty 0 4

acl 2000 inbound

save
❤️ 点赞 (21) 👁️ 浏览 (77)