华为mstp、rstp、pant、静态映射、web服务、telnet、acl配置命令
时间: 2023-10-10 18:06:17 浏览: 189
华为网络设备常用的配置命令如下:
1. MSTP配置命令:
- 配置实例ID:stp region-configuration
- 配置实例优先级:stp region-configuration priority
- 配置接口实例映射:interface interface-type interface-number stp instance instance-id
2. RSTP配置命令:
- 配置全局模式:stp mode rstp
- 配置接口优先级:interface interface-type interface-number stp priority
- 配置边缘接口:interface interface-type interface-number stp edged-port enable
3. PANT配置命令:
- 配置PANT链路聚合组:interface eth-trunk trunk-id
- 配置成员接口:interface interface-type interface-number eth-trunk trunk-id
- 配置链路聚合组协议:pant mode lacp/static
4. 静态映射配置命令:
- 配置内部地址池:ip pool pool-name
- 配置地址池网段:network network-address mask
- 配置静态映射规则:nat static protocol {tcp|udp} global global-address global-port inside inside-address inside-port
5. Web服务配置命令:
- 启用Web服务:http server enable
- 配置Web服务端口号:http server port port-number
- 配置Web服务超时时间:http server session idle-timeout minutes
6. Telnet配置命令:
- 配置telnet服务:user-interface vty first-ui-number last-ui-number
- 配置telnet服务登录方式:authentication-mode aaa/local
- 配置telnet服务超时时间:idle-timeout minutes
7. ACL配置命令:
- 配置ACL规则:acl [number] [name acl-name] [match-order {config|auto}] [resequence] [rule-id rule-id] rule {0|5|5r|6|6r|7} [name rule-name] {source {mac|ip} {source-address source-wildcard|any}|destination {mac|ip} {destination-address destination-wildcard|any}|time-range time-name}
- 应用ACL:interface interface-type interface-number [inbound|outbound] [qos-profile profile-name] [security-acl acl-number | packet-filter acl-number | traffic-filter acl-number | car car-number]
阅读全文