H3C交换机常用配置命令大全.doc

上传人:灯火****19 文档编号:125154830 上传时间:2020-03-15 格式:PDF 页数:11 大小:119.71KB
返回 下载 相关 举报
H3C交换机常用配置命令大全.doc_第1页
第1页 / 共11页
H3C交换机常用配置命令大全.doc_第2页
第2页 / 共11页
H3C交换机常用配置命令大全.doc_第3页
第3页 / 共11页
H3C交换机常用配置命令大全.doc_第4页
第4页 / 共11页
H3C交换机常用配置命令大全.doc_第5页
第5页 / 共11页
点击查看更多>>
资源描述

《H3C交换机常用配置命令大全.doc》由会员分享,可在线阅读,更多相关《H3C交换机常用配置命令大全.doc(11页珍藏版)》请在金锄头文库上搜索。

1、一 用户配置 system view H3C super password H3C 设置用户分级密码 H3C undo super password 删除用户分级密码 H3C localuser bigheap 123456 1 Web 网管用户设置 1 缺省 为管理级用户 缺省 admin admin H3C undo localuser bigheap 删除 Web 网管用户 H3C user interface aux 0 只支持 0 H3C Aux idle timeout 2 50 设置超时为2 分 50 秒 若为 0 则表示不超时 默认为 5 分钟 H3C Aux undo idl

2、e timeout 恢复默认值 H3C user interface vty 0 只支持 0 和 1 H3C vty idle timeout 2 50 设置超时为2 分 50 秒 若为 0 则表示不超时 默认为 5 分钟 H3C vty undo idle timeout 恢复默认值 H3C vty set authentication password 123456 设置 telnet 密码 必须设置 H3C vty undo set authentication password 取消密码 H3C display users 显示用户 H3C display user interface

3、 显示用户界面状态 二 系统 IP 配置 H3C vlan 20 H3C management vlan 20 H3C interface vlan interface 20 创建并进入管理VLAN H3C undo interface vlan interface 20 删除管理VLAN 接口 H3C Vlan interface20 ip address 192 168 1 2 255 255 255 0 配置管理VLAN 接口静态IP 地址 缺省为 192 168 0 234 H3C Vlan interface20 undo ip address 删除 IP 地址 H3C Vlan i

4、nterface20 ip gateway 192 168 1 1 指定缺省网关 默认无网关地址 H3C Vlan interface20 undo ip gateway H3C Vlan interface20 shutdown 关闭接口 H3C Vlan interface20 undo shutdown 开启 H3C display ip 显示管理VLAN 接口 IP 的相关信息 H3C display interface vlan interface 20 查看管理VLAN 的接口信息 debugging ip 开启 IP 调试功能 undo debugging ip 三 DHCP 客

5、户端配置 H3C Vlan interface20 ip address dhcp alloc 管理 VLAN 接口通过DHCP 方式获取IP 地址 H3C Vlan interface20 undo ip address dhcp alloc 取消 H3C display dhcp 显示 DHCP 客户信息 debugging dhcp alloc 开启 DHCP 调试功能 undo debugging dhcp alloc 四 端口配置 H3C interface Ethernet0 3 H3C Ethernet0 3 shutdown H3C Ethernet0 3 speed 100

6、速率 可为 10 100 1000和 auto 缺省 H3C Ethernet0 3 duplex full 双工 可为 half full和 auto 缺省 光口和汇聚后不能配置 H3C Ethernet0 3 flow control 开启流控 默认为关闭 H3C Ethernet0 3 broadcast suppression 20 设置抑制广播百分比为20 可取 5 10 20 100 缺省为 100 同时组播和 未知单播也受此影响 H3C Ethernet0 3 loopback internal 内环测试 H3C Ethernet0 3 loopback external 外环测

7、试 需插接自环头 必须为全双工或者自协商模式 H3C Ethernet0 3 port link type trunk 设置链路的类型为trunk 可为 access 缺省 trunk H3C Ethernet0 3 port trunk pvid vlan 20 设置 20 为该 trunk 的缺省 VLAN 默认为 1 trunk 线路两端的PVID 必须一致 H3C Ethernet0 3 port access vlan 20 将当前 access 端口加入指定的VLAN H3C Ethernet0 3 port trunk permit vlan all 允许所有的VLAN 通过当前

8、的trunk 端口 可多次使用该命令 H3C Ethernet0 3 mdi auto 设置以太端口为自动监测 normal 缺省 为直通线 across 为交叉线 H3C link aggregation Ethernet 0 1 to Ethernet 0 4 将 1 4 口加入汇聚组 1 为主端口 两端需要同时配置 设置了端口 镜像以及端口隔离的端口无法汇聚 H3C undo link aggregation Ethernet 0 1 删除该汇聚组 H3C link aggregation mode egress 配置端口汇聚模式为根据目的MAC 地址进行负荷分担 可选 为ingress

