版權說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權,請進行舉報或認領
文檔簡介
華為數(shù)通設備常用診斷命令(建議收藏)目錄Telnet配置FTP配置路由IP配置VLAN配置Eth-trunk配置STP配置DHCP配置幀中繼配置單臂路由配置RIP配置OSPF配置VRRP配置HDLC配置PPP配置以太網(wǎng)接口配置防火墻配置鏈路技術其他配置設備版本升級Telnet配置1、密碼登錄[Huawei]user-interfaceconsole0//進入管理控制口
[Huawei-ui-console0]authentication-modepassword
Pleaseconfiguretheloginpassword(maximumlength16):輸入密碼
[Huawei-ui-console0]userprivilegelevel?//設置特權等級
[Huawei-ui-console0]idle-timeout200//設置空閑超時時間為20分鐘,默認為10分鐘2、用戶和密碼登錄[Huawei]user-interfaceconsole0//進入管理控制口
[Huawei-ui-console0]authentication-modeaaa
[Huawei-ui-console0]quit
[Huawei]aaa
[Huawei-aaa]local-userhuaweipasswordcipherhw(密碼)
[Huawei-aaa]local-userhuaweiservice-typeterminal//從終端登錄3、PC通過以太網(wǎng)口遠程登錄配置#AAA模式遠程登錄
[R1]user-interfacevty04
[R1-ui-vty0-4]authentication-modeaaa
[R1]aaa//進入認證、授權、計費模式(簡稱AAA模式)
[R1-aaa]local-useradminpasswordcipher123456//配置本地用戶和密碼
[R1-aaa]local-useradminservice-typetelnet//選擇授權用戶的服務類型
[R1-aaa]local-useradminprivilegelevel3//設置管理員用戶級別
#僅密碼遠程登錄
[R2]user-interfacevty04//虛擬用戶終端接口
[R2-ui-vty0-4]authentication-modepassword//配置用戶終端的認證模式
[R2-ui-vty0-4]setauthenticationpasswordsimple123456//設置登錄用戶密碼
[R2-ui-vty0-4]userprivilegelevel3//設置用戶等級
[R2-ui-vty0-4]usernetwork-admin//設置登錄用戶的參數(shù)4、設置超級密碼[Huawei]superpasswordlevel3cipher123456(作用?)FTP配置1、將路由器作為FTP服務器[R1]ftpserverenable
[R1]aaa
[R1-aaa]local-userwindapasswordcipheraqx123456(字母與數(shù)字的組合)
[R1-aaa]local-userwindaprivilegelevel15
[R1-aaa]local-userwindaservice-typeftp
[R1-aaa]local-userwindaftp-directoryflash://指定目錄2、登錄FTP服務器,并傳送文件ftp
User(:(none)):huawei
331Passwordrequiredforhuawei.
Enterpassword:
230Userloggedin.
[R1-ftp]putportalpage.zip//上傳文件
[R1-ftp]getportalpage.zipportal.zip//下載文件并改名字
delete/unreservedportal.zip//徹底刪除該文件其它配置配置登錄標語[R1]headershellinformation"WelcometoHuaWei"指定下次啟動裝載的配置文件startupsaved-configurationiascfg.zip指定下次啟動裝載的配置文件factory-configurationreset設置下次啟動用的文件startupsaved-configuration文件名刪除保存的配置文件resetsaved-configuration
reboot
Warning:Alltheconfigurationwillbesavedtothenextstartupconfiguration.
Continue?[y/n]:n關閉消息提示功能[R1]undoinfo-centerenable//關閉提示信息,提高配置時的視覺
或
undoterminalmonitor//關閉日志提示消息(很煩人的一個東西)路由IP配置浮動靜態(tài)路由[Huawei]iproute-static24(目標網(wǎng)絡)(下一跳IP)preference80描述接口[R1-Serial1/0/0]descriptionthisportconnecttoR2-S1/0/0默認(缺?。┞酚蒣R1]iproute-static使用帶源參數(shù)的ping命令[R2]ping-a配置從IP地址(解決RIPv1不連續(xù)子網(wǎng))[R1-Serial1/0/0]ipaddsub靜態(tài)路由與BFD聯(lián)動#激活BFD功能
[R1]bfd
[R1-bfd]quit
#創(chuàng)建BFD會話,名稱為ab(自定義),對端的IP地址為
[R1]bfdabbindpeer-ipVLAN配置端口類型配置配置端口為access[Huawei]vlan10//創(chuàng)建vlan10
[Huawei]interfaceGigabitEthernet0/0/2//進入g0/0/2端口
[Huawei-GigabitEthernet0/0/2]portlink-typeaccess//選擇端口類型
[Huawei-GigabitEthernet0/0/2]portdefaultvlan10//劃分VLAN
技巧:[S2]vlanbatch3to5//創(chuàng)建VLAN3、4、5配置端口的Hybrid類型[SW1]vlan10
[SW1-GigabitEthernet0/0/1]porthybridpvidvlan10
[SW1-GigabitEthernet0/0/1]porthybriduntaggedvlan1030//對VLAN10和30去標簽配置端口的Trunk類型[SW1]interfaceg0/0/24
[SW1-GigabitEthernet0/0/24]portlink-typetrunk
[SW1-GigabitEthernet0/0/24]porttrunkallow-passvlanall//允許所有VLAN通過更改Trunk端口的PVID[SW1-GigabitEthernet0/0/24]porttrunkpvidvlan10Eth-trunk配置創(chuàng)建Eth-trunk1,并將接口加入Eth-trunk1[S1]interfaceEth-Trunk1
[S1]intg0/0/9
[S1-GigabitEthernet0/0/9]eth-trunk1
或
[S1]interfaceEth-Trunk1
[S1-Eth-Trunk1]trunkportg0/0/9配置Eth-trunk1鏈路配置為access[S1]interfaceEth-Trunk1
[S1-Eth-Trunk1]portlink-typeaccess
[S1-Eth-Trunk1]portdefaultvlan5STP配置STP配置#修改橋優(yōu)先級
[S1]stppriority4096//數(shù)值越小優(yōu)先級越高
#修改端口優(yōu)先級
[S1-GigabitEthernet0/0/9]stpportpriority32//默認為128,數(shù)值越小優(yōu)先級越高
#配置邊緣端口(使端口快速進入轉發(fā)狀態(tài))
[S3]interfaceEthernet0/0/3
[S3-Ethernet0/0/3]stpedged-portenable
[S3-Ethernet0/0/3]stpcost//設置路徑開銷值
[根交換機]stptimerforward-delay//設置延遲時間
[根交換機]stpedged-portenable//設置網(wǎng)絡直徑配置MSTP[SW1]stpregion-configuration//進入MST域
[SW1-mst-region]region-namehuawei//配置域名
[SW1-mst-region]revision-level1//配置修訂級別為1
[SW1-mst-region]instance1vlan10//制定MSTI1與VLAN10的映射查看STP#各接口簡要STP狀態(tài)
[S1]disstpbrief
#具體接口詳細STP信息
[S1]disstpinterfaceg0/0/10
#查看當前根橋信息
[S1]disstp
#查看實例1的信息
[SW1]disstpinstance1briefDHCP配置基于接口配置DHCP功能[R1]dhcpenable//開啟DHCP功能
[R1-GigabitEthernet0/0/0]dhcpselectinterface//開啟接口DHCP功能
[R1-GigabitEthernet0/0/0]dhcpserverleaseday2【可選】//設置租用有效期限為2天
[R1-GigabitEthernet0/0/0]dhcpserverdns-list//為PC自動分配DNS服務器地址
[R1-GigabitEthernet0/0/1]dhcpserverexcluded-ip-address5053//配置不參與自動分配的IP地址范圍基于全局配置DHCP[R1]dhcpenable//開啟DHCP功能
[R1]ippoolhuawei1//配置全局地址池
[R1-ip-pool-huawei1]network//指定地址池范圍
[R1-ip-pool-huawei1]leaseday2【可選】//租期為2天,默認1天
[R1-ip-pool-huawei1]gateway-list54//出口網(wǎng)關地址
[R1-ip-pool-huawei1]excluded-ip-address5053//不參與自動分配
[R1-ip-pool-huawei1]dns-list//配置DNS服務器地址
[R1-GigabitEthernet0/0/0]dhcpselectglobal//開啟接口的DHCP功能查看disippool//查看地址池地址分配情況DHCP中繼[R1]dhcpenable//開啟DHCP功能
#面向PC的接口:
[R1-Ethernet0/0/0]dhcpselectrelay
[R1-Ethernet0/0/0]dhcprelayserver-ip//指定DHCP服務器IP地址
#面向PC的接口下調(diào)用全局定義的DHCP服務器組:
[R1]dhcpservergroupdhcp-group
[R1-dhcp-server-group-dhcp-group]dhcp-server
[R1-Ethernet0/0/0]dhcpselectrelay
[R1-Ethernet0/0/0]dhcprelayserver-selectdhcp-group幀中繼配置DCE配置[R1]interfaces1/0/0
[R1-Serial1/0/0]link-protocolfr
[R1-Serial1/0/0]frinterface-typedce//接口類型
[R1-Serial1/0/0]frdlci100
[R1-Serial1/0/0]ipadd24DTE配置[R2]interfaces1/0/0
[R2-Serial1/0/0]link-protocolfr
[R2-Serial1/0/0]frinterface-typedte其它配置查看PVC
[R1]disfrpvc-info
#查看映射
[R1]disfrmap-info
#靜態(tài)映射
[R2-Serial1/0/0]undofrinarp
[R1-Serial1/0/0]frmapip100broadcast
//OSPF中使用組播的網(wǎng)絡類型時,應在映射后面加Broadcast單臂路由配置配置路由器[R1]intg0/0/0.1//創(chuàng)建并進入g0/0/0的0.1子接口
[R1-GigabitEthernet0/0/0.1]dot1qterminationvid10//封裝dot1q協(xié)議
[R1-GigabitEthernet0/0/0.1]ipaddress5424//配置IP地址
[R1-GigabitEthernet0/0/0.1]arpbroadcastenable//開啟arp廣播
[R1-GigabitEthernet0/0/0.1]dhcpselectglobal//開啟DHCP全局模式
[R1-GigabitEthernet0/0/0.1]intg0/0/0.2
[R1-GigabitEthernet0/0/0.2]dot1qterminationvid20
[R1-GigabitEthernet0/0/0.2]ipaddress5424
[R1-GigabitEthernet0/0/0.2]arpbroadcastenable
[R1-GigabitEthernet0/0/0.2]dhcpselectglobal配置交換機[SW1]vlanbatch1020//創(chuàng)建vlan10和vlan20
[SW1-GigabitEthernet0/0/1]intg0/0/1//進入g0/0/1接口
[SW1-GigabitEthernet0/0/1]portlink-typeaccess//修改端口為access模式
[SW1-GigabitEthernet0/0/1]portdefaultvlan10//將端口劃分到vlan10中
[SW1-GigabitEthernet0/0/1]intg0/0/2
[SW1-GigabitEthernet0/0/2]portlink-typeaccess
[SW1-GigabitEthernet0/0/2]portdefaultvlan20
[SW1-GigabitEthernet0/0/2]intg0/0/24//交換機與路由器相連的接口需要修改為trunk模式
[SW1-GigabitEthernet0/0/24]portlink-typetrunk//修改端口為trunk模式
[SW1-GigabitEthernet0/0/24]porttrunkallow-passvlan1020//允許vlan10和vlan20的數(shù)據(jù)通過RIP配置基本配置[Huawei]rip1//啟動RIP進程
[Huawei-rip-1]version2//選擇版本(可選)
[Huawei-rip-1]net(通告自然網(wǎng)段)其它配置[Huawei-rip-1]summaryalways//使能自動匯總[V2默認開啟,但不生效]
[接口]undoripsplit-horizon//關閉接口水平分割
[Huawei-GigabitEthernet0/0/0]ripsummary-address聚合后網(wǎng)絡子網(wǎng)掩碼//手動匯總
#接口附加度量值
[接口]ripmetricinx//cost=原來的值+x
[接口]ripmetricoutx//cost=0+x
#認證
[R2-Serial1/0/0]ripauthentication-modesimplehuawei//明文
[R2-Serial2/0/0]ripauthentication-modemd5usualhuawei//MD5#開啟RIP調(diào)試
debugrip1
terminaldebugging
Info:Currentterminaldebuggingison.
terminalmonitor
#抑制接口(只收不發(fā))
[R1-GigabitEthernet0/0/0]undoripoutput//不能使用單播通信
或
[R2-rip-1]silent-interfaceE0/0/0//優(yōu)先級高于前者[R2-rip-1]peerIP地址//單播通信
[R2-rip-1]preferencex//修改優(yōu)先級(只在本地有效)
[R2-rip-1]timersrip2012060//修改定時器
[R3]iproute-static0LoopBack2//發(fā)布默認路由
[R3-rip-1]default-routeoriginate//不需創(chuàng)建默認路由,也能發(fā)布
resetrip1statistics//刷新RIP統(tǒng)計信息
resetiprouting-tablestatisticsprotocolrip//清除RIP學到的路由信息
[R2]undorip1//刪除RIP
[R1]ripversion2multicase//配置版本1的也能發(fā)送RIPv2報文OSPF配置配置OSPF[R1]ospfRouter-id//配置環(huán)回口IP地址
[R1-ospf-1]area0
[R1-ospf-1-area-]network55引入路由[R3-ospf-1]import-routedirect//引入直連路由
[R1-ospf-1]import-routerip1cost100//引入RIP路由發(fā)布默認路由[R3]iproute-static0LoopBack2
[R3]ospf100
[R3-ospf-100]default-route-advertise
[R3-ospf-100]default-route-advertisealways//自動發(fā)布默認路由OSPF驗證#接口認證明文:
[R1-Serial1/0/0]ospfauthentication-modesimpleplainhuawei
#區(qū)域認證密文:
[R1-ospf-1]area1
[R1-ospf-1-area-]authentication-modemd51cipherhuawei抑制接口(不收不發(fā))R2-ospf-1]silent-interfaceE0/0/0
[R2-ospf-1]peerIP地址//單播通信查看[R1]disospfpeerbrief//查看鄰居
[R1]disospfinterface//查看DR、BDR
[R1]resetospfprocess//重置OSPF進程
[R1]disiprouting-tableprotocolospf//查看OSPF學到的路由
[R1]displayospflsdbase//顯示鏈路狀態(tài)數(shù)據(jù)庫的外接路由信息
[R1]disospfintG0/0/0//查看接口的OSPF信息查看LSA信息[R1]disospflsdbrouter//查看一類LSA
[R1]disospflsdbnetword//查看二類LSA
[R1]disospflsdbsummary//查看三類LSA
[R1]disospflsdbasbr//查看四類LSA
[R1]disospflsdbase//查看五類LSA
[R1]disospflsdbnssa//查看七類LSA其它修改Hello和Dead時間[R1-GigabitEthernet0/0/0]ospftimerhello15
[R1-GigabitEthernet0/0/0]ospftimerdead60修改DR優(yōu)先級[R1-GigabitEthernet0/0/0]ospfdr-priority200(越大優(yōu)先級越高)注:由于DR/BDR選舉默認為不搶占模式,因此在修改了路由器優(yōu)先級后不會自動重新選舉DR,需要重置OSPF進程。修改網(wǎng)絡類型為廣播[R2-Serial2/0/0]ospfnetwork-typebroadcast修改開銷值、帶寬參考值[接口]ospfcostx
[R3-ospf-1]bandwidth-referencexVRRP配置[SW1-Vlanif10]vrrpvrid1virtual-ip54//配置虛擬網(wǎng)關
[SW1-Vlanif10]vrrpvrid1priority150//更改優(yōu)先級
[SW1-Vlanif10]vrrpvrid1preempt-modedisable//關閉搶占模式
[SW1-Vlanif10]vrrpvrid1trackinterfaceg0/0/24reduced60//跟蹤上層端口
[R1-Serial2/0/0]ospfnetwork-typep2mp//配置接口的網(wǎng)絡類型為Point-to-multipoint
[S1]displayvrrp//查看VRRP信息HDLC配置[R1-Serial1/0/0]ipaddressunnumberedinterfaceLoopBack0//IP地址借用
[R1]iproute-static24Serial1/0/0
[R1-Serial1/0/0]link-protocolhdlc//將接口改為HDLC類型PPP配置認證方[R1]aaa
[R1-aaa]local-userhuaweipasswordcipher123456
[R1-aaa]local-userhuaweiservice-typeppp
[R1-Serial0]pppauthentication-modepap(CHAP)被認證方#PAP:
[R2-Serial0]ppppaplocal-userhuaweipasswordcipher123456
#CHAP:
[R2-Serial0]pppchapuserhuawei
[R2-Serial0]pppchappasswordcipher123456使用CHAP建立PPP連接的協(xié)商過程debuggingpppchapall
terminaldebugging以太網(wǎng)接口配置[S1-G0/0/9]undonegotiationauto//更改接口的速率和雙工模式前應先關閉接口的自動協(xié)商功能
[S1-G0/0/9]speed100//設置為100M速率
[S1-G0/0/9]duplexfull//全雙工模式
[S1]diseth-trunk1//查看Eth-trunk1配置結果防火墻配置#登錄不需要用戶名和密碼
[FW]user-interfaceconsole0
[FW-ui-console0]authentication-modenone
#定義時區(qū):
clocktimezone1add08:00:00鏈路技術鏈路聚合[S1]interfaceEth-Trunk1//聚合交換機之間的Eth-Trunk端口編號相等
[S1-Eth-Trunk1]modelacp-static//lacp模式
[S1-Eth-Trunk1]trunkportGigabitEthernet0/0/1to0/0/2//將成員端口加入到聚合端口中
[S1-Eth-Trunk1]maxactive-linknumber2//設置活動上限閥值
[S1-Eth-Trunk1]portlink-typetrunk
[S1-Eth-Trunk1]porttrunkallow-passvlanall
[S1-Eth-Trunk1]diseth-trunk1verbose//查看聚合端口的信息
[S1]lacppriority100//配置系統(tǒng)優(yōu)先級使其成為主控端
[S1-G0/0/1]lacppriority100//配置活動鏈路優(yōu)先級
[S1-G0/0/2]lacppriority100//配置活動鏈路優(yōu)先級SmartLink[S1-G0/0/1]stpdisable//關掉相關接口的STP
[S1]smart-linkgroup1
[S1-smlk-group1]portGigabitEthernet0/0/1master//設置主端口
[S1-smlk-group1]portg0/0/2slave//設置從端口
[S1-smlk-group1]flushsendcontrol-vlan10passwordsimple123//使能smartlink組1發(fā)送Flush幀的功能,攜帶的控制VLAN編號為10,密碼是:123
[S1-smlk-group1]restoreenable//開啟回切功能
[S1-smlk-group1]timerwtr30//回切時間為30秒
[S1-smlk-group1]smart-linkenable//使能SmartLink組1的功能
[S1-smlk-group1]dissmart-linkgroup1//查看SmartLink組1的信息
[S2-GigabitEthernet0/0/1]smart-linkflushreceivecontrol-vlan10passwordsimple123//設置其他交換機可以接收和處理攜帶控制VLAN編號是10的Flush幀其他配置自動保存#自動保存
autosaveintervalon
autosaveinterval120//每隔120分鐘自動保存
#定點保存
autosavetimeon
autosavetime23:00:00//到23點自動保存端口鏡像[R1]observe-port1interfaceEthernet4/0/1//設置觀察端口
[接口]mirrortoobserve-port1both//將鏡像端口映射到觀察端口端口綁定[Huawei]user-bindstaticmac-address5489-988B-5157inte0/0/1//綁定MAC地址
[Huawei]user-bindstaticip-address//綁定IP地址端口安全[接口]port-securityenable//啟用端口安全
[接口]port-securitymax-mac-num2//自動學習MAC地址的最大數(shù)量
[接口]port-securityprotect-actionshutdown//保護行為為關閉端口前綴列表[R1]ipip-prefix1deny25greater-equal25less-equal25//在RIP里面過濾掉/25
[R1]ipip-prefix1permit0less-equal32
[R1-rip-1]filter-policyip-prefix1importIPv6配置[R1]ipv6//開啟全局IPv6功能
[R1-E0/0/0]ipv6enable//在接口(連接PC)下開啟IPv6功能
[R1-E0/0/0]ipv6addressautolink-local//自動生成鏈路本地地址
[R1-G0/0/0]ipv6enable//在接口(連接路由器)下開啟IPv6功能
[R1-G0/0/0]ipv6add2031:0:130F::164//配置全球單播地址
[R1-E0/0/0]ipv6add2001:3:FD::64eui-64//用EUI-64配置地址設備版本升級檢查設備剩余空間是否大于新的軟件包大小<H07_S5720_BMC-05>dirflash:
Directoryofflash:/
IdxAttrSize(Byte)DateTimeFileName
0drw--Oct30201903:37:16dhcp
1drw--Oct30201903:19:15user
2-rw-13,432Oct30201903:37:25default_ca.cer
3-rw-36Oct30201903:38:18$_patchstate_reboot
4-rw-3,684Oct30201903:38:18$_patch_history
5-rw-1,903Oct30201903:37:31default_local.cer
6drw--Oct30201903:37:42logfile
7-rw-1,111Apr08202017:03:35vrpcfg.z
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
- 4. 未經(jīng)權益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責。
- 6. 下載文件中如有侵權或不適當內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 2025年岳麓版八年級地理下冊月考試卷含答案
- 2025年岳麓版九年級歷史下冊月考試卷
- 2025年粵教版九年級地理上冊階段測試試卷含答案
- 2025年全媒體運營師知識考試題庫及答案
- 2025年萬人學法法律知識競賽題庫及答案
- 2025年惠州城市職業(yè)學院高職單招職業(yè)適應性測試近5年??及鎱⒖碱}庫含答案解析
- 2025年廣東輕工職業(yè)技術學院高職單招語文2018-2024歷年參考題庫頻考點含答案解析
- 2025年高考作文熱點素材積累:春節(jié)申遺成功(50個主題片段+時評+解析)
- 2025年宜春職業(yè)技術學院高職單招高職單招英語2016-2024歷年頻考點試題含答案解析
- 2025年護士資格考試必考基礎知識復習題庫及答案(共250題)
- 高中語文:選擇性必修中冊第三單元拓展閱讀
- 耳穴壓豆課件
- 2023年江蘇省南京市中考化學真題(原卷版)
- 2023年湖北省襄陽市中考數(shù)學真題(原卷版)
- 變電站現(xiàn)場運行通用規(guī)程考試試題及答案
- 湖南高速鐵路職業(yè)技術學院單招職業(yè)技能測試參考試題庫(含答案)
- 中醫(yī)護理查房制度
- 母嬰護理員題庫
- 老年人預防及控制養(yǎng)老機構院內(nèi)感染院內(nèi)感染基本知識
- SWITCH暗黑破壞神3超級金手指修改 版本號:2.7.6.90885
- 2023高考語文全國甲卷詩歌閱讀題晁補之《臨江仙 身外閑愁空滿眼》講評課件
評論
0/150
提交評論