当前位置:网站首页>Huawei simulator ENSP common commands
Huawei simulator ENSP common commands
2022-07-04 21:13:00 【Python Pegasus】
Catalog
Configure the current router interface IP Address and subnet mask
Specify that the interface has DHCP function
Appoint DNS Server's IP Address
Show all ip The routing table for
According to specified ip Routing table
Modify the interface to access Interface :
Modify the interface to trunk Interface :
Divide the interface into specified vlan in :
Huawei ensp Simulator's TAB The completion function is very powerful , Most commands only need to input the first twoorthree letters , Press TAB You can complete the command
Router common commands
Enter the task view
system-view
TAB completion :sys
Abbreviation :sy
Name the router
sysname
TAB completion :sy
Enter the specified interface
interface The interface name
TAB completion :int
Abbreviation :int The interface name
Configure the current router interface IP Address and subnet mask
ip address IP Address Subnet mask
TAB completion :ip ad
Abbreviation :ip add IP Address Subnet mask
Exit interface or system view
quit
TAB completion :qu
Abbreviation :q
Enable DHCP
Be careful : In the system view [Huawei] Input in .
dhcp enable
TAB completion :dhcp en
Specify that the interface has DHCP function
Be careful : The premise is that , To enable the DHCP, And went into wanting to have DHCP Functional interface .
dhcp select interface
TAB completion :dhcp sel
Appoint DNS Server's IP Address
Be careful : The prerequisite is to configure DNS The server , And into DNS The router port to which the server is connected
dhcp server dns-list DNS The server ip
TAB completion :dhcp server dns
Show all ip The routing table for
The function of gateway It is to realize the communication between different gateways .
Forwarding principle of router It is through the routing table to determine which interface to start from for each target .
display ip routing-table
TAB completion :display ip rou
Abbreviation :dis ip rou TAB completion
According to specified ip Routing table
display ip routing-table Want to view ip Address
Add static route :
When there are multiple routers , If you need to access the device connected by the next router, you need to manually add a static route , That is, the next hop routing interface ip, To achieve ping Communication requires both routers to configure mutual static routes .
ip routing-table Target to go IP Address Subnet mask The next hop of the routing interface IP Address
Abbreviation :ip rou Purpose ip Mask The next hop interface of this interface
Switch common commands :
To use the switch, you also need to enter the system view , The use of system-view command .
establish vlan:
vlan vlan name
example : Create a vlan10
vlan 10
View all vlan:
You can see what has been created vlan, You can also see which interface is divided into vlan In the
display vlan
The following code uses the premise , Enter the switch interface that needs operation (int Order to enter ): Divide the interface into different vlan
Modify the interface to access Interface :
access The interface is used to connect the terminal 、 The computer 、 The printer
port link-type access
Modify the interface to trunk Interface :
trunk The interface is used to connect the switch
port link-type trunk
Divide the interface into specified vlan in :
example : Divide the interface into created vlan 10 in .
port default vlan 10
Other common commands :
ipconfig # View network configuration information
边栏推荐
猜你喜欢
What if the win11 shared file cannot be opened? The solution of win11 shared file cannot be opened
See how Tencent does interface automation testing
Redis:Redis配置文件相关配置、Redis的持久化
Flet tutorial 06 basic introduction to textbutton (tutorial includes source code)
【1200. 最小绝对差】
What if the computer page cannot be full screen? The solution of win11 page cannot be full screen
How does wincc7.5 SP1 find variables and their positions through cross indexing?
Pytorch---使用Pytorch实现LinkNet进行语义分割
Idea configuration standard notes
HWiNFO硬件检测工具v7.26绿色版
随机推荐
hash 表的概念及应用
华为ensp模拟器实现通信安全(交换机)
admas零件名重复
Android原生数据库的基本使用和升级
RFID仓库管理系统解决方案有哪些功能模块
Go language notes (4) go common management commands
Vue cleans up the keepalive cache scheme in a timely manner
JS卡牌样式倒计时天数
Detailed explanation of multi-mode input event distribution mechanism
See how Tencent does interface automation testing
vim异步问题
多模输入事件分发机制详解
NetWare r7000 Merlin system virtual memory creation failed, prompting that the USB disk reading and writing speed does not meet the requirements. Solution, is it necessary to create virtual memory??
Automatic insertion of captions in word
[server data recovery] a case of RAID5 data recovery stored in a brand of server
LeetCode 7. 整数反转
[solution] paddlepaddle 2 X call static graph mode
扩展你的KUBECTL功能
From automation to digital twins, what can Tupo do?
字节测试工程师十年经验直击UI 自动化测试痛点