資源描述:
《h3c交換機(jī)配置命令》由會(huì)員上傳分享,免費(fèi)在線閱讀,更多相關(guān)內(nèi)容在教育資源-天天文庫(kù)。
1、H3C交換機(jī)配置命令一.用戶配置:?system-view?[H3C]super?password?H3C?????設(shè)置用戶分級(jí)密碼?[H3C]undo?super?password?????刪除用戶分級(jí)密碼?[H3C]localuserbigheap?123456?1?????Web網(wǎng)管用戶設(shè)置,1(缺省)為管理級(jí)用戶,缺省admin,admin?[H3C]undo?localuserbigheap?????刪除Web網(wǎng)管用戶?[H3C]user-interface?aux?0?????只支持0?[H3C-Aux]idle-timeout?2?50?????設(shè)置超時(shí)為2分50秒,
2、若為0則表示不超時(shí),默認(rèn)為5分鐘?[H3C-Aux]undo?idle-timeout?????恢復(fù)默認(rèn)值?[H3C]user-interface?vty?0?????只支持0和1?[H3C-vty]idle-timeout?2?50?????設(shè)置超時(shí)為2分50秒,若為0則表示不超時(shí),默認(rèn)為5分鐘?[H3C-vty]undo?idle-timeout?????恢復(fù)默認(rèn)值?[H3C-vty]set?authentication?password?123456?????設(shè)置telnet密碼,必須設(shè)置?[H3C-vty]undo?set?authentication?password?????取消
3、密碼?[H3C]display?users?????顯示用戶?[H3C]display?user-interface?????顯示用戶界面狀態(tài)?二.系統(tǒng)IP配置:?[H3C]vlan?20?[H3C]management-vlan?20?[H3C]interface?vlan-interface?20?????創(chuàng)建并進(jìn)入管理VLAN?[H3C]undo?interface?vlan-interface?20?????刪除管理VLAN接口?[H3C-Vlan-interface20]ip?address?192.168.1.2?255.255.255.0?????配置管理VLAN接口靜態(tài)IP地
4、址(缺省為192.168.0.234)?[H3C-Vlan-interface20]undo?ip?address?????刪除IP地址?[H3C-Vlan-interface20]ip?gateway?192.168.1.1?????指定缺省網(wǎng)關(guān)(默認(rèn)無(wú)網(wǎng)關(guān)地址)?[H3C-Vlan-interface20]undo?ip?gateway?[H3C-Vlan-interface20]shutdown?????關(guān)閉接口?[H3C-Vlan-interface20]undo?shutdown?????開(kāi)啟?[H3C]display?ip?????顯示管理VLAN接口IP的相關(guān)信息?[H3C]d
5、isplay?interface?vlan-interface?20?????查看管理VLAN的接口信息?-9-H3C交換機(jī)配置命令debugging?ip?????開(kāi)啟IP調(diào)試功能?undo?debugging?ip?三.DHCP客戶端配置:[H3C-Vlan-interface20]ip?address?dhcp-alloc?????管理VLAN接口通過(guò)DHCP方式獲取IP地址?[H3C-Vlan-interface20]undo?ip?address?dhcp-alloc?????取消?[H3C]display?dhcp?????顯示DHCP客戶信息?de
6、bugging?dhcp-alloc?????開(kāi)啟DHCP調(diào)試功能?undo?debugging?dhcp-alloc?四.端口配置:?[H3C]interface?Ethernet0/3?[H3C-Ethernet0/3]shutdown?[H3C-Ethernet0/3]speed?100?????速率,可為10,100,1000和auto(缺省)?[H3C-Ethernet0/3]duplex?full?????雙工,可為half,full和auto(缺省)??光口和匯聚后不能配置?[H3C-Ethernet0/3]flow-control?????開(kāi)啟流控,默認(rèn)為關(guān)閉?[H
7、3C-Ethernet0/3]broadcast-suppression?20?????設(shè)置抑制廣播百分比為20%,可取5,10,20,100,缺省為100,同時(shí)組播和未知單播也受此影響?[H3C-Ethernet0/3]loopback?internal?????內(nèi)環(huán)測(cè)試?[H3C-Ethernet0/3]loopback?external?????外環(huán)測(cè)試,需插接自環(huán)頭,必須為全雙工或者自協(xié)商模式?[H3