華為交換機(jī)常見(jiàn)命令[互聯(lián)網(wǎng)+]_第1頁(yè)
華為交換機(jī)常見(jiàn)命令[互聯(lián)網(wǎng)+]_第2頁(yè)
華為交換機(jī)常見(jiàn)命令[互聯(lián)網(wǎng)+]_第3頁(yè)
華為交換機(jī)常見(jiàn)命令[互聯(lián)網(wǎng)+]_第4頁(yè)
華為交換機(jī)常見(jiàn)命令[互聯(lián)網(wǎng)+]_第5頁(yè)
已閱讀5頁(yè),還剩7頁(yè)未讀, 繼續(xù)免費(fèi)閱讀

下載本文檔

版權(quán)說(shuō)明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)

文檔簡(jiǎn)介

1、一、清空配置: reset saved-configuration(清楚下次啟動(dòng)時(shí)使用的配置文件信息)然后重啟設(shè)備,重啟設(shè)備室提示保存信息,選擇“NO”。 reset saved-configurationWarning: The action will delete the saved configuration in the device.The configuration will be erased to reconfigure. Continue? Y/N:yWarning: Now clearing the configuration in the device.Info: Suc

2、ceeded in clearing the configuration in the device. rebootInfo: The system is now comparing the configuration, please wait.Warning: The configuration has been modified, and it will be saved to the next startup saved-configuration file flash:/vrpcfg.zip. Continue? Y/N:n /此處請(qǐng)選擇“N”Info: If want to rebo

3、ot with saving diagnostic information, input N and then execute reboot save diagnostic-information.System will reboot! Continue?Y/N:y二、通過(guò)STelnet/Telnet登錄交換機(jī)設(shè)置新的Console口登錄密碼# 以登錄用戶界面的認(rèn)證方式為密碼認(rèn)證,密碼為Huawei123為例,配置如下。 system-viewHUAWEI user-interface console 0HUAWEI-ui-console0 authentication-mode passwo

4、rdHUAWEI-ui-console0 set authentication password cipher Huawei123HUAWEI-ui-console0 return save# 以登錄用戶界面的認(rèn)證方式為AAA認(rèn)證,用戶名為admin123,密碼為Huawei123為例,配置如下。 system-viewHUAWEI user-interface console 0HUAWEI-ui-console0 authentication-mode aaaHUAWEI-ui-console0 quitHUAWEI aaaHUAWEI-aaa local-user admin123 pa

5、ssword irreversible-cipher Huawei123HUAWEI-aaa local-user admin123 service-type terminal(本地防務(wù)終端用戶)HUAWEI-aaa return(返回) save(保存)三、查看某個(gè)接口學(xué)習(xí)到的MAC地址 display mac-address dynamic gigabitethernet1/0/1MAC Address VLAN/VSI Learned-From Type -0000-0000-0003 300/- GE1/0/1 dynamic 0026-6e5c-feac 3000/- GE1/0/1

6、 dynamic 四、查看某個(gè)VLAN學(xué)習(xí)到的MAC地址 display mac-address dynamic vlan 10MAC Address VLAN/VSI Learned-From Type -0000-0000-0003 10/- GE1/0/1 dynamic 0026-6e5c-feac 10/- GE1/0/2 dynamic 五、查看系統(tǒng)的MAC地址 display interface gigabitethernet1/0/1GigabitEthernet1/0/1 current state : UP Line protocol current state : UPD

7、escription: Switch Port, Link-type : access(configured), IP Sending Frames Format is PKTFMT_ETHNT_2, Hardware address is00e0f74b-6d00 六、根據(jù)IP獲取對(duì)應(yīng)設(shè)備的MAC地址 display arp | include 0配置端口安全# 配置GE1/0/1接口的端口安全功能。 system-viewHUAWEI interface gigabitethernet 1/0/1HUAWEI-GigabitEthernet1/0/1 port-s

8、ecurity enable# 配置GE1/0/1接口的MAC地址學(xué)習(xí)限制數(shù)為5,即最多可以學(xué)習(xí)到5個(gè)MAC地址表項(xiàng)。 system-viewHUAWEI interface gigabitethernet 1/0/1HUAWEI-GigabitEthernet1/0/1 port-security enableHUAWEI-GigabitEthernet1/0/1 port-security max-mac-num 5配置永久端口組# 配置接口GE1/0/1至GE1/0/8加入到永久端口組portgroup1(使用port-group命令) system-viewHUAWEI port-gr

9、oup portgroup1HUAWEI-port-group-portgroup1 group-member gigabitethernet 1/0/1 to gigabitethernet 1/0/8配置接口速率 自協(xié)商模式下,手動(dòng)配置接口速率# 配置以太網(wǎng)接口GE1/0/1在自協(xié)商模式下協(xié)商速率為100Mbit/s。 system-viewHUAWEI interface gigabitethernet 1/0/1HUAWEI-GigabitEthernet1/0/1 negotiation autoHUAWEI-GigabitEthernet1/0/1 auto speed 100配置

