news 2026/6/25 14:02:28

hcip二层综合实验

作者头像

张小明

前端开发工程师

1.2k 24
文章封面图
hcip二层综合实验

1、内网IP地址使用172.16.0.0/16分配
2、sW1和sw2之间互为备份
3、VRRP/STP/VLAN/Eth-trunk均使用
4、所有pc均通过oHcP获取IP地址
5、ISP只能配置IP地址
6、所有电脑可以正常访问IsP路由器环回

注:以下并非ensp内容,原实验配置较为混乱,补全错误,由AI做整理。

SW1

system-view sysname sw1 vlan batch 2 3 10 20 interface Eth-Trunk 0 trunkport GigabitEthernet 0/0/1 to 0/0/2 port link-type trunk port trunk allow-pass vlan 2 3 10 20 quit port-group group-member GigabitEthernet 0/0/3 to GigabitEthernet 0/0/4 port link-type trunk port trunk allow-pass vlan 2 3 quit interface GigabitEthernet 0/0/5 port link-type access port default vlan 10 quit stp enable stp mode mstp stp region-configuration region-name aa instance 1 vlan 2 instance 2 vlan 3 active region-configuration quit stp instance 1 root primary interface Vlanif 2 ip address 172.16.0.1 255.255.255.192 vrrp vrid 1 virtual-ip 172.16.0.62 vrrp vrid 1 priority 120 vrrp vrid 1 track interface GigabitEthernet 0/0/5 reduced 30 quit interface Vlanif 3 ip address 172.16.0.65 255.255.255.192 vrrp vrid 2 virtual-ip 172.16.0.126 quit dhcp enable ip pool aa network 172.16.0.0 mask 255.255.255.192 gateway-list 172.16.0.62 dns-list 8.8.8.8 quit ip pool bb network 172.16.0.64 mask 255.255.255.192 gateway-list 172.16.0.126 dns-list 8.8.8.8 quit interface Vlanif 2 dhcp select global quit interface Vlanif 3 dhcp select global quit interface Vlanif 10 ip address 172.16.0.129 255.255.255.192 quit ip route-static 0.0.0.0 0.0.0.0 172.16.0.130 return

SW2

system-view sysname sw2 vlan batch 2 3 10 20 interface Eth-Trunk 0 trunkport GigabitEthernet 0/0/1 to 0/0/2 port link-type trunk port trunk allow-pass vlan 2 3 10 20 quit port-group group-member GigabitEthernet 0/0/3 to GigabitEthernet 0/0/4 port link-type trunk port trunk allow-pass vlan 2 3 quit interface GigabitEthernet 0/0/5 port link-type access port default vlan 20 quit stp enable stp mode mstp stp region-configuration region-name aa instance 1 vlan 2 instance 2 vlan 3 active region-configuration quit stp instance 1 root secondary stp instance 2 root primary interface Vlanif 2 ip address 172.16.0.2 255.255.255.192 vrrp vrid 1 virtual-ip 172.16.0.62 quit interface Vlanif 3 ip address 172.16.0.66 255.255.255.192 vrrp vrid 2 virtual-ip 172.16.0.126 vrrp vrid 2 priority 120 vrrp vrid 2 track interface GigabitEthernet 0/0/5 reduced 30 quit dhcp enable ip pool aa network 172.16.0.0 mask 255.255.255.192 gateway-list 172.16.0.62 dns-list 8.8.8.8 quit ip pool bb network 172.16.0.64 mask 255.255.255.192 gateway-list 172.16.0.126 dns-list 8.8.8.8 quit interface Vlanif 2 dhcp select global quit interface Vlanif 3 dhcp select global quit interface Vlanif 20 ip address 172.16.0.193 255.255.255.192 quit ip route-static 0.0.0.0 0.0.0.0 172.16.0.194 return

SW3

system-view sysname sw3 vlan batch 2 3 interface GigabitEthernet 0/0/3 port link-type access port default vlan 2 quit interface GigabitEthernet 0/0/4 port link-type access port default vlan 3 quit port-group group-member GigabitEthernet 0/0/1 to GigabitEthernet 0/0/2 port link-type trunk port trunk allow-pass vlan 2 3 quit stp enable stp mode mstp stp region-configuration region-name aa instance 1 vlan 2 instance 2 vlan 3 active region-configuration quit port-group group-member GigabitEthernet 0/0/3 to GigabitEthernet 0/0/4 stp edged-port enable quit stp bpdu-protection return

