




已閱讀5頁,還剩10頁未讀, 繼續(xù)免費(fèi)閱讀
版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報或認(rèn)領(lǐng)
文檔簡介
華為交換機(jī)命令 PCA login: root ;使用root用戶password: linux ;口令是linux# shutdown -h now ;關(guān)機(jī)# init 0 ;關(guān)機(jī)# logout ;用戶注銷# login ;用戶登錄# ifconfig ;顯示IP地址# ifconfig eth0 netmask ;設(shè)置IP地址# ifconfig eht0 netmask down ;禁用IP地址# route add gw ;設(shè)置網(wǎng)關(guān)# route del gw ;刪除網(wǎng)關(guān)# route add default gw ;設(shè)置網(wǎng)關(guān)# route del default gw ;刪除網(wǎng)關(guān)# route ;顯示網(wǎng)關(guān)# ping ;發(fā)ECHO包# telnet ;遠(yuǎn)程登錄交換機(jī)命令Quidwaydis cur ;顯示當(dāng)前配置Quidwaydisplay current-configuration ;顯示當(dāng)前配置Quidwaydisplay interfaces ;顯示接口信息Quidwaydisplay vlan all ;顯示路由信息Quidwaydisplay version ;顯示版本信息Quidwaysuper password ;修改特權(quán)用戶密碼Quidwaysysname ;交換機(jī)命名Quidwayinterface ethernet 0/1 ;進(jìn)入接口視圖Quidwayinterface vlan x ;進(jìn)入接口視圖Quidway-Vlan-interfacexip address ;配置VLAN的IP地址Quidwayip route-static ;靜態(tài)路由網(wǎng)關(guān)Quidwayrip ;三層交換支持Quidwaylocal-user ftpQuidwayuser-interface vty 0 4 ;進(jìn)入虛擬終端S3026-ui-vty0-4authentication-mode password ;設(shè)置口令模式S3026-ui-vty0-4set authentication-mode password simple 222 ;設(shè)置口令S3026-ui-vty0-4user privilege level 3 ;用戶級別Quidwayinterface ethernet 0/1 ;進(jìn)入端口模式Quidwayint e0/1 ;進(jìn)入端口模式Quidway-Ethernet0/1duplex half|full|auto ;配置端口工作狀態(tài)Quidway-Ethernet0/1speed 10|100|auto ;配置端口工作速率Quidway-Ethernet0/1flow-control ;配置端口流控Quidway-Ethernet0/1mdi across|auto|normal ;配置端口平接扭接Quidway-Ethernet0/1port link-type trunk|access|hybrid ;設(shè)置端口工作模式Quidway-Ethernet0/1port access vlan 3 ;當(dāng)前端口加入到VLANQuidway-Ethernet0/2port trunk permit vlan ID|All ;設(shè)trunk允許的VLANQuidway-Ethernet0/3port trunk pvid vlan 3 ;設(shè)置trunk端口的PVIDQuidway-Ethernet0/1undo shutdown ;激活端口Quidway-Ethernet0/1shutdown ;關(guān)閉端口Quidway-Ethernet0/1quit ;返回Quidwayvlan 3 ;創(chuàng)建VLANQuidway-vlan3port ethernet 0/1 ;在VLAN中增加端口Quidway-vlan3port e0/1 ;簡寫方式Quidway-vlan3port ethernet 0/1 to ethernet 0/4 ;在VLAN中增加端口Quidway-vlan3port e0/1 to e0/4 ;簡寫方式Quidwaymonitor-port ;指定鏡像端口Quidwayport mirror ;指定被鏡像端口Quidwayport mirror int_list observing-port int_type int_num ;指定鏡像和被鏡像Quidwaydescription string ;指定VLAN描述字符Quidwaydescription ;刪除VLAN描述字符Quidwaydisplay vlan vlan_id ;查看VLAN設(shè)置Quidwaystp enable|disable ;設(shè)置生成樹,默認(rèn)關(guān)閉Quidwaystp priority 4096 ;設(shè)置交換機(jī)的優(yōu)先級Quidwaystp root primary|secondary ;設(shè)置為根或根的備份Quidway-Ethernet0/1stp cost 200 ;設(shè)置交換機(jī)端口的花費(fèi)Quidwaylink-aggregation e0/1 to e0/4 ingress|both ;端口的聚合Quidwayundo link-aggregation e0/1|all ; 始端口為通道號SwitchA-vlanxisolate-user-vlan enable ;設(shè)置主vlanSwitchAisolate-user-vlan secondary ;設(shè)置主vlan包括的子vlanQuidway-Ethernet0/2port hybrid pvid vlan ;設(shè)置vlan的pvidQuidway-Ethernet0/2port hybrid pvid ;刪除vlan的pvidQuidway-Ethernet0/2port hybrid vlan vlan_id_list untagged ;設(shè)置無標(biāo)識的vlan如果包的vlan id與PVId一致,則去掉vlan信息. 默認(rèn)PVID=1。所以設(shè)置PVID為所屬vlan id, 設(shè)置可以互通的vlan為untagged.local-user adminservice-type telnetlevel 3password simple adminuser-interface vty 0 4authentication-mode scheme或super password level 3 simple adminuser-interface vty 0 4set authentication password simple local-user admin password simple hwhzwnw service-type telnet terminal level 3authentication-mode scheme 以上是配用戶名路由器命令Quidwaydisplay version ;顯示版本信息Quidwaydisplay current-configuration ;顯示當(dāng)前配置Quidwaydisplay interfaces ;顯示接口信息Quidwaydisplay ip route ;顯示路由信息Quidwaysysname aabbcc ;更改主機(jī)名Quidwaysuper passwrod 123456 ;設(shè)置口令Quidwayinterface serial0 ;進(jìn)入接口Quidway-serial0ip address ;配置端口IP地址Quidway-serial0undo shutdown ;激活端口Quidwaylink-protocol hdlc ;綁定hdlc協(xié)議Quidwayuser-interface vty 0 4Quidway-ui-vty0-4authentication-mode passwordQuidway-ui-vty0-4set authentication-mode password simple 222Quidway-ui-vty0-4user privilege level 3Quidway-ui-vty0-4quitQuidwaydebugging hdlc all serial0 ;顯示所有信息Quidwaydebugging hdlc event serial0 ;調(diào)試事件信息Quidwaydebugging hdlc packet serial0 ;顯示包的信息靜態(tài)路由:Quidwayip route-static interface number|nexthopvaluereject|blackhole例如:Quidwayip route-static 16 Quidwayip route-static Quidwayip route-static 16 Serial 2Quidwayip route-static 動態(tài)路由:Quidwayrip ;設(shè)置動態(tài)路由Quidwayrip work ;設(shè)置工作允許Quidwayrip input ;設(shè)置入口允許Quidwayrip output ;設(shè)置出口允許Quidway-ripnetwork ;設(shè)置交換路由網(wǎng)絡(luò)Quidway-ripnetwork all ;設(shè)置與所有網(wǎng)絡(luò)交換Quidway-rippeer ip-address ;Quidway-ripsummary ;路由聚合Quidwayrip version 1 ;設(shè)置工作在版本1Quidwayrip version 2 multicast ;設(shè)版本2,多播方式Quidway-Ethernet0rip split-horizon ;水平分隔Quidwayrouter id A.B.C.D ;配置路由器的IDQuidwayospf enable ;啟動OSPF協(xié)議Quidway-ospfimport-route direct ;引入直聯(lián)路由Quidway-Serial0ospf enable area ;配置OSPF區(qū)域標(biāo)準(zhǔn)訪問列表命令格式如下:acl match-order config|auto ;默認(rèn)前者順序匹配。rule normal|specialpermit|deny source source-addr source-wildcard|any例:Quidwayacl 10Quidway-acl-10rule normal permit source 55Quidway-acl-10rule normal deny source any擴(kuò)展訪問控制列表配置命令配置TCP/UDP協(xié)議的擴(kuò)展訪問列表:rule normal|specialpermit|denytcp|udpsource |anydestination |anyoperate配置ICMP協(xié)議的擴(kuò)展訪問列表:rule normal|specialpermit|denyicmp source |anydestination |anyicmp-code logging擴(kuò)展訪問控制列表操作符的含義equal portnumber ;等于greater-than portnumber ;大于less-than portnumber ;小于not-equal portnumber ;不等range portnumber1 portnumber2 ;區(qū)間擴(kuò)展訪問控制列表舉例Quidwayacl 101Quidway-acl-101rule deny souce any destination anyQuidway-acl-101rule permit icmp source any destination any icmp-type echoQuidway-acl-101rule permit icmp source any destination any icmp-type echo-replyQuidwayacl 102Quidway-acl-102rule permit ip source destination Quidway-acl-102rule deny ip source any destination anyQuidwayacl 103Quidway-acl-103rule permit tcp source any destination destination-port equal ftpQuidway-acl-103rule permit tcp source any destination destination-port equal wwwQuidwayfirewall enableQuidwayfirewall default permit|denyQuidwayint e0Quidway-Ethernet0firewall packet-filter 101 inbound|outbound地址轉(zhuǎn)換配置舉例Quidwayfirewall enableQuidwayfirewall default permitQuidwayacl 101 ;內(nèi)部指定主機(jī)可以進(jìn)入e0Quidway-acl-101rule deny ip source any destination anyQuidway-acl-101rule permit ip source 0 destination anyQuidway-acl-101rule permit ip source 0 destination anyQuidway-acl-101rule permit ip source 0 destination anyQuidway-acl-101rule permit ip source 0 destination anyQuidway-acl-101quitQuidwayint e0Quidway-Ethernet0firewall packet-filter 101 inboundQuidwayacl 102 ;外部特定主機(jī)和大于1024端口的數(shù)據(jù)包允許進(jìn)入S0Quidway-acl-102rule deny ip source any destination anyQuidway-acl-102rule permit tcp source 0 destination 0Quidway-acl-102rule permit tcp source any destination 0 destination-port great-than1024Quidway-acl-102quitQuidwayint s0Quidway-Serial0firewall packet-filter 102 inbound ;設(shè)是路由器出口IP。Quidway-Serial0nat outbound 101 interface ;是Easy ip,將acl 101允許的IP從本接口出時變換源地址。內(nèi)部服務(wù)器地址轉(zhuǎn)換配置命令(靜態(tài)nat):nat server global port inside port protocol ;global_port不寫時使用inside_portQuidway-Serial0nat server global inside ftp tcpQuidway-Serial0nat server global inside telnet tcpQuidway-Serial0nat server global inside www tcp設(shè)有公網(wǎng)IP:0103 可以使用。 ;對外訪問(原例題)Quidwaynat address-group 01 03 pool1 ;建立地址池Quidwayacl 1Quidway-acl-1rule permit source 55 ;指定允許的內(nèi)部網(wǎng)絡(luò)Quidway-acl-1rule deny source anyQuidway-acl-1int serial 0Quidway-Serial0nat outbound 1 address-group pool1 ;在s0口從地址池取出IP對外訪問Quidway-Serial0nat server global 01 inside ftp tcpQuidway-Serial0nat server global 02 inside www tcpQuidway-Serial0nat server global 02 8080 inside www tcpQuidway-Serial0nat server global 03 inside smtp udpPPP設(shè)置:Quidway-s0link-protocol ppp ;默認(rèn)的協(xié)議PPP驗(yàn)證:主驗(yàn)方:pap|chapQuidwaylocal-user q2 password simple|cipher hello ;路由器1Quidwayinterface serial 0Quidway-serial0ppp authentication-mode pap|chapQuidway-serial0ppp chap user q1 ;pap時,沒有此句pap被驗(yàn)方:Quidwayinterface serial 0 ;路由器2Quidway-serial0ppp pap local-user q2 password simple|cipher hellochap被驗(yàn)方:Quidwayinterface serial 0 ;路由器2Quidway-serial0ppp chap user q2 ;自己路由器名Quidway-serial0local-user q1 password simple|cipher hello ;對方路由器名幀中繼frame-relay (二分冊6-61)q1fr switchingq1int s1q1-Serial1ip address 1 q1-Serial1link-protocol fr ;封裝幀中繼協(xié)議q1-Serial1fr interface-type dceq1-Serial1fr dlci 100q1-Serial1fr inarpq1-Serial1fr map ip 2 dlci 100q2int s1q2-Serial1ip address 2 q2-Serial1link-protocol frq2-Serial1fr interface-type dteq2-Serial1fr dlci 100q2-Serial1fr inarpq2-Serial1fr map ip 1 dlci 100幀中繼監(jiān)測q1display fr lmi-infointerface type numberq1display fr mapq1display fr pvc-infoserial interface-numberdlci dlci-numberq1display fr dlci-switchq1display fr interfaceq1reset fr inarp-infoq1debugging fr allinterface type numberq1debugging fr arpinterface type numberq1debugging fr eventinterface type numberq1debugging fr lmiinterface type number 基本命令?監(jiān)控視圖命令: boot 設(shè)置啟動選項(xiàng) cd 改變當(dāng)前路徑 clock 設(shè)置系統(tǒng)時鐘 cluster 執(zhí)行集群命令 copy 拷貝文件 debugging 調(diào)試功能 delete 刪除文件 dir 顯示系統(tǒng)中的文件列表 display 顯示系統(tǒng)運(yùn)行信息 format 格式化設(shè)備 free 釋放用戶接口 ftp 建立一個FTP連接 language-mode 設(shè)置語言環(huán)境 lock 鎖住用戶終端 mkdir 創(chuàng)建新目錄 more 顯示文件的內(nèi)容 move 移動文件 ntdp 運(yùn)行NTDP命令 ping 檢查網(wǎng)絡(luò)連接或主機(jī)是否可達(dá) pwd 顯示當(dāng)前路徑 quit 退出當(dāng)前的命令視圖 reboot 重啟交換機(jī) rename 重命名文件或目錄 reset 執(zhí)行清除操作 rmdir 刪除已經(jīng)存在的目錄 save 保存當(dāng)前有效配置 send 向其他的用戶終端接口傳送信息 stacking 在堆疊設(shè)備上運(yùn)行命令 super 指定用戶優(yōu)先級 system-view 進(jìn)入系統(tǒng)視圖 telnet 建立一個TELNET連接 terminal 設(shè)置終端特性 tracert 跟蹤到達(dá)目的地的路由 undelete 恢復(fù)刪除的文件 undo 執(zhí)行命令否操作或者恢復(fù)為命令的缺省值system-view進(jìn)入系統(tǒng)視圖, 鍵入Ctrl+Z退回到用戶視圖.s3026?系統(tǒng)視圖命令: acl 指定ACL配置信息 am 訪問管理 arp 指定全局ARP配置信息 cluster 指定集群配置信息 command-privilege 設(shè)置命令權(quán)限 cut 切斷連接 dhcp-snooping DHCP監(jiān)聽 display 顯示系統(tǒng)運(yùn)行信息 domain 增加域或修改域?qū)傩?dot1x 指定802.1x配置信息 execute 下發(fā)配置文件 file 設(shè)置文件系統(tǒng)參數(shù) ftp 設(shè)置FTP服務(wù)器參數(shù) garp 通用屬性注冊協(xié)議 gmrp GARP 多播組注冊協(xié)議 gvrp GARP VLAN注冊協(xié)議 habp 指定HABP配置信息 header 定義登錄標(biāo)題 hgmpserver 指定HGMP server配置信息 igmp-snooping IGMP偵聽 info-center 指定信息中心配置信息 interface 指定接口配置視圖 ip 指定IP配置信息 isolate-user-vlan 設(shè)置isolate-user-vlan屬性 link-aggregation 設(shè)置接口匯聚 local-server 指定本地RADIUS認(rèn)證服務(wù)器配置信息 local-user 指定本地用戶配置信息 mac-address 配置MAC地址 mirrored-to 鏡像報文 ndp 鄰居發(fā)現(xiàn)協(xié)議 ntdp 指定NTDP配置信息 ntp-service 指定NTP(網(wǎng)絡(luò)時間協(xié)議)配置信息 packet-filter 使用訪問列表過濾報文 ping 檢查網(wǎng)絡(luò)連接或主機(jī)是否可達(dá) queue-scheduler 設(shè)置隊(duì)列調(diào)度模式和參數(shù) quit 退出當(dāng)前的命令視圖 radius 指定RADIUS配置信息 rename 重新命名信息通道 return 退到用戶視圖 rmon 配置RMON service 設(shè)置功能開關(guān),缺省時關(guān)閉 snmp-agent 指定SNMP(Simple Network Management Protocol)配置信息 stacking 指定堆疊配置信息 stp 生成樹協(xié)議 super 修改超級用戶密碼參數(shù) sysname 設(shè)置主機(jī)名稱 tcp 指定全局TCP配置信息 tftp tftp命令 time-range 指定時間段配置信息 tracert 跟蹤到達(dá)目的地的路由 traffic-priority 設(shè)置報文優(yōu)先級 traffic-redirect 重定向報文 traffic-statistic 統(tǒng)計報文流量 undo 取消當(dāng)前設(shè)置 user-interface 配置用戶終端接口 vlan 配置VLANs3026test saved-configuration % 未知的命令, 錯誤發(fā)生在 所指的位置.reset saved-configuration交換機(jī)的 flash memory 中的配置將被擦除.你確信嗎?Y/Ny開始擦除 flash memory 中的配置. 請稍侯.擦除配置成功.language-mode chinese改變當(dāng)前語言環(huán)境,確認(rèn)切換?Y/Ny% 改變到中文模式。reboot確實(shí)要重啟交換機(jī)嗎? Y/N y%2007/2/2 11:58:50 s3026 DEV/5/DEV_LOG:Slot=1;Switch is rebooted.Starting. * * * * Quidway S3026E BOOTROM, Version 120 * * * * Copyright(C) 2000-2003 by HUAWEI TECHNOLOGIES CO.,LTD. Creation date : Jul 18 2003, 09:43:56 CPU type : MIPS CPU Clock Speed : 150MHz Memory Size : 64MB Initialize LS65LTSU .OK! SDRAM selftest.OK! FLASH selftest.OK! CPLD selftest.OK! Switch chip selftest.OK! Switch SDRAM selftest.OK! Port g1/1 has 100BASE-FX MM module Port g2/1 has 100BASE-FX MM module PHY selftest.OK! Please check port leds.finished! The switch Mac is: 00E0-FC1E-2DD7Press Ctrl-B to enter Boot Menu. 0Auto-booting.Starting .* All rights reserved (1997-2003) * Without the owners prior written consent, * no decompiling or reverse-engineering shall be allowed.*User interface Aux0/0 is availablePlease Press ENTER.systemEnter system view , return user view with Ctrl+Z.Quidwaysysname s3026s3026s3026super ? password 設(shè)置密碼s3026super password ? cipher 密文顯示密碼 level 設(shè)置指定優(yōu)先級的進(jìn)入密碼 simple 明文顯示密碼s3026super password simple 123s3026s3026save將把當(dāng)前的配置保存到交換機(jī)的 flash memory中.你確信嗎?Y/Ny將運(yùn)行時的配
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 谷物磨制企業(yè)戰(zhàn)略規(guī)劃與市場定位策略考核試卷
- 藥用提取設(shè)備與有效成分分析考核試卷
- 紡織面料鞋的廢舊資源再利用技術(shù)考核試卷
- 紙張印刷與印后加工考核試卷
- 羽絨加工企業(yè)工藝優(yōu)化與成本降低實(shí)踐考核試卷
- 車輛信息安全與隱私保護(hù)技術(shù)考核試卷
- 傳染病敗血癥診療與防控要點(diǎn)
- 寵物美容連鎖店品牌加盟、技術(shù)培訓(xùn)與設(shè)備租賃合同
- 綠色環(huán)保住宅售后返租投資協(xié)議
- 婚前商標(biāo)權(quán)權(quán)屬爭議調(diào)解及執(zhí)行協(xié)議
- 2025年春青島版數(shù)學(xué)九年級下冊課件 5.1 第3課時 簡單的分段函數(shù)
- 兒童行為干預(yù)效果評估的機(jī)器學(xué)習(xí)方法-洞察闡釋
- 區(qū)塊鏈考試試題及答案
- 演講口才考試試題及答案
- 1.1細(xì)胞是生命活動的基本單位課件高一上學(xué)期生物人教版(2019)必修1
- 2025-2030中國氟化工行業(yè)市場發(fā)展現(xiàn)狀及發(fā)展趨勢與投資前景研究報告
- 2025年湖北省武漢市高考地理調(diào)研試卷(2月份)
- 2024年呼和浩特市玉泉區(qū)消防救援大隊(duì)招聘真題
- 無人機(jī)安全操作試題及答案
- 糞便檢測技術(shù)優(yōu)化-全面剖析
- 2025年糧油倉儲管理員職業(yè)技能競賽參考試題庫(含答案)
評論
0/150
提交評論