总结:华为、H3C、锐捷三家交换机配置命令详解( 六 )


portant; word-wrap: break-word !important; widows: 1; color: rgb(62, 62, 62); font-family: Optima-Regular, PingFangTC-light; letter-spacing: 0.544px; text-align: left; text-indent: 34px; font-size: 14px;">[H3C]link-aggregation Ethernet 0/1 toEthernet 0/4//将1-4口加入汇聚组,1为主端口,两端需要同时配置,设置了端口镜像以及端口隔离的端口无法汇聚
portant; word-wrap: break-word !important; widows: 1; color: rgb(62, 62, 62); font-family: Optima-Regular, PingFangTC-light; letter-spacing: 0.544px; text-align: left; text-indent: 34px; font-size: 14px;">[H3C]undo link-aggregation Ethernet 0/1 //删除该汇聚组
portant; word-wrap: break-word !important; widows: 1; color: rgb(62, 62, 62); font-family: Optima-Regular, PingFangTC-light; letter-spacing: 0.544px; text-align: left; text-indent: 34px; font-size: 14px;">[H3C]link-aggregation mode egress//配置端口汇聚模式为根据目的MAC地址进行负荷分担,可选为 ingress,egress和both,缺省为both
portant; word-wrap: break-word !important; widows: 1; color: rgb(62, 62, 62); font-family: Optima-Regular, PingFangTC-light; letter-spacing: 0.544px; text-align: left; text-indent: 34px; font-size: 14px;">[H3C]monitor-port Ethernet 0/2//将该端口设置为镜像端口,必须先设置镜像端口,删除时必须先删除被镜像端口,而且它们不能同在一个端口,该端口不能在汇聚组中,设置新镜像端口时,新取代旧,被镜像不变
portant; word-wrap: break-word !important; widows: 1; color: rgb(62, 62, 62); font-family: Optima-Regular, PingFangTC-light; letter-spacing: 0.544px; text-align: left; text-indent: 34px; font-size: 14px;">[H3C]mirroring-port Ethernet 0/3 toEthernet 0/4 both//将端口3和4设置为被镜像端口,both为同时监控接收和发送的报文,inbound表示仅监控接收的报文,outbound表示仅监控发送的报文
portant; word-wrap: break-word !important; widows: 1; color: rgb(62, 62, 62); font-family: Optima-Regular, PingFangTC-light; letter-spacing: 0.544px; text-align: left; text-indent: 34px; font-size: 14px;">[H3C]display mirror
portant; word-wrap: break-word !important; widows: 1; color: rgb(62, 62, 62); font-family: Optima-Regular, PingFangTC-light; letter-spacing: 0.544px; text-align: left; text-indent: 34px; font-size: 14px;">[H3C]display interface Ethernet 0/3
portant; word-wrap: break-word !important; widows: 1; color: rgb(62, 62, 62); font-family: Optima-Regular, PingFangTC-light; letter-spacing: 0.544px; text-align: left; text-indent: 34px; font-size: 14px;">H3Cresetcounters//清除所有端口的统计信息
portant; word-wrap: break-word !important; widows: 1; color: rgb(62, 62, 62); font-family: Optima-Regular, PingFangTC-light; letter-spacing: 0.544px; text-align: left; text-indent: 34px; font-size: 14px;">[H3C]display link-aggregation Ethernet0/3//显示端口汇聚信息
portant; word-wrap: break-word !important; widows: 1; color: rgb(62, 62, 62); font-family: Optima-Regular, PingFangTC-light; letter-spacing: 0.544px; text-align: left; text-indent: 34px; font-size: 14px;">[H3C-Ethernet0/3]virtual-cable-test //诊断该端口的电路状况
portant; word-wrap: break-word !important; background-color: rgb(0, 0, 0); font-family: Optima-Regular, PingFangTC-light; font-size: 15px; letter-spacing: 0.544px; text-align: left; widows: 1; color: rgb(255, 255, 255);">7、qos优先级配置
portant; word-wrap: break-word !important; widows: 1; color: rgb(62, 62, 62); font-family: Optima-Regular, PingFangTC-light; letter-spacing: 0.544px; text-align: left; text-indent: 34px; font-size: 14px;"> QoS配置步骤:设置端口的优先级,设置交换机信任报文的优先级方式,队列调度,端口限速
portant; word-wrap: break-word !important; widows: 1; color: rgb(62, 62, 62); font-family: Optima-Regular, PingFangTC-light; letter-spacing: 0.544px; text-align: left; text-indent: 34px; font-size: 14px;">[H3C-Ethernet0/3]priority 7//设置端口优先级为7,默认为0
portant; word-wrap: break-word !important; widows: 1; color: rgb(62, 62, 62); font-family: Optima-Regular, PingFangTC-light; letter-spacing: 0.544px; text-align: left; text-indent: 34px; font-size: 14px;">[H3C]priority-trustcos//设置交换机信任报文的优先级方式为cos(802.1p优先级,缺省值),还可以设为dscp方式
portant; word-wrap: break-word !important; widows: 1; color: rgb(62, 62, 62); font-family: Optima-Regular, PingFangTC-light; letter-spacing: 0.544px; text-align: left; text-indent: 34px; font-size: 14px;">[H3C]queue-scheduler hq-wrr 2 4 6 8//设置队列调度算法为HQ-WRR(默认为WRR),权重为2,4,6,8
portant; word-wrap: break-word !important; widows: 1; color: rgb(62, 62, 62); font-family: Optima-Regular, PingFangTC-light; letter-spacing: 0.544px; text-align: left; text-indent: 34px; font-size: 14px;">[H3C-Ethernet0/3]line-rate inbound 29//将端口进口速率限制为2Mbps,取1-28时,速率为rate*8*1024/125,即64,128,192...1.792M;
portant; word-wrap: break-word !important; widows: 1; color: rgb(62, 62, 62); font-family: Optima-Regular, PingFangTC-light; letter-spacing: 0.544px; text-align: left; text-indent: 34px; font-size: 14px;">29-127时,速率为(rate-27)*1024,即2M,3M,4M...100M 。