資源描述:
《華為路由交換配置命令大全》由會員上傳分享,免費在線閱讀,更多相關(guān)內(nèi)容在工程資料-天天文庫。
1、配置命令查看當(dāng)前的版本命令是:displayversion重新啟動系統(tǒng):reboot時間設(shè)置查看時間:displayclock時間配置例:clocktimezoneBeijingadd8:00//設(shè)置時區(qū)clockdatetime15:212005/09/05//設(shè)置時間和日期系統(tǒng)命名:[Quidway]sysnameVlan配置創(chuàng)建vlan:[SwitchA]vlan2方法一:將端口E0/1加入到vlan2[SwitchA-vlan2]p
2、ortethernet0/1方法二:進入端口E0/1視圖[SwitchA]interfaceethernet0/1指定端口E0/1屬于vlan2[SwitchA-Ethernet1]portaccessvlan2為vlan配置IP地址[Quidway-vlan2]interfacevlan2[Quidway-Vlan-interface2]ipaddress1.0.0.1255.255.255.0端口配置trunk端口類型[SwitchA-Ethernet0/3]portlink-typetrunk必須制定端口vlan值[Swi
3、tchA-Ethernet0/3]porttrunkpermitvlan1020[SwitchA-Ethernet0/3]porttrunkpermitvlanall遠程維護登錄帳號/口令和Super密碼配置遠程登錄密碼配置system-view[Quidway]user-interfacevty04//進入vty視圖[Quidway-ui-vty0-4]authentication-modescheme//設(shè)置scheme認(rèn)證[Quidway]local-userhuawei//創(chuàng)建本地帳號“huawei”[
4、Quidway-luser-huawei]passwordcipherHuawei1//設(shè)置密碼為“Huawei1”[Quidway-luser-huawei]service-typetelnet//設(shè)置服務(wù)類型為telnet[Quidway-luser-huawei]quit[Quidway]Super密碼配置system-view〔Quidway]superpasswordlevel3cipherQuidway1端口匯聚配置1.?????進入端口E0/1[SwitchA]interfaceEthernet0
5、/12.?????匯聚端口必須工作在全雙工模式[SwitchA-Ethernet0/1]duplexfull3.?????匯聚的端口速率要求相同,但不能是自適應(yīng)[SwitchA-Ethernet0/1]speed1004.?????進入端口E0/2[SwitchA]interfaceEthernet0/25.?????匯聚端口必須工作在全雙工模式[SwitchA-Ethernet0/2]duplexfull6.?????匯聚的端口速率要求相同,但不能是自適應(yīng)[SwitchA-Ethernet0/2]speed1007.?????
6、根據(jù)源和目的MAC進行端口選擇匯聚[SwitchA]link-aggregationEthernet0/1toEthernet0/2both驗證:#顯示該匯聚端口的信息。[Quidway]displaylink-aggregation端口匯聚:#創(chuàng)建手工匯聚組1。[Quidway]link-aggregationgroup1modemanual#將以太網(wǎng)端口Ethernet1/0/1至Ethernet1/0/3加入聚合組1。[Quidway]interfaceethernet1/0/1[Quidway-Ethernet1/0/1
7、]portlink-aggregationgroup1[Quidway-Ethernet1/0/1]speed100[Quidway-Ethernet1/0/1]duplexfull[Quidway-Ethernet1/0/1]interfaceethernet1/0/2[Quidway-Ethernet1/0/2]portlink-aggregationgroup1[Quidway-Ethernet1/0/2]speed100[Quidway-Ethernet1/0/2]duplexfull[Quidway-Ethernet1
8、/0/2]quit驗證displaylink-aggregationsummary生成樹配置華為Quidway交換機默認(rèn)沒有啟用生成樹,為了避免交換環(huán)路,需要手工啟用生成樹協(xié)議(STP)。系統(tǒng)視圖命令:stpenable系統(tǒng)視圖命令:生成樹主根