当前位置: 首页 > news >正文

HCIP---作业

1.vlan配置

所有的交换机:

vlan batch  2 3 100

2.接入层配置

SW1

sys
sysname SW1
vlan batch 2 3 100
description PC-Business-VLAN2
qu

vlan 3
description PC-Business-VLAN3
qu

vlan 100
description Management-VLAN
quit
interface Eth-Trunk 1
port link-type trunk
port trunk allow-pass vlan 2 3 100
mode lacp-static
qu
interface GigabitEthernet 0/0/1
eth-trunk 1
qu

interface GigabitEthernet 0/0/2
eth-trunk 1
quit

# 连接LSW3的Trunk端口
interface GigabitEthernet 0/0/1
description To-LSW3
port link-type trunk
port trunk allow-pass vlan 2 3 100
port trunk pvid vlan 2
undo negotiation auto
speed 1000
duplex full
undo shutdown
quit
interface GigabitEthernet 0/0/3
description To-AR1
port link-type access
port default vlan 100
qu

interface Vlanif 2
ip address 172.16.2.2 255.255.255.0  
vrrp vrid 1 virtual-ip 172.16.2.1    
stp instance 1 root primary  
stp instance 2 root secondary  

interface Eth-Trunk 1
port link-type trunk
port trunk allow-pass vlan 2 3 100  

sw3

interface GigabitEthernet0/0/1
stp edged-port enable  
stp bpdu-protection    

interface GigabitEthernet0/0/3
port trunk pvid vlan 2  

AR1

ip pool vlan2
gateway-list 172.16.2.1 
network 172.16.2.0 mask 255.255.255.0  
excluded-ip-address 172.16.2.1 172.16.2.10
dns-list 8.8.8.8

SW2

sys
sysname SW2

vlan batch 2 3 100

vlan 2
description PC-Business-VLAN2
qu

interface Eth-Trunk 1
port link-type trunk
port trunk allow-pass vlan 2 3 100
mode lacp-static
quit

interface GigabitEthernet 0/0/1
eth-trunk 1
quit

int gt 0/0/2
eth-trunk 1
qu

int g0/0/4
description To-SW4
port link-type trunk
port trunk allow-pass vlan 2 3 100
port trunk pvid vlan 2
qu

interface Vlanif 2
ip address 172.16.2.3 255.255.255.0
vrrp vrid 1 virtual-ip 172.16.2.1
qu

interface Vlanif 3
ip address 172.16.3.3 255.255.255.0
vrrp vrid 2 virtual-ip 172.16.3.1
vrrp vrid 2 priority 120
vrrp vrid 2 preempt-mode timer delay 5
vrrp vrid 2 track interface GigabitEthernet 0/0/5 reduced 30
quit

stp region-configuration
region-name come
instance 1 vlan 2
instance 2 vlan 3
active region-configuration
qu

stp instance 2 root primary
stp instance 1 root secondary

dhcp enable

SW4

sys
sysname SW4

vlan batch 2 3 100

interface GigabitEthernet 0/0/1
description PC3-VLAN2
port link-type access
port default vlan 2
stp edged-port enable
qu

interface GigabitEthernet 0/0/3
description To-SW1
port link-type trunk
port trunk allow-pass vlan 2 3 100
port trunk pvid vlan 2
undo shutdown
qu

PC1-PC4

SW1-SW4

PCping测试

http://www.dtcms.com/a/528429.html

相关文章:

  • 海天建设集团公司网站vi应用设计
  • Mybatis10-xml文件与mapper文件的目录位置说明
  • 安全的网站网站开发要
  • 面向模块的综合技术之综合策略优化(六)
  • Mem0:构建具有可扩展长期记忆的生产级AI代理 - 论文学习总结1
  • 【三相异步电动机判断好坏】
  • 整体设计 全面梳理复盘 之6 整体设计表格体系与执行逻辑迭代
  • SpringBoot集成Elasticsearch | Spring官方场景启动器(Spring Data Elasticsearch)方式
  • 【计挑赛】程序设计类真题(C++)
  • HTML HTML5基础(1)
  • 2025年9月电子学会全国青少年软件编程等级考试(Python五级)真题及答案
  • (论文速读)Anyattack: 面向视觉语言模型的大规模自监督对抗性攻击
  • 多线程六脉神剑第六剑:事件同步 (AutoResetEvent/ManualResetEvent)
  • Vue3 Composition API 实战指南
  • asp网站幻灯片不显示wordpress的站点是什么
  • 异步编程 await 和 async
  • Flask 学习路线图
  • 大数据统计网站南宁7天优化网络科技公司
  • ajax网站开发技术网店设计素材
  • GitHub 热榜项目 - 日榜(2025-10-25)
  • 【bug解决】[string “tolua.lua“]:1: ‘=‘ expected
  • Windows 10/11用户报告开始菜单和搜索栏故障
  • 仓颉语言核心技术解析:如何开发高性能服务端应用
  • Redis分布式锁演进全解析
  • 实时性要求高的场景中实现增量式遗传算法更新
  • 广告传媒建设网站网站策划建设阶段的推广
  • 从零开始:C++ TCP 服务器实战教程
  • csv文件用Excel打开后出现乱码的问题及其解决方法
  • 【Swift】LeetCode 56. 合并区间
  • 上海免费建站模板iis添加网站 别名