总结:华为、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;">H3Cundo debugging ip
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);">5、DHCP客户端配置
portant; word-wrap: break-word !important; color: rgb(84, 84, 84); letter-spacing: 0.544px; text-indent: 34px; widows: 1; font-size: 14px;">[H3C-Vlan-interface20]ip address dhcp-alloc // 治理VLAN接口通过DHCP方式获取IP地址
portant; word-wrap: break-word !important; color: rgb(84, 84, 84); letter-spacing: 0.544px; text-indent: 34px; widows: 1; font-size: 14px;">[H3C-Vlan-interface20]undo ip address dhcp-alloc // 取消
portant; word-wrap: break-word !important; color: rgb(84, 84, 84); letter-spacing: 0.544px; text-indent: 34px; widows: 1; font-size: 14px;">[H3C]display dhcp //显示DHCP客户信息
portant; word-wrap: break-word !important; color: rgb(84, 84, 84); letter-spacing: 0.544px; text-indent: 34px; widows: 1; font-size: 14px;">H3Cdebugging dhcp-alloc//开启DHCP调试功能
portant; word-wrap: break-word !important; color: rgb(84, 84, 84); letter-spacing: 0.544px; text-indent: 34px; widows: 1; font-size: 14px;">H3Cundo debugging dhcp-alloc
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);">6、端口配置
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]interface 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]shutdown//关闭端口
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]speed 100//速率可为10,100,1000和auto(缺省)
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]duplexfull//双工,可为half,full和auto,光口和汇聚后不能配置
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]flow-control //开启流控,默认为关闭
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]broadcast-suppression 20//设置抑制广播百分比为20%,可取5,10,20,100,缺省为100,同时组播和未知单播也受此影响
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]loopback internal//内环测试
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]port link-type trunk//设置链路的类型为trunk
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]port trunk pvid vlan 20//设置20为该trunk的缺省VLAN,默认为1(trunk线路两端的PVID必须一致)
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]port access vlan 20//将当前access端口加入指定的VLAN
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]port trunk permit vlanall//答应所有的VLAN通过当前的trunk端口,可多次使用该命令
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]mdiauto//设置以太端口为自动监测,normal为直通线,across为交叉线