新版華為配置命令

risingsunczl發表於2006-09-04
新版華為配置命令 ----命令與詳細解釋[@more@]
新版華為配置命令

S3026交換機
[Quidway]super password (修改特權使用者密碼)
[Quidway]sysname xxx (交換機命名)
[Quidway]interface ethernet0/1 (進入介面檢視)
[Quidway]Quit (退出系統檢視)
[Quidway]info-center console channel console(資訊輸出設定)
[Quidway]monitor-port ethernet0/1(配置流量映象)
[Quidway-Ethernet0/1]duplex {halffullauto} (配置埠雙工工作狀態)
[Quidway-Ethernet0/1]speed {10100auto} (配置埠工作速率)
[Quidway-Ethernet0/1]flow-control {disableenable} (配置埠流控)
[Quidway-Ethernet0/1]shutdownundo shutdown (關閉重起埠)
[Quidway-Ethernet0/1]mdi {acrossautonormal} (配置埠MDIMDIX狀態)
[Quidway]vlan3 undo vlan3 (建立刪除一個VLAN進入VLAN配置模式)
[Quidway-VLAN3]port ethernet0/1 to ethernet0/4 (給VLAN增加刪除乙太網介面)
[Quidway-Ethernet0/1]port access vlan3 (將介面加入到指定VLAN)
[Quidway-Ethernet0/1]port link-type {trunkaccesshybrid} (設定介面工作模式)
hybrid模式的埠可以屬於多個VLAN,可以接收和傳送多個VLAN的報文,可以用於交換機之間連線,也可以
用於連線使用者的計算機,hybrid與trunk的不同之處在於hybrid可以允許多個VLAN的報文傳送時不打標籤,
而trunk只允許預設VLAN的報文傳送時不打標籤。
[Quidway-Ethernet0/1]port trunk permit vlan {idall} (設定允許trunk埠透過指定VLAN的資料楨)
[Quidway-Ethernet0/1]port trunk pvid vlan3 (設定trunk埠的PVID)
[Quidway]link-aggregation ethernet0/1 to ethernet0/3 {ingressboth} (配置埠匯聚)
[Quidway]undo link-aggregation ethernet0/1 (清除埠匯聚)
[Quidway]stp {enabledisable} (對所有埠開啟生成樹或指定某個埠開啟)
ROUTER
[Quidway]DISPLAY ? (顯示系統可用命令或顯示資訊)
[Quidway]display history-commamd (顯歷史命令)
[Quidway]language (中英文顯示方式切換)
[Quidway]tracert IP (測試資料包從主機從傳送主機到目的地所經地的閘道器)
[Quidway-serial0]link-protocol hdlc (在介面上封裝HDLC協議)
[Quidway-serial0]timer hold [seconds] (keepalive取值為0~32767)
PPP典型配置例項
routerA PAP驗證主驗證方
[Quidway-serial0]link-protocol ppp
[Quidway]local-user xxx password simple xxx
[Quidway-serial0]ppp authentication-mode pap
routerB PAP被驗證方
[Quidway-serial0]link ppp
[Quidway-serial0]ppp pap local-user xxx password simple xxx
chap典型配置例項
routerA chap主驗證方
[Quidway]local-user quidway2 password simple xxx
[Quidway-serial0]ppp chap user Quidway1
[Quidway-serial0]ppp authentication-mode chap
routerB被驗證方
[Quidway]local-user quidway1 password simple xxx
[Quidway-serial0]ppp chap user Quidway2
MP典型配置舉例
1、router-a的E1口兩個B通道繫結到router-b的B通道上,另兩個B通道繫結到router-c(假定router-a有四個B通道)
配置router-a:
!增加兩個用ROUTER-B和ROUTER-C
[Quidway]local-user router-b password simple router-b
[Quidway]local-user router-c password simple router-c
!為這兩個使用者指定虛擬介面模板,將使用該模板的NCP資訊進行PPP協商
[Quidway]ppp user router-b bind virtual-template1
[Quidway]ppp user router-c bind virtual-template2
!配置虛擬介面模板
[Quidway]interface-virtual-template1
[Quidway-virtual-template1]ip add 10.0.0.1 24
[Quidway]interface virtual-template2
[Quidway-virtual-template2]ip add 10.0.1.1 24
!將介面S0、S1、S2、S3加入MP通道,以S0為例,其它介面做同樣配置
[Quidway]interface s0
[Quidway-serial0]link-protocol ppp
[Quidway-serial0]ppp mp
[Quidway-serial0]ppp authentication-mode pap
[Quidway-serial0]ppp pap local-user router-a password simple router-a
配置router-b:
!增加一個使用者router-a
[Quidway]local-user router-a password simple router-a
!為這個使用者指定虛擬模板,將使用該模板的NCP資訊進行PPP協商
[Quidway]ppp mp user router-a bind virtual-template 1
!配置虛擬介面模板的工作引數
[Quidway]interface virtual-template 1
[Quidway-virtual-template]ip add 10.0.0.2 24
!將介面S0、S1加入MP通道,以S0為例。
[Quidway]interface s0
[Quidway]ppp mp
[Quidway]ppp authentication-mode pap
[Quidway]ppp pap local-user router-b password simple router-b
router-c與router-b配置相同
[Quidway]display user (顯示PPP驗證的本地使用者)
X.25的配置
[Quidway]link-protocol x25 {[dtedce] | [nonstandardietf]} (配置X25的工作方式)
[Quidway]x25 x121-address xxxxx (配置X121地址)
[Quidway]x25 map ip 10.0.0.1 x121-address xxxxx (建立遠端協議地址和X121地址的對映)
[Quidway]x25 pvc 123 ip 10.0.0.1 x121-address xxxxx (建立永久虛電路同時隱含地建立一條地址對映)
[Quidway]x25 vc-range {in-channel hic lic | bi-channel htc ltc | out-channel hoc loc} (配置虛電路範圍最多4095條,1-4095)
[Quidway]x25 packet-size in-packets (配置分組大小,預設值為128)
[Quidway]x25 packet-size out-packets (配置分組大小,預設值為128)
[Quidway]x25 window-size in-packets (配置視窗大小,預設為2)
[Quidway]x25 window-size out-packets (配置視窗大小,預設為2)
[Quidway]x25 modulo {8 | 128} (配置編號方式,預設值為8)
[Quidway]interface serial number subinterface-number [multipoint | point-to-point] (建立虛擬子介面)
[Quidway]display x25 alias-policy (檢視x25別名表)
[Quidway]display x25 map (檢視X25地址對映表)
[Quidway]disp x25 switch-vc-table svc (檢視X25交換路由表)
[Quidway]disp x25 vc lci-number(檢視X25虛電路)
[Quidway]debug x25 all [interface type number]  (開啟所有X25報文的除錯開關)
[Quidway]debug x25 event [interface type number] (開啟X25的除錯開關)
[Quidway]debug x25 packet [interface type number] (開啟X25報文除錯開關)
x25典型配置舉例
routerA
[Quidway]int s0
[Quidway-serial]ip add 10.0.0.1 24
[Quidway-serial]link-protocol x25 dte (將該介面封裝為X25介面,並指定其工作方式在DTE方式)
[Quidway-serial]x25 x121-address 12345(指定該介面的X121地址)
[Quidway-serial]x25 map ip 10.0.0.2 x121-address 54321(指定到對端的地址對映)
[Quidway-serial]x25 packet-size 1024 1024(設定流量控制引數為1024K)
[Quidway-serial]x25 window-size 5 5
routerB
[Quidway-serial]ip add 10.0.0.2 24
[Quidway-serial]link-protocol x25 dte (如果是背到背的電纜相連需要改成DCE)
[Quidway-serial]x25 x121-address 54321
[Quidway-serial]x25 map ip 10.0.0.1 x121-address 12345
[Quidway-serial]x25 packet-size 1024 1024
[Quidway-serial]x25 window-size
幀中繼的配置
[Quidway-serial]link-protocol frame-relay [MFR | nonstandard | ieft] (封裝幀中繼協議)
[Quidway]frame-relay interface-type [dce | dte | nni] (配置幀中繼介面的終端型別)
[Quidway]frame-relay lmi type [ansi | cisco-compatible | q933a] (選擇LMI型別)
[Quidway]frame-relay {ip|ipx} protocol-address dlci [broadcast] (手工配置靜態對映)
[Quidway]fr inarp [ip|ipx] [dlci] (動態建立:使能動態逆向地址解析協議)
[Quidway]interface type number subinterface-number [multipoint | point-to-point] (建立幀中繼子介面,進入子介面配置模式)
[Quidway]fr dlci dlci (配置幀中繼子介面的虛電路號)
[Quidway]fr switching (允許幀中繼進行PVC交換)
[Quidway]fr interface-type [dce|dte|nni] (設定幀中繼介面型別)
[Quidway]fr dlci-switch pvc in-dlci interface serial number out-dlci (配置幀中繼PVC交換的路由)
[Quidway]disp fr lmi-info [interface type-number] (顯示幀中繼LMI型別報文的收發統計)
[Quidway]disp fr map-info (顯示協議地址與幀中繼地址對映表)
[Quidway]disp fr pvc-info [serial interface-number] [dlci dlci-number]  (顯示幀中繼PVC統計資訊)
[Quidway]disp fr dlci-switch   (顯示幀中繼PVC路由表)
[Quidway]disp fr interface    (顯示各介面的幀中繼協議狀態)
[Quidway]reset fr inarp-info   (清除所有動態建立的幀中繼地址對映)
[Quidway]debugging fr all [interface type-number]  (開啟幀中繼的所有報文除錯開關)
[Quidway]debugging fr arp [interface type-number]  (開啟幀中繼ARP報文資訊除錯開關)
[Quidway]debugging fr event [interface type-number] (開啟幀中繼事件資訊除錯開關)
[Quidway]debugging fr lmi [interface type-number]  (開啟幀中繼LMI協議資訊除錯開關)
幀中繼典型配置舉例(通幀中繼網路互連區域網)
RouterA (對B、C)
[Quidway]fr switching
[Quidway-serial]ip add 10.0.0.1 24
[Quidway-serial]link-protocol fr (封裝為幀中繼)
[Quidway-serial]fr interface-type dte (設定工作方式)
[Quidway-serial]fr inarp (如果對端路由器支援逆向地址解析功能,則動態地址對映)
[Quidway-serial]fr map ip 10.0.0.2 dlci 10 (否則靜態地址對映)
[Quidway-serial]fr map ip 10.0.0.3 dlci 20
RouterB
[Quidway-serial]ip add 10.0.0.2 24
[Quidway-serial]link-protocol fr
[Quidway-serial]fr interface-type dte
[Quidway-serial]fr inarp
[Quidway-serial]fr map ip 10.0.0.1 dlci 30
RouterC
[Quidway-serial]ip add 10.0.0.3 24
[Quidway-serial]link-protocol fr
[Quidway-serial]fr interface-type dte
[Quidway-serial]fr inarp
[Quidway-serial]fr map ip 10.0.0.1 dlci 40

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/653579/viewspace-863000/,如需轉載,請註明出處,否則將追究法律責任。

相關文章