HUAWEI 华为 S、CE系列交换机命令操作
重点提示
CE系列交换机一定要提交配置 断电前 保存配置
display configuration candidate //CE系列查看未提交配置
commit //CE系列提交配置
初始配置
- 进入特权模式
sys - 创建一个vlan 2020(如果存在就是进入 vlan 2020)
vlan 2020 - 创建一个虚拟vlan端口 2020
interface vlanif 2020 - 给虚拟vlan 2020端口绑定 IP
interface vlanif 2020
ip address 221.10.111.111 255.255.255.128 - 配置交换机流量转发网关
ip route-static 0.0.0.0 0.0.0.0 221.10.111.111 - 进入端口并配置端口为 trunk 并允许通过所有vlan
interface GigabitEthernet 0/0/24
port link-type trunk
port trunk allow-pass vlan all - 进入 vlan 2020 把端口1-23端口加入到 vlan 2020
vlan 2020
port GigabitEthernet 0/0/1 to 0/0/23 - 开启 WEB 管理
http server enable - 设置 console 口密码
user-interface console 0
set authentication password cipher Aa9929388(Aa9929388 为密码) - 配置 WEB 管理密码,进入 authentication authorization accounting (验证 授权 用户),并设置为最高权限 Lv15
aaa
local-user admin privilege level 15
local-user admin password irreversible-cipher Aa9929388 //修改密码
常用命令合集
- 根据MAC地址查询网口
dis mac-add | in xxxx(MAC最后2组4位数)
- 根据MAC查询网口(New)
dis mac-addree MAC地址
MAC格式 xxxx-xxxx-xxxx
- 查看接口 vlan 上电 状态
display vlan
- 查看接口01相关信息
display interface GigabitEthernet 0/0/1
- 根据IP查询MAC
disp arp | in 192.168.1.55
- 查看端口错包以及流量使用负载情况
dis int bri | inc 1/0/1|1/0/2
- 新建用户
aaa local-user yonghuming password cipher 123456 local-user yonghuming privilege level 15 //设置账户等级;CE系列最高是3 (local-user xiaoke level 3) CE系列命令 local-user yonghuming service-type telnet terminal ssh //开启登陆相关协议 display current-configuration | include user //查看当前账户配置信息
- 验证配置
display configuration candidate //CE系列查看未提交配置 commit //CE系列提交配置
- 查看当前路由表
display ip routing-table //IPv4路由表 display ipv6 routing-table//IPv6路由表
- 查看接口描述信息
display interface description
- 查看接口运行状态和相关信息
display interface Ethernet brief //带接口描述信息 display interface brief //带错包
- 查看接口与IP相关的简要信息
display ip interface brief
- 查看接口的统计信息
display interface
- 查看接口的流量统计数
display counters
- 查看错误报文的统计信息
display counters error
- 查看接口的入方向或出方向流量速率
display counters rate
- 查看接口和IP配置的相关信息
display ip interface
- 查看接口光模块信息/光衰收发光功率
dis interface 100GE1/0/0 transceiver verbose
版权声明:
作者:三炮不吃鱼
链接:https://www.qkeke.com/archives/991.html
来源:小可博客
文章版权归作者所有,未经允许请勿转载。
THE END
0
二维码
海报
HUAWEI 华为 S、CE系列交换机命令操作
重点提示
CE系列交换机一定要提交配置 断电前 保存配置
display configuration candidate //CE系列查看未提交配置
commit //CE系列提交配置
初始配置
进入特……

共有 0 条评论