華爲ensp常用簡單命令(一)


華爲ensp

一、ensp是什麼?

eNSP(Enterprise Network Simulation Platform)是一款由華爲提供的免費的、可擴展的、圖形化操作的網絡仿真工具平臺,主要對企業網絡路由器、交換機進行軟件仿真,完美呈現真實設備實景,支持大型網絡模擬,讓廣大用戶有機會在沒有真實設備的情況下能夠模擬演練,學習網絡技術。

二、ensp界面

在這裏插入圖片描述

三、常用簡單命令

  • 歷史命令查詢
    [Huawei]display history-command

  • 配置主機名
    <Huawei>system-view修改主機名必須進入系統視圖
    [Huawei]sysname 交換機名

  • 狀態信息查詢
    [Huawei]display version 查看VRP版本信息
    <Huawei>display users 查看用戶終端信息

  • 進入當前接口
    [Huawei]interface Ethernet 0/0/1

  • 配置文件管理命令
    [Huawei]display saved-configuration查看設備保存的信息
    [Huawei]display current-configuration 查看設備當前配置信息
    [Huawei]display saved-configuration 擦除存儲設備中的配置文件
    <Huawei>compare configuration 比較當前配置信息與存儲設備中的保存信息是否一致



  • 關閉華爲的信息提示中心
    <Huawei>undo terminal monitor
    或者
    [Huawei]undo info-center enable


  • 永不超時
    [Huawei]user-interface console 0
    [Huawei-ui-console0]idle-timeout 0 0

  • 配置雙工即速率命令
    [Huawei]interface Ethernet 0/0/1進入接口0/0/1
    [Huawei-Ethernet0/0/1]undo negotiation auto關閉自動協商
    [Huawei-Ethernet0/0/1]speed 100速率調至100
    [Huawei-Ethernet0/0/1]duplex full調至雙工模式(半雙工爲half)



  • 保存配置
    <Huawei>save

  • 設置遠程登錄密碼及命令等級
    [Huawei]user-interface vty 0 4表示可同時打開0-4共5個會話進入交換機去配置命令
    [Huawei-ui-vty0-4]authentication-mode password
    [Huawei-ui-vty0-4]set authentication password simple 222設置密碼222
    [Huawei-ui-vty0-4]user privilege level 3調至命令等級至3級管理級
    [Huawei-ui-vty0-4]display this 保存設置




  • 設置三大接口模式
    [Huawei-Ethernet0/0/1]port link-type access進入access模式
    [Huawei-Ethernet0/0/1]port link-type trunk進入trunk模式
    [Huawei-Ethernet0/0/1]port link-type hybrid進入hybrid模式


  • 查看MAC地址表
    [Huawei]display mac-address

  • 查看放行vlan表
    [Huawei]display port-vlan

  • 查看路由表
    [Huawei]display ip routing-table

總結

這些都是些比較常用的命令。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章