没有合适的资源?快使用搜索试试~ 我知道了~
华为交换机常见命令.pdf
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 158 浏览量
2023-06-07
13:28:20
上传
评论
收藏 465KB PDF 举报
温馨提示
试读
11页
华为交换机常见命令.pdf
资源推荐
资源详情
资源评论
一、清空配置:<HUAWEI> reset saved-configuration(清楚下次启动时使
用的配置文件信息)然后重启设备,重启设备室提示保存信息,选择“NO”。
<HUAWEI> reset saved-configuration
Warning: The action will delete the
saved configuration in the device.The configuration will be erased to
reconfigure. Continue? [Y/N]:yWarning: Now clearing the configuration in
the device.
Info: Succeeded in clearing the configuration in the device.
<HUAWEI> reboot
Info: 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. Continue?
[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 口登录密码
# 以登录用户界面的认证方式为密码认证,密码为 Huawei@123 为例,配置如下。
<HUAWEI> system-view
[HUAWEI] user-interface console 0
[HUAWEI-ui-console0] authentication-mode password
[HUAWEI-ui-console0] set authentication password cipher Huawei@123
[HUAWEI-ui-console0] return
<HUAWEI> save
# 以登录用户界面的认证方式为 AAA 认证,用户名为 admin123,密码为 Huawei@123 为
例,配置如下。
<HUAWEI> system-view
[HUAWEI] user-interface console 0
[HUAWEI-ui-console0] authentication-mode aaa
[HUAWEI-ui-console0] quit
[HUAWEI] aaa
[HUAWEI-aaa] local-user admin123 password irreversible-cipher Huawei@123
[HUAWEI-aaa] local-user admin123 service-type terminal(本地防务终端用户)
[HUAWEI-aaa] return(返回)
<HUAWEI> save(保存)
三、查看某个接口学习到的 MAC 地址
<HUAWEI> display mac-address dynamic gigabitethernet1/0/1
MAC 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 10
MAC Address VLAN/VSI Learned-From Type
--------------------------------------------------------------------------
0000-0000-0003 10/- GE1/0/1 dynamic
0026-6e5c-feac 10/- GE1/0/2 dynamic
五、查看系统的 MAC 地址
<HUAWEI> display interface gigabitethernet1/0/1
GigabitEthernet1/0/1 current state : UP
Line protocol current state : UP
Description:
Switch Port, Link-type : access(configured),
IP Sending Frames' Format is PKTFMT_ETHNT_2, Hardware address is00e0f74b-
6d00
六、根据 IP 获取对应设备的 MAC 地址
<HUAWEI> display arp | include 192.168.150.20
配置端口安全
# 配置 GE1/0/1 接口的端口安全功能。
<HUAWEI> system-view
[HUAWEI] interface gigabitethernet 1/0/1
[HUAWEI-GigabitEthernet1/0/1] port-security enable
# 配置 GE1/0/1 接口的 MAC 地址学习限制数为 5,即最多可以学习到 5 个 MAC 地址表项。
<HUAWEI> system-view
[HUAWEI] interface gigabitethernet 1/0/1
[HUAWEI-GigabitEthernet1/0/1] port-security enable
[HUAWEI-GigabitEthernet1/0/1] port-security max-mac-num 5
配置永久端口组
# 配置接口 GE1/0/1 至 GE1/0/8 加入到永久端口组 portgroup1(使用 port-group 命令)
<HUAWEI> system-view
[HUAWEI] port-group portgroup1
[HUAWEI-port-group-portgroup1] group-member gigabitethernet 1/0/1 to
gigabitethernet 1/0/8
配置接口速率 自协商模式下,手动配置接口速率
# 配置以太网接口 GE1/0/1 在自协商模式下协商速率为 100Mbit/s。
<HUAWEI> system-view
[HUAWEI] interface gigabitethernet 1/0/1
[HUAWEI-GigabitEthernet1/0/1] negotiation auto
[HUAWEI-GigabitEthernet1/0/1] auto speed 100
配置双工模式 自协商模式下,手动配置双工模式
# 配置以太网电接口 GE1/0/1 在自协商模式下双工模式为全双工模式。
<HUAWEI> system-view
剩余10页未读,继续阅读
资源评论
hhappy0123456789
- 粉丝: 61
- 资源: 5万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- PxCook-像素大厨Mac版本安装包
- 基于mysql和python的学生选课系统【课程设计(实验报告+源码)】
- PxCook-像素大厨Windows版本安装包
- aspose-words-23.12-jdk16 有水印
- [大模型部署]在C# Winform中使用文心一言ERNIE-3.5 4K 聊天模型
- python毕业设计-基于Django+OpenCV的二维码生成与识别系统设计与实现.zip
- python毕业设计-基于Django+OpenCV的二维码生成与识别系统设计与实现+使用说明.zip
- 基于STM32单片机空气监测系统设计源码+详细文档+配套全部资料(毕业设计).zip
- rdf0412-kcu116-pcie-c-2019-1.zip(XILINX KCU116 源码)
- 基于C#语言的winform界面火车票订票系统(源码+实验报告)
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功