华为交换机配置命令速查
华为交换机常用配置命令表:
- 创建 VLAN: vlan [vlan-id]
- 配置 IP 地址: interface [interface-name] ip address [ip-address/mask]
- 启用 STP: spanning-tree
- 配置端口模式: interface [interface-name] port link-type [access/trunk]
- 添加端口到 VLAN: interface [interface-name] port link-type trunk allowed-vlan [vlan-id]
- 配置路由器接口: interface [interface-name] ip address [ip-address/mask]
- 配置默认网关: ip route 0.0.0.0 0.0.0.0 [gateway-ip]
- 配置 ACL: acl [acl-name]
- 允许访问: rule [rule-number] permit [protocol] [source-ip] [destination-ip]
- 拒绝访问: rule [rule-number] deny [protocol] [source-ip] [destination-ip]
用户评论