10、雙工模式 自協(xié)商模式下,手動(dòng)配置雙工模式 # 配置以太網(wǎng)電接口GE1/0/1在自協(xié)商模式下雙工模式為全雙工模式。 system-viewHUAWEI interface gigabitethernet 1/0/1HUAWEI-GigabitEthernet1/0/1 negotiation autoHUAWEI-GigabitEthernet1/0/1 auto duplex full配置接口切換到三層模式 接口視圖下執(zhí)行命令undo portswitch,配置接口切換到三層模式。# 將接口GE1/0/1切換為三層模式。 system-viewHUAWEI interface gigabite

11、thernet 1/0/1HUAWEI-GigabitEthernet1/0/1 undo portswitchHUAWEI-GigabitEthernet1/0/1 ip address 0 支持二層模式與三層模式切換的款型及版本如下:lS5700EI:V200R005C00&C01lS5700HI:V100R005C01、V100R006C01、V200R001C00、V200R002C00、V200R003C00、V200R005C00&C01lS5710EI:V200R002C00、V200R003C00、V200R005C00lS5720

12、EI:V200R007C00、V200R008C00、V200R009C00、V200R010C00lS5710HI:V200R003C00、V200R005C00lS5720HI:V200R006C00、V200R007C00、V200R008C00、V200R009C00、V200R010C00lS6700EI:V200R005C00&C01lS6720EI:V200R008C00、V200R009C00、V200R010C00lS6720S-EI:V200R008C00、V200R009C00、V200R010C00lS7700&S9700:V200R001C00&C01、V200R00

13、2C00、V200R003C00、V200R005C00、V200R006C00、V200R007C00、V200R008C00、V200R009C00、V200R010C00對(duì)于V200R005C00及后續(xù)版本,在接口使用命令undo portswitch,將以太網(wǎng)接口從二層模式切換到三層模式后,支持配置IP地址。一鍵清除接口下的配置 執(zhí)行命令一鍵式清除接口下配置后,接口的狀態(tài)將被置為shutdown狀態(tài)。# 在系統(tǒng)視圖下執(zhí)行命令clear configuration interface清除GE1/0/1接口下的配置 system-viewHUAWEI clear configuration

14、 interface gigabitethernet 1/0/1Warning: All configurations of the interface will be cleared, and its state will be shutdown. Continue? Y/N :yInfo: Total 5 command(s) executed, 5 successful, 0 failed.查看設(shè)備支持的鏈路聚合組數(shù)目和成員接口數(shù)目# 查看設(shè)備支持的鏈路聚合組數(shù)目和成員接口數(shù)目。 display trunk configuration接口加入VLANl Access接口加入VLAN sy

15、stem-viewHUAWEI interface gigabitethernet0/0/1HUAWEI-GigabitEthernet0/0/1 port link-type access /設(shè)置接口的鏈路類型為AccessHUAWEI-GigabitEthernet0/0/1 port default vlan 10 /把接口GigabitEthernet0/0/1加入VLAN 10Trunk接口加入VLAN system-viewHUAWEI interface gigabitethernet0/0/1HUAWEI-GigabitEthernet0/0/1 port link-type

16、trunk /設(shè)置接口的鏈路類型為TrunkHUAWEI-GigabitEthernet0/0/1 port trunk allow-pass vlan 10 /把接口GigabitEthernet0/0/1加入VLAN 10Hybrid接口加入VLAN system-viewHUAWEI interface gigabitethernet0/0/1HUAWEI-GigabitEthernet0/0/1 port link-type hybrid /設(shè)置接口的鏈路類型為HybridHUAWEI-GigabitEthernet0/0/1 port hybrid tagged vlan 10 /接

17、口GigabitEthernet0/0/1以Tagged方式加入VLAN 10HUAWEI-GigabitEthernet0/0/1 port hybrid untagged vlan 20 /接口GigabitEthernet0/0/1以Untagged方式加入VLAN 20批量創(chuàng)建VLAN批量創(chuàng)建10個(gè)連續(xù)的VLAN:VLAN11到VLAN20。 system-viewHUAWEI vlan batch 11 to 20批量創(chuàng)建10不連續(xù)的VLAN:VLAN10、VLAN15到VLAN19、VLAN25、VLAN28到VLAN30。 system-viewHUAWEI vlan batch

18、 10 15 to 19 25 28 to 30接口批量加入VLANaccess接口類型。 system-viewHUAWEI port-group pg1 /創(chuàng)建端口組pg1HUAWEI-port-group-pg1 group-member gigabitethernet1/0/1 to gigabitethernet1/0/5 /把接口gigabitethernet1/0/1到gigabitethernet1/0/5加入端口組HUAWEI-port-group-pg1 port link-type access /批量修改端口gigabitethernet1/0/1 to gigabit

19、ethernet1/0/5的鏈路類型為accessHUAWEI-port-group-pg1 port default vlan 10 /批量把端口gigabitethernet1/0/1 to gigabitethernet1/0/5加入VLAN10trunk接口類型。 system-viewHUAWEI port-group pg1 /創(chuàng)建端口組pg1HUAWEI-port-group-pg1 group-member gigabitethernet1/0/1 to gigabitethernet1/0/5 /把接口gigabitethernet1/0/1到gigabitethernet1/0/5加入端口組HUAWEI-port-group-pg1 port link-type trunk /批量修改端口gigabitethernet1/0/1 to gigabitethernet1/0/5的鏈路類型為trunkHUAWEI-port-group-pg1 port trunk allow-pass v

溫馨提示

  • 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。

評(píng)論

0/150

提交評(píng)論