資源描述:
《華為路由交換配置命令大全》由會(huì)員上傳分享,免費(fèi)在線閱讀,更多相關(guān)內(nèi)容在工程資料-天天文庫(kù)。
1、配置命令查看當(dāng)前的版本命令是:displayversion重新啟動(dòng)系統(tǒng):reboot時(shí)間設(shè)置查看時(shí)間:displayclock時(shí)間配置例:clocktimezoneBeijingadd8:00//設(shè)置時(shí)區(qū)clockdatetime15:212005/09/05//設(shè)置時(shí)間和日期系統(tǒng)命名:[Quidway]sysnameVlan配置創(chuàng)建vlan:[SwitchA]vlan2方法一:將端口E0/1加入到vlan2[SwitchA-vlan2]p
2、ortethernet0/1方法二:進(jìn)入端口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遠(yuǎn)程維護(hù)登錄帳號(hào)/口令和Super密碼配置遠(yuǎn)程登錄密碼配置system-view[Quidway]user-interfacevty04//進(jìn)入vty視圖[Quidway-ui-vty0-4]authentication-modescheme//設(shè)置scheme認(rèn)證[Quidway]local-userhuawei//創(chuàng)建本地帳號(hào)“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.?????進(jìn)入端口E0/1[SwitchA]interfaceEthernet0
5、/12.?????匯聚端口必須工作在全雙工模式[SwitchA-Ethernet0/1]duplexfull3.?????匯聚的端口速率要求相同,但不能是自適應(yīng)[SwitchA-Ethernet0/1]speed1004.?????進(jìn)入端口E0/2[SwitchA]interfaceEthernet0/25.?????匯聚端口必須工作在全雙工模式[SwitchA-Ethernet0/2]duplexfull6.?????匯聚的端口速率要求相同,但不能是自適應(yīng)[SwitchA-Ethernet0/2]speed1007.?????
6、根據(jù)源和目的MAC進(jìn)行端口選擇匯聚[SwitchA]link-aggregationEthernet0/1toEthernet0/2both驗(yàn)證:#顯示該匯聚端口的信息。[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驗(yàn)證displaylink-aggregationsummary生成樹(shù)配置華為Quidway交換機(jī)默認(rèn)沒(méi)有啟用生成樹(shù),為了避免交換環(huán)路,需要手工啟用生成樹(shù)協(xié)議(STP)。系統(tǒng)視圖命令:stpenable系統(tǒng)視圖命令:生成樹(shù)主根