9、 egress和 both 缺省为 both H3C monitor port Ethernet 0 2 将该端口设置为镜像端口 必须先设置镜像端口 删除时必须先删除被镜像端口 而且 它们不能同在一个端口 该端口不能在汇聚组中 设置新镜像端口时 新取代旧 被镜像不变 H3C mirroring port Ethernet 0 3 to Ethernet 0 4 both 将端口 3 和 4 设置为被镜像端口 both 为同时监控接收和发 送的报文 inbound表示仅监控接收的报文 outbound表示仅监控发送的报文 H3C display mirror H3C display interf

10、ace Ethernet 0 3 reset counters 清除所有端口的统计信息 H3C display link aggregation Ethernet 0 3 显示端口汇聚信息 H3C Ethernet0 3 virtual cable test 诊断该端口的电路状况 五 VLAN 配置 H3C vlan 2 H3C undo vlan all 删除除缺省VLAN 外的所有VLAN 缺省 VLAN 不能被删除 H3C vlan2 port Ethernet 0 4 to Ethernet 0 7 将 4 到 7 号端口加入到VLAN2中 此命令只能用来加access 端口 不 能用

11、来增加trunk 或者 hybrid 端口 H3C vlan2 port isolate enable 打开 VLAN 内端口隔离特性 不能二层转发 默认不启用该功能 H3C Ethernet0 4 port isolate uplink port vlan 2 设置 4 为 VLAN2 的隔离上行端口 用于转发二层数据 只能配置一个 上行端口 若为 trunk 则建议允许所有VLAN 通过 隔离不能与汇聚同时配置 H3C display vlan all 显示所有VLAN 的详细信息 S1550E 支持基于端口的VLAN 通过创建不同的user group来实现 一个端口可以属于多个user

12、 group 不属于同一个u ser group的端口不能互相通信 最多支持 50 个 user group H3C user group 20 创建 user group 20 默认只存在user group 1 H3C UserGroup20 port Ethernet 0 4 to Ethernet 0 7 将 4 到 7 号端口加入到VLAN20 中 初始时都属于user group 1 中 H3C display user group 20 显示 user group 20 的相关信息 六 集群配置 S2100 只能作为成员交换机加入集群中 加入后系统名改为 集群名 成员编号 原系统

13、名 的格式 即插即用功能通过两个功能实现 集群管理协议MAC 组播地址协商和管理VLAN 协商 H3C cluster enable 启用群集功能 缺省为启用 H3C cluster 进入群集视图 H3C cluster administrator address H H H name switch H H H 为命令交换机的MAC 加入 switch 集群 switch 1 H3C cluster undo administrator address 退出集群 H3C display cluster 显示集群信息 H3C management vlan 2 集群报文只能在管理VLAN 中转发

14、 同一集群需在同一个管理VLAN 中 需在建立集群之前 指定管理VLAN debugging cluster 七 QoS 配置 QoS 配置步骤 设置端口的优先级 设置交换机信任报文的优先级方式 队列调度 端口限速 H3C Ethernet0 3 priority 7 设置端口优先级为7 默认为 0 H3C priority trust cos 设置交换机信任报文的优先级方式为cos 802 1p优先级 缺省值 还可以设为dscp 方式 dscp 优先级方式 H3C queue scheduler hq wrr 2 4 6 8 设置队列调度算法为HQ WRR 默认为 WRR 权重为 2 4 6

15、 8 H3C Ethernet0 3 line rate inbound 29 将端口进口速率限制为2Mbps 取 1 28 时 速率为 rate 8 1024 125 即 64 128 192 1 792M 29 127时 速率为 rate 27 1024 即 2M 3M 4M 100M 千兆时可继续往下取 128 240时 速率为 rate 115 8 1024 即 104M 112M 120M 1000M H3C display queue scheduler 显示队列调度模式及参数 H3C display priority trust 显示优先级信任模式 八 系统管理 H3C mac

16、address blackhole H H H vlan 1 在 VLAN1 中添加黑洞MAC H3C mac address static H H H interface Ethernet 0 1 vlan 1 在 VLAN1 中添加端口一的一个mac H3C mac address timer aging 500 设置 MAC 地址表的老化时间为500s H3C display mac address H3C display arp H3C mac address port binding H H H interface Ethernet 0 1 vlan 1 配置端口邦定 H3C display mac address port binding H3C display saved configuration H3C display current configuration save H3C restore default 恢复交换机出厂默认配置 恢复后需重启才能生效 H3C display version reboot H3C display device H3C sysnam

展开阅读全文
相关资源
正为您匹配相似的精品文档
相关搜索

最新文档


当前位置:首页 > IT计算机/网络 > 其它相关文档

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号