数通——华为HCIA

APhttps://cloud.tencent.com/developer/article/2473313

ensp模拟器下载:https://blog.csdn.net/weixin_48711866/article/details/121538418?spm=1001.2101.3001.6661.1&utm_medium=distribute.pc_relevant_t0.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7EPaidSort-1-121538418-blog-150059932.235%5Ev43%5Epc_blog_bottom_relevance_base7&depth_1-utm_source=distribute.pc_relevant_t0.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7EPaidSort-1-121538418-blog-150059932.235%5Ev43%5Epc_blog_bottom_relevance_base7&utm_relevant_index=1

ensp安装:https://blog.csdn.net/IT99_/article/details/150059932

HCIA视频参考https://www.bilibili.com/video/BV1ZZLyzLEJW/?p=7&spm_id_from=333.1387.top_right_bar_window_history.content.click&vd_source=f2c475e2a8a69bec4076fc26819c3e8d

ensp解析:https://cloud.tencent.com/developer/article/2339901

ensp设备:ensp模拟器设备间的连线:copper以太网线

ensp命令行终端

1.更改终端命令行名称<huawei>为sw1:sys sw1

2.创建vlan :vlan vlan-id(1~4094);同时配多个vlan:vlan batch 10 20

3.在接口视图下,配置接口类型:port link-type access/trunk/hybrid,简写p l a/t

4.进入接口:int e0/0/1

5.查看VLAN标签:display vlan

6.查看接口类型:display port vlan

7.在接口视图下,查看接口信息:display this

8.在接口视图下,配置Access接口的缺省VLAN:port default vlan vlan-id(1~4094);简写p d v 10配置接口vlan 10

9.关闭生成树协议:stp disable

10.开启/使能STP:stp enable

11.查看MAC地址:display mac-address

12.stp模式为STP:stp mode stp

13.查询STP信息:display stp

14.查STP摘要信息:display stp brief

15.设置STP BID优先级设为0:stp priority 0

16.设备设为备份根网桥:stp root secondary

17.关闭信息中心:undo info-center enable

18.查询接口类型,放行的vlan:display port vlan

19.终端IP信息查询:ipconfig

20.查询g0/0/0口详细信息(包括MAC地址):display interface g0/0/0

21.查看接口配置信息:display this

22.删除接口:undo interface port

23.创建并进入子接口:int g0/0/0

24.接口视图,子接口可以处理相应VLAN的数据:AR1-GigabitEthernert0/0/1.10dotlq termination vid 10

25.使能子接口处理ARP广播报文:AR1-GigabitEthernert0/0/1.10arp broadcast enable

26.创建并进入VALNIF接口:int Vlanif 10

27.3层接口信息:display ip interface brief

手工静态配置链路聚合

28.创建并进入聚合组1:interface Eth-Trunk 1

29.聚合组视图添加成员:LSW1-Eth-Trunk1trunkport GigabitEthernet 0/0/1

30.查询聚合组信息:display eth-trunk

31.设置链路聚合模式为LACP模式:LSW1-Eth-Trunk2mode lacp-static

32.设置链路聚合成员数量范围:LSW1-Eth-Trunk2max bandwidth-affected-linknumber 7

33.设置最大活动链路数:LSW1-Eth-Trunk2max active-linknumber 3

34.设置LACP优先级:LSW1lacp priority 0

35.将接口添加到聚合组中:LSW3-Ethernet0/0/5:eth-trunk 1

静态NAT配置

36.接口视图下配置静态NAT:nat static global{global-address}inside{host-address}

global参数用于配置外部公有地址,inside参数用于配置内部私有地址。

37.系统视图下配置静态NAT:nat static global{global-address}inside{host-address}//配置静态NAT将内网主机的私有地址一对一映射到公有地址。

在接口下开启静态NAT:nat static enable 在接口下使能nat static功能。

AAA配置

38.进入设备的console 0口:user-interface console 0

39.在console口配置密码:authentication mode password

40.进入aaa:aaa

41.设置认证模式为aaa:authentication-mode aaa//设置密码、优先级、服务类型(终端)

42.重启设备:reboot fast

43.清除保存的设置:reset saved-configuration

DHCP配置

44.使能dhcp:dhcp enable

45.接口打开dhcp:dhcp select interface

相关推荐
特立独行的猫a8 小时前
Tauri 应用移植到 OpenHarmony/鸿蒙PC完整指南
华为·rust·harmonyos·tauri·移植·鸿蒙pc
互联网散修8 小时前
鸿蒙实战:文字放大镜精确跟随手指放大
华为·harmonyos
金启攻11 小时前
【鸿蒙应用开发实战·食光篇】第二篇:首页与菜系导航——圆形封面与美食榜单
华为·harmonyos
●VON13 小时前
AtomGit Flutter鸿蒙客户端:设置页面
flutter·华为·跨平台·harmonyos·鸿蒙
●VON14 小时前
AtomGit Flutter鸿蒙客户端:用户资料
flutter·华为·架构·跨平台·harmonyos·鸿蒙
风华圆舞14 小时前
Stage 模型下 Flutter 鸿蒙壳工程怎么理解
flutter·华为·harmonyos
祭曦念15 小时前
鸿蒙原生ArkTS布局之RowStart垂直对齐详解
华为·harmonyos
nashane15 小时前
HarmonyOS 6商城开发学习:抢票倒计时与系统日历提醒——票务类场景的完整落地思路
学习·华为·harmonyos
●VON15 小时前
AtomGit Flutter鸿蒙客户端:主题系统
javascript·flutter·华为·跨平台·harmonyos·鸿蒙
yuegu77716 小时前
HarmonyOS应用<节气通>开发第17篇:意见反馈页面
华为·harmonyos