SW4

system-view sysname sw4 vlan batch 2 3 interface GigabitEthernet 0/0/3 port link-type access port default vlan 2 quit interface GigabitEthernet 0/0/4 port link-type access port default vlan 3 quit port-group group-member GigabitEthernet 0/0/1 to GigabitEthernet 0/0/2 port link-type trunk port trunk allow-pass vlan 2 3 quit stp enable stp mode mstp stp region-configuration region-name aa instance 1 vlan 2 instance 2 vlan 3 active region-configuration quit port-group group-member GigabitEthernet 0/0/3 to GigabitEthernet 0/0/4 stp edged-port enable quit stp bpdu-protection return

R1

system-view sysname r1 interface GigabitEthernet 0/0/1 ip address 172.16.0.130 255.255.255.192 quit interface GigabitEthernet 0/0/0 ip address 172.16.0.194 255.255.255.192 quit interface GigabitEthernet 0/0/2 ip address 12.0.0.1 255.255.255.0 quit ip route-static 172.16.0.0 255.255.255.192 172.16.0.129 ip route-static 172.16.0.0 255.255.255.192 172.16.0.193 ip route-static 172.16.0.64 255.255.255.192 172.16.0.193 ip route-static 172.16.0.64 255.255.255.192 172.16.0.129 ip route-static 0.0.0.0 0.0.0.0 12.0.0.2 acl 2000 rule permit source 172.16.0.0 0.0.255.255 quit interface GigabitEthernet 0/0/2 nat outbound 2000 quit return

ISP

测试

版权声明: 本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若内容造成侵权/违法违规/事实不符,请联系邮箱:809451989@qq.com进行投诉反馈,一经查实,立即删除!
网站建设 2026/6/25 14:01:51

擦肩的风,都是幸运的形状

我们总在寻找幸运的定义,却忽略了日常里那些不经意的遇见。它们没有刻意的铺垫,也没有隆重的仪式,就像风掠过衣角,云飘过天际,自然又寻常,却悄悄在生命里留下了温度。遇见本身就是一种馈赠。它打破了原本的…

作者头像 李华
网站建设 2026/6/25 14:00:16

异化与伪饰:波普尔病毒的形而上学批判与大模型时代的认知危机

异化与伪饰:波普尔病毒的形而上学批判与大模型时代的认知危机 摘要 本文基于对卡尔波普尔“可证伪性”哲学在现代知识体制及人工智能大模型中异化现象的深刻反思,系统提出并界定了“波普尔病毒”这一核心概念。研究指出,当波普尔用于防范独…

作者头像 李华
网站建设 2026/6/25 13:51:07

市面上哪款降重工具,既能降重复率,又能消除论文的 AI 写作特征?

2026年的毕业季,论文审核正式进入了“双重红线时代”——查重率要达标,AIGC疑似率更要达标。知网、维普等主流检测系统全面升级AIGC检测算法,不仅查文字相似度,更查句式逻辑、写作指纹和人机混合痕迹。很多同学发现,传…

作者头像 李华
网站建设 2026/6/25 13:46:29

MDP建模与RL落地:AI决策系统的七步实战方法论

1. 这不是理论考试,是帮你把AI决策模型真正用起来的实战笔记 你手头有个业务场景:库存要动态调拨、客服工单要智能分派、广告出价得实时响应市场变化——这些都不是“选A还是选B”的静态判断,而是 在不确定环境中持续做一连串相互影响的决策…

作者头像 李华
网站建设 2026/6/25 13:46:17

梅州市易损伤零件柔性上料编带机

关于【东莞微久智造科技有限公司】&【柔性上料编带机行业】常见疑问汇总解答前言随着制造业自动化水平的不断提高,柔性上料编带机在处理易损伤零件时展现出显著优势。本文旨在针对用户在使用过程中遇到的一些高频问题进行汇总,并提供统一客观的解答。…

作者头像 李华