eNSP模擬網路環境配置
一、eNSP視訊及軟體下載
視訊連線:https://space.bilibili.com/518342088/video
eNSP軟體包安裝下載:連結:https://pan.baidu.com/s/1spD1AH3-JPKmHz-wCcmVjw 提取碼:32nl
二、eNSP介面及圖示介紹
https://wenku.baidu.com/view/662fbd4bcf2f0066f5335a8102d276a200296091.html
三、SecureCRT連線交換機(實際環境)
https://jingyan.baidu.com/article/00a07f38a5f35482d128dc6e.html
四、交換機路由器認識
https://www.cnblogs.com/wangyong-blog/p/13646151.html
五、命令彙集
system-view 進入系統檢視
interface Ethernet 0/0/0 進入百兆介面
display current-configuration 檢視全域性配置
display this 顯示介面下配置(必須進入介面)
display mac-address 檢視交換機mac地址表
display ip routing-table 命令用來顯示公網IPv4路由表的資訊
user-interface vty 0 4 進入虛擬終端介面
authentication-mode password password 認證方式
set authentication password simple 123456 設定密碼
user privilege level 3 定義使用者級別
protocol inbound telnet 用telnet進來(用於遠端管理)
display interface brief 檢視介面狀態和配置的簡要資訊
display cpu-usage 檢視cpu使用情況 80%內是正常
display memory-usage 檢視記憶體佔用率
display transceiver interface gigabitethernet 0/0/1 verbose 檢視光模組資訊
Clear configuration this清除某個埠的配置
vlan batch 10 建立vlan
port GigabitEthernet 1/0/2 to GigabitEthernet 1/0/8 將介面2到8劃入
Display port vlan 顯示當前各埠的VLAN情況
undo vlan 2 可以刪除vlan2的配置資訊
undo vlan all 可以刪除所有的vlan資訊
aaa 進入AAA檢視
local-user admin password cipher(密文) xxx //設定aaa登入的使用者名稱和密碼
local-user admin service-type telnet 設定admin使用者遠端登入時的協議
local-user admin privilege leverl 3 使用者等級
user-interface console 0 進入第0個console口的使用者介面
authentication-mode passwd 配置從console口登入交換機的認證模式為密碼認證
set authentication password cipher xxx 配置從console口登入交換機的密碼
authentication_mode aaa 配置從console登入的認證模式為AAA認證
interface meth 0/0/1 進入第一個管理網口
duplex full 設定全雙工
port link-type access //設定第1個網口位access模式
port default vlan 10 //設定此網口的VLAN號為10
interface gigabitethnet 0/0/2 //進入第2個業務網口
port link-type trunk //設定第二個網口位trunk模式
port trunk allow-pass vlan 10 20 30 //設定此埠可以通過的
Port link-type hybrid //設定此埠為hybrid模式,每個埠預設就是hybrid模式
Port hybrid pvid vlan 10 //設定pvid為10
Port hybrid tagged vlan 20 30 40 //設定tagged列表為20,30,40
Port hybrid untagged vlan 50 60 //設定untagged列表為50,60
Display port vlan //顯示當前各埠的VLAN情況
Clear configuration this 清除某個埠的配置
#####批量配置交換機埠
vlan batch 10 20 port-group 1 group-member gigabitethernet 0/0/1 to gigabitethernet 0/0/10 port link-type access port default vlan 10
######恢復出廠設定
在使用者檢視下(按Ctrl+z組合鍵回到使用者檢視)輸入如下命令操作
<huawei>reset saved-configuration
Y
Reboot
N
Y