




版權說明:本文檔由用戶提供并上傳,收益歸屬內容提供方,若內容存在侵權,請進行舉報或認領
文檔簡介
1、一、清空配置:<HUAWEI> reset saved-configuration(清楚下次啟動時使用的配置文件信息)然后重啟設備,重啟設備室提示保存信息,選擇“NO”。<HUAWEI> 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 configura
2、tion in the device.Info: Succeeded in clearing the configuration in the device.<HUAWEI> 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. Cont
3、inue? Y/N:n /此處請選擇“N”Info: If want to reboot with saving diagnostic information, input 'N' and then execute 'reboot save diagnostic-information'.System will reboot! Continue?Y/N:y二、通過STelnet/Telnet登錄交換機設置新的Console口登錄密碼# 以登錄用戶界面的認證方式為密碼認證,密碼為Huawei123為例,配置如下。<HUAWEI> system-view
4、HUAWEI user-interface console 0HUAWEI-ui-console0 authentication-mode passwordHUAWEI-ui-console0 set authentication password cipher Huawei123HUAWEI-ui-console0 return<HUAWEI> save# 以登錄用戶界面的認證方式為AAA認證,用戶名為admin123,密碼為Huawei123為例,配置如下。<HUAWEI> system-viewHUAWEI user-interface console 0HUAW
5、EI-ui-console0 authentication-mode aaaHUAWEI-ui-console0 quitHUAWEI aaaHUAWEI-aaa local-user admin123 password irreversible-cipher Huawei123HUAWEI-aaa local-user admin123 service-type terminal(本地防務終端用戶)HUAWEI-aaa return(返回)<HUAWEI> save(保存)三、查看某個接口學習到的MAC地址<HUAWEI> display mac-address dy
6、namic gigabitethernet1/0/1MAC Address VLAN/VSI Learned-From Type -0000-0000-0003 300/- GE1/0/1 dynamic 0026-6e5c-feac 3000/- GE1/0/1 dynamic 四、查看某個VLAN學習到的MAC地址<HUAWEI> display mac-address dynamic vlan 10MAC Address VLAN/VSI Learned-From Type -0000-0000-0003 10/- GE1/0/1 dynamic 0026-6e5c-feac
7、 10/- GE1/0/2 dynamic 五、查看系統的MAC地址<HUAWEI> display interface gigabitethernet1/0/1GigabitEthernet1/0/1 current state : UP Line protocol current state : UPDescription: Switch Port, Link-type : access(configured), IP Sending Frames' Format is PKTFMT_ETHNT_2, Hardware address is00e0f74b-6d00 六
8、、根據IP獲取對應設備的MAC地址<HUAWEI> display arp | include 0配置端口安全# 配置GE1/0/1接口的端口安全功能。<HUAWEI> system-viewHUAWEI interface gigabitethernet 1/0/1HUAWEI-GigabitEthernet1/0/1 port-security enable# 配置GE1/0/1接口的MAC地址學習限制數為5,即最多可以學習到5個MAC地址表項。<HUAWEI> system-viewHUAWEI interface gigab
9、itethernet 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命令)<HUAWEI> system-viewHUAWEI port-group portgroup1HUAWEI-port-group-portgroup1 group-member gigabitethernet 1/0/1 t
10、o gigabitethernet 1/0/8配置接口速率 自協商模式下,手動配置接口速率# 配置以太網接口GE1/0/1在自協商模式下協商速率為100Mbit/s。<HUAWEI> system-viewHUAWEI interface gigabitethernet 1/0/1HUAWEI-GigabitEthernet1/0/1 negotiation autoHUAWEI-GigabitEthernet1/0/1 auto speed 100配置雙工模式 自協商模式下,手動配置雙工模式 # 配置以太網電接口GE1/0/1在自協商模式下雙工模式為全雙工模式。<HUAWE
11、I> system-viewHUAWEI interface gigabitethernet 1/0/1HUAWEI-GigabitEthernet1/0/1 negotiation autoHUAWEI-GigabitEthernet1/0/1 auto duplex full配置接口切換到三層模式 接口視圖下執行命令undo portswitch,配置接口切換到三層模式。# 將接口GE1/0/1切換為三層模式。<HUAWEI> system-viewHUAWEI interface gigabitethernet 1/0/1HUAWEI-GigabitEthernet1/
12、0/1 undo portswitchHUAWEI-GigabitEthernet1/0/1 ip address 0 支持二層模式與三層模式切換的款型及版本如下:lS5700EI:V200R005C00&C01lS5700HI:V100R005C01、V100R006C01、V200R001C00、V200R002C00、V200R003C00、V200R005C00&C01lS5710EI:V200R002C00、V200R003C00、V200R005C00lS5720EI:V200R007C00、V200R008C00、V2
13、00R009C00、V200R010C00lS5710HI:V200R003C00、V200R005C00lS5720HI:V200R006C00、V200R007C00、V200R008C00、V200R009C00、V200R010C00lS6700EI:V200R005C00&C01lS6720EI:V200R008C00、V200R009C00、V200R010C00lS6720S-EI:V200R008C00、V200R009C00、V200R010C00lS7700&S9700:V200R001C00&C01、V200R002C00、V200R003C00、
14、V200R005C00、V200R006C00、V200R007C00、V200R008C00、V200R009C00、V200R010C00對于V200R005C00及后續版本,在接口使用命令undo portswitch,將以太網接口從二層模式切換到三層模式后,支持配置IP地址。一鍵清除接口下的配置 執行命令一鍵式清除接口下配置后,接口的狀態將被置為shutdown狀態。# 在系統視圖下執行命令clear configuration interface清除GE1/0/1接口下的配置<HUAWEI> system-viewHUAWEI clear configuration in
15、terface 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.查看設備支持的鏈路聚合組數目和成員接口數目# 查看設備支持的鏈路聚合組數目和成員接口數目。<HUAWEI> display trunk configuration接口加入VLANl Access
16、接口加入VLAN<HUAWEI> system-viewHUAWEI interface gigabitethernet0/0/1HUAWEI-GigabitEthernet0/0/1 port link-type access /設置接口的鏈路類型為AccessHUAWEI-GigabitEthernet0/0/1 port default vlan 10 /把接口GigabitEthernet0/0/1加入VLAN 10Trunk接口加入VLAN<HUAWEI> system-viewHUAWEI interface gigabitethernet0/0/1HUAW
17、EI-GigabitEthernet0/0/1 port link-type trunk /設置接口的鏈路類型為TrunkHUAWEI-GigabitEthernet0/0/1 port trunk allow-pass vlan 10 /把接口GigabitEthernet0/0/1加入VLAN 10Hybrid接口加入VLAN<HUAWEI> system-viewHUAWEI interface gigabitethernet0/0/1HUAWEI-GigabitEthernet0/0/1 port link-type hybrid /設置接口的鏈路類型為HybridHUAW
18、EI-GigabitEthernet0/0/1 port hybrid tagged vlan 10 /接口GigabitEthernet0/0/1以Tagged方式加入VLAN 10HUAWEI-GigabitEthernet0/0/1 port hybrid untagged vlan 20 /接口GigabitEthernet0/0/1以Untagged方式加入VLAN 20批量創建VLAN批量創建10個連續的VLAN:VLAN11到VLAN20。<HUAWEI> system-viewHUAWEI vlan batch 11 to 20批量創建10不連續的VLAN:VLAN
19、10、VLAN15到VLAN19、VLAN25、VLAN28到VLAN30。<HUAWEI> system-viewHUAWEI vlan batch 10 15 to 19 25 28 to 30接口批量加入VLANaccess接口類型。<HUAWEI> system-viewHUAWEI port-group pg1 /創建端口組pg1HUAWEI-port-group-pg1 group-member gigabitethernet1/0/1 to gigabitethernet1/0/5 /把接口gigabitethernet1/0/1到gigabitether
20、net1/0/5加入端口組HUAWEI-port-group-pg1 port link-type access /批量修改端口gigabitethernet1/0/1 to gigabitethernet1/0/5的鏈路類型為accessHUAWEI-port-group-pg1 port default vlan 10 /批量把端口gigabitethernet1/0/1 to gigabitethernet1/0/5加入VLAN10trunk接口類型。<HUAWEI> system-viewHUAWEI port-group pg1 /創建端口組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 vlan
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯系上傳者。文件的所有權益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網頁內容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
- 4. 未經權益所有人同意不得將文件中的內容挪作商業或盈利用途。
- 5. 人人文庫網僅提供信息存儲空間,僅對用戶上傳內容的表現方式做保護處理,對用戶上傳分享的文檔內容本身不做任何修改或編輯,并不能對任何下載內容負責。
- 6. 下載文件中如有侵權或不適當內容,請與我們聯系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 評估公司收費管理制度
- 2025年中國滑雪用品行業市場全景分析及前景機遇研判報告
- 試用期全勤獎管理制度
- 財務賬目基本管理制度
- 財政公用經費管理制度
- 貨場物料調撥管理制度
- 貨車企業各項管理制度
- 2025年中國紅外壁爐行業市場全景分析及前景機遇研判報告
- 2025年中國觸覺VR設備行業市場全景分析及前景機遇研判報告
- 批發面條轉讓協議書范本
- 2025年外研版(2024)初中英語七年級下冊期末考試測試卷及答案
- 2024年貴州貴州貴安發展集團有限公司招聘筆試真題
- 2025年中考語文押題作文范文10篇
- 《老年人運動認知風險綜合征健康管理中國專家共識2025》解讀
- 紅木文化知到智慧樹期末考試答案題庫2025年廣西大學
- 國家開放大學本科《商務英語4》一平臺機考真題及答案(第三套)
- 敦煌學智慧樹知到期末考試答案章節答案2024年西北師范大學
- 汽車行走的藝術智慧樹知到期末考試答案章節答案2024年吉林大學
- JJG 643-2024標準表法流量標準裝置
- 安徽淮南市職工生育保險待遇申請表
- 稅收籌劃課后習題答案
評論
0/150
提交評論