华为认证
快来分享你的内容吧~
- 2024-11-04·网络工程师
- 2024-11-01·网络工程师
- 2024-11-01·网络工程师
- 2024-11-01·网络工程师
- 2024-10-31·网络工程师
- 2024-10-31·网络工程师
- 2024-10-30·网络工程师
HCIP-VRRP+MSTP典型组网案例
<img src="https://pic.code-nav.cn/post_picture/1810917631972016129/xAiqIoXVD7GlJ9I4.webp" alt="image.png" width="100%" /> 1、IP地址配置 如图,四台PC配置IP地址192.168.x0.1,然后网关为192.168.x0.254 2、接下来对交换机SW3配置,SW3作为接入层交换机,命名为JR1 JR1: sy sysname JR1 vlan batch 10 20 30 40 //批量创建vlan int g0/0/1 //此处为对接入层-PC的接口进行VLAN 放行配置 port link-type access port default vlan 10 ...... int g0/0/4 port link-type access port default vlan 40 //接下来对接入层-汇聚层接口进行配置 int g0/0/10 port link-type trunk port trunk allowpass vlan 10 20 30 40 int g0/0/20 port link-type trunk port trunk allowpass vlan 10 20 30 40 qu stp mode mstp stp region-configuration region-name GBLXZDXZ instance 10 vlan 10 20 instacne 20 vlan 30 40 activie region-configuration qu stp enable 3、接下来对汇聚层交换机进行配置,汇聚层左边交换机为HJ1,右边为HJ2 HJ1: sy sy HJ1 vlan batch 10 20 30 40 int g0/0/10 port link-type trunk port trunk allow-pass vlan 10 20 30 40 //vlan 配置完成 //链路聚合配置 LACP int Eth-Trunk 1 //创建并进入链路聚合接口1 trunkpork g0/0/23 //将g0/0/23接口加入聚合组 trunkport g0/0/24 //将g0/0/24接口加入聚合组 port link-type trunk //对聚合口设置为trunk模式 port trunk allow-pass vlan 10 20 30 40 //放行vlan 10 20 30 40 //配置VRRP: int vlanif 10 //进入vlan接口 ip addr 192.168.10.251 24 //配置IP地址 vrrp vrid 10 virtual-ip 192.168.10.254 //配置虚拟网关 vrrp vrid 10 priority 120 //修改优先级为120 ...... int vlanif 40 //进入vlan接口 ip addr 192.168.40.251 24 //配置IP地址 vrrp vrid 40 virtual-ip 192.168.40.254 //配置虚拟网关 //配置MSTP,将vlan 10 20 映射到Instance10 vlan 30 40映射到Instance20 将Instance10 配置为HJ1的主根桥,HJ2的次根桥 stp mode mstp stp region-configuration region-name GBLXZDXZ instacne 10 vlan 10 20 instacne 20 vlan 30 40 actice region-configuration qu stp instance 10 root primary stp instance 20 root secondary stp enable HJ2: sy sy HJ2 vlan batch 10 20 30 40 int g0/0/20 port link-type trunk port trunk allow-pass vlan 10 20 30 40 //链路聚合配置 LACP int Eth-Trunk 1 //创建并进入链路聚合接口1 trunkpork g0/0/23 //将g0/0/23接口加入聚合组 trunkport g0/0/24 //将g0/0/24接口加入聚合组 port link-type trunk //对聚合口设置为trunk模式 port trunk allow-pass vlan 10 20 30 40 //放行vlan 10 20 30 40 //配置VRRP: int vlanif 10 //进入vlan接口 ip addr 192.168.10.252 24 //配置IP地址 vrrp vrid 10 virtual-ip 192.168.10.254 //配置虚拟网关 ...... int vlanif 40 //进入vlan接口 ip addr 192.168.40.252 24 //配置IP地址 vrrp vrid 40 virtual-ip 192.168.40.254 //配置虚拟网关 vrrp vrid 40 priority 120 //修改优先级为120 //配置MSTP,将vlan 10 20 映射到Instance10 vlan 30 40映射到Instance20 //将Instance10 配置为HJ1的主根桥,HJ2的次根桥 //将Instance20 配置为HJ2的主根桥,HJ1的此根桥 stp mode mstp stp region-configuration region-name GBLXZDXZ instacne 10 vlan 10 20 instacne 20 vlan 30 40 actice region-configuration qu stp instance 20 root primary stp instance 10 root secondary stp enable 以上配置全部完成 接下来检查 <img src="https://pic.code-nav.cn/post_picture/1810917631972016129/cq4IxB9xOpUmvAXA.png" alt="image.png" width="572px" /> \ HJ1: <img src="https://pic.code-nav.cn/post_picture/1810917631972016129/DhO2oILHaNXwBrl7.png" alt="image.png" width="632px" /> HJ2: <img src="https://pic.code-nav.cn/post_picture/1810917631972016129/VrrOilIKnMLjFG62.png" alt="image.png" width="581px" /> 接下来进行连通性检查: PC1 ping 网关: <img src="https://pic.code-nav.cn/post_picture/1810917631972016129/JiJMiEYEmjXMcJ5K.png" alt="image.png" width="611px" /> \ PC1 ping PC2: <img src="https://pic.code-nav.cn/post_picture/1810917631972016129/TrauBGkMFnAHBHgd.png" alt="image.png" width="653px" />
HCIP-基础VRRP
实验拓扑图如下: <img src="https://pic.code-nav.cn/post_picture/1810917631972016129/aECWgx8d9CWqrIAb.webp" alt="image.png" width="542px" /> PC1 IP:192.168.1.1/24 网关为虚拟网关 192.168.1.254 在R1上配置: int g0/0/0 ip addr 192.168.1.253 24 vrrp vrid 1 virtual-ip 192.168.1.254 //此处为虚拟IP地址无需配置子网掩码 vrrp vrid priority 120 在R2上配置: int g0/0/0 ip addr 192.168.1.252 24 vrrp vrid 1 virthal-ip 192.168.1.254 以上 配置完成 R1第四条命令是设置优先级,Vrrp的优先级默认为100,越大越优先 设置完成之后查看: R1 <img src="https://pic.code-nav.cn/post_picture/1810917631972016129/5QxXchnCln9N20Eh.webp" alt="image.png" width="571px" /> R2 <img src="https://pic.code-nav.cn/post_picture/1810917631972016129/26wGZmDvIhjqIJ9j.webp" alt="image.png" width="661px" /> 实验结束
HCIP实验-三层交换机配置
实验拓扑图如下: <img src="https://pic.code-nav.cn/post_picture/1810917631972016129/0L9nGdU8zApydMCl.webp" alt="image.png" width="100%" /> 如图,先配置好IP地址,随后在SW1上进行配置 SW1: vlan batch 10 20 int e0/0/1 port link-type access port default vlan10 int e0/0/2 port link-type access port default vlan 20 int e0/0/3 port link-type trunk port trunk allow-pass vlan 10 20 在SW2: vlan batch 10 20 99 int g0/0/1 port link-type trunk port trunk alllo-pass vlan 10 20 int g0/0/2 port link-type access port default vlan 99 qu int vlanif 10 ip addr 192.168.10.254 24 int vlanif 20 ip addr 192.168.20.254 24 int vlanif 99 ip addr 192.168.99.1 24 qu ospf 1 router-id 2.2.2.2 area 0 net 0.0.0.0 0.0.0.0 qu 在R1上配置: ospf 1 router-id 1.1.1.1 area 0 net 0.0.0.0 0.0.0.0 到此所有配置结束,接下来是连通性验证 在SW1上查看 <img src="https://pic.code-nav.cn/post_picture/1810917631972016129/wgqnwliDoWTbomok.png" alt="image.png" width="628px" /> \ SW2: <img src="https://pic.code-nav.cn/post_picture/1810917631972016129/ZlezPPOuvLn8LO9O.png" alt="image.png" width="635px" /> <img src="https://pic.code-nav.cn/post_picture/1810917631972016129/c1umE84l2RNY4yNC.webp" alt="image.png" width="680px" /> \ R1: <img src="https://pic.code-nav.cn/post_picture/1810917631972016129/6uwIYHxMFxtR8Ccx.webp" alt="image.png" width="663px" /> 连通性验证: <img src="https://pic.code-nav.cn/post_picture/1810917631972016129/eav7lqpTihfSydyr.png" alt="image.png" width="571px" /> \ <img src="https://pic.code-nav.cn/post_picture/1810917631972016129/cOgp0eJ657UuX2EX.png" alt="image.png" width="556px" /> \ <img src="https://pic.code-nav.cn/post_picture/1810917631972016129/EgHF5KSZMeuIjBKM.png" alt="image.png" width="612px" /> ----------------------------------------------------------- 至此,本实验结束
HCIP实验-路由器子接口配置
实验拓扑图如下 <img src="https://pic.code-nav.cn/post_picture/1810917631972016129/xZI83agxVw2eMD05.webp" alt="image.png" width="718px" /> 先对各个设备配置IP地址:IP地址如图 随后在交换机创建vlan vlan batch 10 20 int g0/0/2 port link-type access port default vlan 10 int g0/0/3 port link-type access port default vlan 20 int g0/0/1 port link-type trunk port trunk allow-pass vlan 10 20 交换机配置完成 接下来对路由器进行配置 int g0/0/0.10 //进入子接口 dot1q termination vid 10 //设置放行vlan 这里理解为解掉vlan 10的标签 ip address 192.168.10.254 24 //设置IP地址,即网关 arp broadcast enable //开启arp转发功能,ensp模拟器默认是关闭的,必须手动打开,否则PC互相ping不通 此处重点 int g0/0/0.20 dot1q termination vid 20 ip addr192.168.20.254 24 arp broadcast enable 以上配置完成,进行验证 <img src="https://pic.code-nav.cn/post_picture/1810917631972016129/xCvgoqsIrzFeH9c6.webp" alt="image.png" width="640px" /> \ <img src="https://pic.code-nav.cn/post_picture/1810917631972016129/pZvCmVZQBJ4DAOik.png" alt="image.png" width="623px" /> <img src="https://pic.code-nav.cn/post_picture/1810917631972016129/G0KysVRG9f643LDd.webp" alt="image.png" width="616px" /> \ 现在PC1与PC2通信: <img src="https://pic.code-nav.cn/post_picture/1810917631972016129/lDHNbrTQ0CejEvQh.png" alt="image.png" width="677px" /> --------------------------------------------------------------------------- 本次实验完成
HCIP实验-Access与Trunk类型接口的基础配置
实验拓扑图如下: <img src="https://pic.code-nav.cn/post_picture/1810917631972016129/0tuljr3QYuFLYzSi.webp" alt="image.png" width="100%" /> IP地址如上图,PC的网关留空 交换机命令配置: SW1: vlan batch 10 20 int g0/0/1 port link-type access port default vlan 10 int g0/0/2 port link-type access port default vlan 20 int g0/0/3 port link-type trunk port trunk allow-pass vlan 10 20 在SW1上创建VLAN10 VLAN20 然后将端口与VLAN绑定 随后在G0/0/3上允许VLAN10和20通行 SW2: vlan batch 10 20 int g0/0/2 port link-type access port default vlan 10 int g0/0/3 port link-type access port default vlan 20 int g0/0/1 port link-type trunk port trunk allow-pass vlan 10 20 SW2同理创建并配置 在配置完成之后,在SW1上查看vlan信息: <img src="https://pic.code-nav.cn/post_picture/1810917631972016129/ebVlRdyErXWhl5hH.webp" alt="image.png" width="624px" /> 在SW2查看: <img src="https://pic.code-nav.cn/post_picture/1810917631972016129/qadynGfJiEdSlXzi.webp" alt="image.png" width="644px" /> 查看端口绑定的VLAN <img src="https://pic.code-nav.cn/post_picture/1810917631972016129/E8NUXoqHFhbtoH0l.png" alt="image.png" width="583px" /> 至此本实验结束
HCIP实验-OSPF多区域配置
实验拓扑如下 <img src="https://pic.code-nav.cn/post_picture/1810917631972016129/8wIGZyLas5PxaL80.webp" alt="image.png" width="100%" /> IP地址: PC1:172.16.1.2/24 PC2:172.16.2.2/24\ PC3:172.16.9.2/24\ PC4:172.16.10.2/24\ 不用对交换机做任何配置,启动即可\ 路由器与PC相连的接口配上网关地址\ R1 G0/0/1:172.16.1.254/24\ R1 G0/0/2:172.16.2.254/24\ R2 G0/0/1:172.16.9.254/24\ R3 G0/0/2:172.16.10.254/24\ 边界路由器接口即R1和R2的 G0/0/0口配置IP\ R1:172.16.0.1/30 R2:172.16.0.5/30 注意:此处IP地址的掩码为30位,Core的G0/0/0和R1的G0/0/0是一个网段,Core的G0/0/1和R2的G0/0/0是一个网段 如果分辨不明白,此处IP地址请换成别的IP段/24位掩码即可明白 搭建完成之后开始配置OSPF Core路由器: ospf 1 router-id 3.3.3.3 area 0 network 0.0.0.0 0.0.0.0 R1: ospf 1 router-id 1.1.1.1 area 1 network 172.16.1.0 0.0.0.255 network 172.16.2.0 0.0.0.255 qu area 0 network 172.16.0.0 0.0.0.3 R2: ospf 1 router-id 2.2.2.2 area 2 network 172.16.9.0 0.0.0.255 network 172.16.10.0 0.0.0.255 qu area 0 network 172.16.0.0 0.0.0.3 这里配置完R1和R2的Area1和Area2之后还需要配置Area0区域,所有区域都与Area0 区域相接 配置完成之后查看邻居表: Core: <img src="https://pic.code-nav.cn/post_picture/1810917631972016129/Z0zNdRRyWGhJ9cN4.webp" alt="image.png" width="641px" /> R1: <img src="https://pic.code-nav.cn/post_picture/1810917631972016129/FMKIiH3flDOhGmWv.png" alt="image.png" width="556px" /> R2: <img src="https://pic.code-nav.cn/post_picture/1810917631972016129/8kzhQDDOFiQCt5HH.png" alt="image.png" width="591px" /> 路由表: Core:  R1: <img src="https://pic.code-nav.cn/post_picture/1810917631972016129/XikEVlGsRns2nfID.webp" alt="image.png" width="659px" /> R2: <img src="https://pic.code-nav.cn/post_picture/1810917631972016129/2rynxKgvlpLRUd7O.webp" alt="image.png" width="659px" /> 对连通性进行验证: PC1 ping PC2 & PC3 <img src="https://pic.code-nav.cn/post_picture/1810917631972016129/a9xNg1hTgUvn7F5W.webp" alt="image.png" width="640px" />
HCIP实验01-OSPF单区域配置
实验拓扑图如下: <img src="https://pic.code-nav.cn/post_picture/1810917631972016129/32BsfsEuqdHqsmil.webp" alt="image.png" width="100%" /> IP地址: PC1:172.16.1.2/24\ PC2:172.16.2.2/24\ AR1 G0/0/0:172.16.2.254 24\ AR1 G0/0/1:172.16.1.254 24\ AR1 G0/0/2:172.16.12.1 24\ AR2 G0/0/0:172.16.12.2 24\ AR2 Loopback 0:172.16.255.2 第一步:配置各个设备、接口的IP地址,不会配置请私信或者自行百度。\ 第二步:在AR1、AR2上启动OSPF服务\ 1.AR1:命令 ospf 1 router-id 1.1.1.1 area 0 network 0.0.0.0 0.0.0.0 2.AR2:命令 ospf 1 router-id 2.2.2.2 area 0 network 0.0.0.0 0.0.0.0 到此配置已经完成,接下来进行验证,ping命令进行验证 <img src="https://pic.code-nav.cn/post_picture/1810917631972016129/whWo01PQx6qlJUFU.png" alt="image.png" width="520px" /> \ <img src="https://pic.code-nav.cn/post_picture/1810917631972016129/U7XRUKyHnrtQolFr.png" alt="image.png" width="533px" /> \ 查看邻居表 <img src="https://pic.code-nav.cn/post_picture/1810917631972016129/AJP1iaQC6GhM15XB.png" alt="image.png" width="603px" /> \ 查看OSPF路由表 <img src="https://pic.code-nav.cn/post_picture/1810917631972016129/zduqmKxbQKawpBJr.png" alt="image.png" width="632px" /> \ 以上结果 网络通信无故障
#鸿蒙# #华为认证# #华为# #hcia# 新鲜出炉的鸿蒙应用开发工程师考试笔记,还挺好,就是我今年寄了,555 链接:https://pan.baidu.com/s/1QEiCJ6nxMNTT_WEp9kG8OQ 提取码:9999 --来自百度网盘超级会员V2的分享
