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

简单园区实验拓扑

实验要求

配置过程

[sw1]vlan batch 2 3 20 30 [sw1]interface Eth-Trunk 0 [sw1-Eth-Trunk0]trunkport GigabitEthernet 0/0/1 to 0/0/2 (链路聚合) [sw1-Eth-Trunk0]p l t [sw1-Eth-Trunk0]p t a v 2 3 20 30 [sw1-Eth-Trunk0]q [sw1]int g 0/0/3 [sw1-GigabitEthernet0/0/3]p l t [sw1-GigabitEthernet0/0/3]p t a v 2 3 20 30 [sw1-GigabitEthernet0/0/3]int g0/0/4 [sw1-GigabitEthernet0/0/4]p l t [sw1-GigabitEthernet0/0/4]p t a v 2 3 20 30 [sw1]stp enable [sw1]stp mode mstp [sw1]stp region-configuration [sw1-mst-region] region-name aa [sw1-mst-region] revision-level 100 [sw1-mst-region] instance 1 vlan 2 to 3 [sw1-mst-region] instance 2 vlan 20 30 [sw1-mst-region] active region-configuration [sw1]stp instance 1 root primary [sw1]stp instance 2 root secondary [sw1]int Vlanif 2 [sw1-Vlanif2]ip add 10.0.2.1 24 [sw1-Vlanif2]vrrp vrid 1 virtual-ip 10.0.2.254 [sw1-Vlanif2]vrrp vrid 1 priority 120 [sw1-Vlanif2]vrrp vrid 1 preempt-mode timer delay 20 [sw1-Vlanif2]vrrp vrid 1 track interface GigabitEthernet 0/0/5 reduced 30 [sw1-Vlanif2]q [sw1]int Vlanif 3 [sw1-Vlanif3]ip add 10.0.3.1 24 [sw1-Vlanif3]vrrp vrid 1 virtual-ip 10.0.3.254 [sw1-Vlanif3]vrrp vrid 1 priority 120 [sw1-Vlanif3]vrrp vrid 1 preempt-mode timer delay 20 [sw1-Vlanif3]vrrp vrid 1 track interface GigabitEthernet 0/0/5 reduced 30 [sw1]int Vlanif 20 [sw1-Vlanif20]ip add 10.0.20.1 24 [sw1-Vlanif20]vrrp vrid 1 virtual-ip 10.0.20.254 [sw1-Vlanif20]q [sw1]int Vlanif 30 [sw1-Vlanif30]ip add 10.0.30.1 24 [sw1-Vlanif30]vrrp vrid 1 virtual-ip 10.0.30.254 [sw1]ospf 1 [sw1-ospf-1]area 0 [sw1-ospf-1-area-0.0.0.0]network 10.0.2.1 0.0.0.0 [sw1-ospf-1-area-0.0.0.0]network 10.0.3.1 0.0.0.0 [sw1-ospf-1-area-0.0.0.0]network 10.0.0.2 0.0.0.0 [sw1-ospf-1-area-0.0.0.0]network 10.0.20.1 0.0.0.0 [sw1-ospf-1-area-0.0.0.0]network 10.0.30.1 0.0.0.0 [sw1-ospf-1]silent-interface Vlanif 2 [sw1-ospf-1]silent-interface Vlanif 3 [sw1-ospf-1]silent-interface Vlanif 20 [sw1-ospf-1]silent-interface Vlanif 30 [sw1]vlan 13 [sw1-vlan13]q [sw1]int Eth-Trunk 0 [sw1-Eth-Trunk0]p t a v 13 [sw1]int Vlanif 13 [sw1-Vlanif13]ip add 10.0.0.9 30 [sw1-Vlanif13]q [sw1]ospf 1 [sw1-ospf-1]area 0 [sw1-ospf-1-area-0.0.0.0]network 10.0.0.9 0.0.0.0 [sw1]vlan 11 [sw1-vlan11]int g0/0/5 [sw1-GigabitEthernet0/0/5]port link-type access [sw1-GigabitEthernet0/0/5]port default vlan 11 [sw1-GigabitEthernet0/0/5]q [sw1]int Vlanif 11 [sw1-Vlanif11]ip add 10.0.0.2 30
[sw2]vlan batch 2 3 20 30 [sw2]interface Eth-Trunk 0 [sw2-Eth-Trunk0]trunkport GigabitEthernet 0/0/1 to 0/0/2 (链路聚合) [sw2-Eth-Trunk0]p l t [sw2-Eth-Trunk0]p t a v 2 3 20 30 [sw2-Eth-Trunk0]int g0/0/3 [sw2-GigabitEthernet0/0/3]p l t [sw2-GigabitEthernet0/0/3]p t a v 2 3 20 30 [sw2-GigabitEthernet0/0/3]int g0/0/4 [sw2-GigabitEthernet0/0/4]p l t [sw2-GigabitEthernet0/0/4]p t a v 2 3 20 30 [sw2]stp enable [sw2]stp mode mstp [sw2]stp region-configuration [sw2-mst-region] region-name aa [sw2-mst-region] revision-level 100 [sw2-mst-region] instance 1 vlan 2 to 3 [sw2-mst-region] instance 2 vlan 20 30 [sw2-mst-region] active region-configuration [sw2]stp instance 1 root secondary [sw2]stp instance 2 root primary [sw2]int Vlanif 2 [sw2-Vlanif2]ip ad 10.0.2.2 24 [sw2-Vlanif2]vrrp vrid 1 virtual-ip 10.0.2.254 [sw2-Vlanif2]q [sw2]int Vlanif 3 [sw2-Vlanif3]ip ad 10.0.3.2 24 [sw2-Vlanif3]vrrp vrid 1 virtual-ip 10.0.3.254 [sw2-Vlanif3]q [sw2]int Vlanif 20 [sw2-Vlanif20]ip ad 10.0.20.2 24 [sw2-Vlanif20]vrrp vrid 1 virtual-ip 10.0.20.254 [sw2-Vlanif20]vrrp vrid 1 priority 120 [sw2-Vlanif20]vrrp vrid 1 preempt-mode timer delay 20 [sw2-Vlanif20]vrrp vrid 1 track in GigabitEthernet 0/0/5 reduced 30 [sw2-Vlanif20]q [sw2]int Vlanif 30 [sw2-Vlanif30]ip ad 10.0.30.2 24 [sw2-Vlanif30]vrrp vrid 1 virtual-ip 10.0.30.254 [sw2-Vlanif30]vrrp vrid 1 priority 120 [sw2-Vlanif30]vrrp vrid 1 preempt-mode timer delay 20 [sw2-Vlanif30]vrrp vrid 1 track in GigabitEthernet 0/0/5 reduced 30 [sw2]ospf 1 [sw2-ospf-1]area 0 [sw2-ospf-1-area-0.0.0.0]network 10.0.2.2 0.0.0.0 [sw2-ospf-1-area-0.0.0.0]network 10.0.3.2 0.0.0.0 [sw2-ospf-1-area-0.0.0.0]network 10.0.0.6 0.0.0.0 [sw2-ospf-1-area-0.0.0.0]network 10.0.20.2 0.0.0.0 [sw2-ospf-1-area-0.0.0.0]network 10.0.30.2 0.0.0.0 [sw2-ospf-1]silent-interface Vlanif 2 [sw2-ospf-1]silent-interface Vlanif 3 [sw2-ospf-1]silent-interface Vlanif 20 [sw2-ospf-1]silent-interface Vlanif 30 [sw2]vlan 13 [sw2-vlan13]q [sw2]int Eth-Trunk 0 [sw2-Eth-Trunk0]p t a v 13 [sw2-Eth-Trunk0]q [sw2]interface Vlanif 13 [sw2-Vlanif13]ip address 10.0.0.10 30 [sw2-Vlanif13]q [sw2]ospf 1 [sw2-ospf-1]area 0 [sw2-ospf-1-area-0.0.0.0]network 10.0.0.10 0.0.0.0 [sw2]vlan 12 [sw2-vlan12]int g0/0/5 [sw2-GigabitEthernet0/0/5]port link-type access [sw2-GigabitEthernet0/0/5]port default vlan 12 [sw2-GigabitEthernet0/0/5]q [sw2]int Vlanif 12 [sw2-Vlanif12]ip ad 10.0.0.6 30
[sw3]vlan batch 2 3 20 30 [sw3]interface GigabitEthernet 0/0/1 [sw3-GigabitEthernet0/0/1]p l a [sw3-GigabitEthernet0/0/1]p d v 2 [sw3-GigabitEthernet0/0/1]int g0/0/2 [sw3-GigabitEthernet0/0/2]p l a [sw3-GigabitEthernet0/0/2]p d v 3 [sw3-GigabitEthernet0/0/2]int g0/0/3 [sw3-GigabitEthernet0/0/3]p l t [sw3-GigabitEthernet0/0/3]p t a v 2 3 20 30 [sw3-GigabitEthernet0/0/3]int g0/0/4 [sw3-GigabitEthernet0/0/4]p l t [sw3-GigabitEthernet0/0/4]p t a v 2 3 20 30 [sw3]stp enable [sw3]stp mode mstp [sw3]stp region-configuration [sw3-mst-region] region-name aa [sw3-mst-region] revision-level 100 [sw3-mst-region] instance 1 vlan 2 to 3 [sw3-mst-region] instance 2 vlan 20 30 [sw3-mst-region] active region-configuration [sw3]int g 0/0/1 [sw3-GigabitEthernet0/0/1]stp edged-port enable [sw3-GigabitEthernet0/0/1]int g0/0/2 [sw3-GigabitEthernet0/0/2]stp edged-port enable
[sw4]vlan batch 2 3 20 30 [sw4]int g0/0/1 [sw4-GigabitEthernet0/0/1]p l a [sw4-GigabitEthernet0/0/1]p d v 20 [sw4-GigabitEthernet0/0/1]int g0/0/2 [sw4-GigabitEthernet0/0/2]p l a [sw4-GigabitEthernet0/0/2]p d v 30 [sw4-GigabitEthernet0/0/2]int g0/0/3 [sw4-GigabitEthernet0/0/3]p l t [sw4-GigabitEthernet0/0/3]p t a v 2 3 20 30 [sw4-GigabitEthernet0/0/3]int g0/0/4 [sw4-GigabitEthernet0/0/4]p l t [sw4-GigabitEthernet0/0/4]p t a v 2 3 20 30 [sw4]stp enable [sw4]stp mode mstp [sw4]stp region-configuration [sw4-mst-region] region-name aa [sw4-mst-region] revision-level 100 [sw4-mst-region] instance 1 vlan 2 to 3 [sw4-mst-region] instance 2 vlan 20 30 [sw4-mst-region] active region-configuration [sw4]int g0/0/1 [sw4-GigabitEthernet0/0/1]stp edged-port enable [sw4-GigabitEthernet0/0/1]int g0/0/2 [sw4-GigabitEthernet0/0/2]stp edged-port enable
[AR1]ospf 1 [AR1-ospf-1]area 0 [AR1-ospf-1-area-0.0.0.0]network 10.0.0.1 0.0.0.0 [AR1-ospf-1-area-0.0.0.0]network 10.0.0.5 0.0.0.0 [r1]int g0/0/0 [r1-GigabitEthernet0/0/0]ip ad 202.1.1.1 30 [r1]ip route-static 0.0.0.0 0 202.1.1.2 [r1-ospf-1]default-route-advertise [r1]ospf 1 [r1-ospf-1]default-route-advertise [r1]acl 2000 [r1-acl-basic-2000]rule permit source 10.0.0.0 0.0.255.255 [r1-acl-basic-2000]q [r1]int g 0/0/0 [r1-GigabitEthernet0/0/0]nat outbound 2000
<Huawei>sys [Huawei]sys isp [isp]int g 0/0/0 [isp-GigabitEthernet0/0/0]ip address 202.1.1.2 30 [isp]int LoopBack 0 [isp-LoopBack0]ip address 100.100.100.100 24
http://www.jsqmd.com/news/669384/

相关文章:

  • 【嵌入式Linux应用开发】从SquareLine Studio到开发板:LVGL UI高效开发与移植实战
  • 不止于暴力破解:用‘滑动窗口’思路优雅解决PTA连续因子问题(L1-006)
  • 【EndNote】文献类型与缩写实战指南:从入门到精通
  • Spring Boot 2.x + MyBatis 连接 Doris 数据库保姆级教程(附完整项目源码)
  • Vue3 + Element Plus 侧边栏折叠实战:从布局适配到图标切换的完整避坑指南
  • 用PYNQ-Z2开发板从零实现HDMI彩条显示:Vivado 18.3实战教程(附完整源码)
  • 用Java手把手教你实现PCA权重计算:从Excel数据到最终权重的完整流程
  • 告别手动配置!保姆级教程:在Windows 10/11上安装STM32CubeMX 6.9.0及HAL库支持包
  • Keil C51安装避坑指南:从下载到破解的完整流程(附最新注册机)
  • 房地产行业的 AI 变革:房产带看与估值 Agent
  • 2026年南宁高压清洗管道生产厂家推荐 - 品牌宣传支持者
  • 告别网格限制:用原子范数最小化(ANM)在MATLAB/Python中实现超分辨DOA估计
  • 华为设备SSH远程登录实战:从零配置到安全连接
  • E9:泛微OA系统API接口分类解析与应用指南
  • VLLM/SGLang服务上线后,如何用lm_eval快速做个‘体检’?附完整API评测命令
  • openvslam (1) 运行和增大跟踪效果 - MKT
  • Matlab R2023a绘图避坑:xlabel设置后不显示?教你排查字体、坐标区与对象句柄问题
  • AI赋能供应链:从SCM、SRM到MDM,智能技术如何重塑核心概念与协同
  • 宝塔面板日志文件过大_配置日志轮转与定时清理
  • 保姆级教程:用Abaqus搞定气动软体抓手的仿真建模(从材料设置到结果提取)
  • 法规标准-UN R157:自动驾驶L3级认证的“安全基石”与测试挑战
  • 从‘MOVED’错误到丝滑重定向:深入理解Redis集群客户端如何与16384个Slot打交道
  • 别再为通信失败头疼!手把手调试FR336 RFID读写器与三菱PLC的Modbus RTU连接
  • JumpServer自动化运维避坑手册:Ansible作业调度那些容易踩的5个雷(含容器权限隔离最佳实践)
  • 工业肌肉:08 伺服最容易坏在哪里?工程师最怕的 10 个坑
  • STM32实战 | 基于AD7606并行接口的高效多通道数据采集方案
  • 别再只测本地了!手把手教你配置Mosquitto MQTT代理,让外网设备也能连上
  • 轨道角动量OAM超表面设计:自旋到轨道角动量转换与几何相位调控的FDTD仿真研究
  • 从理论到实践:拆解TFT模型在业务时序预测中的核心优势与落地指南
  • 从Attention U-Net到UCTransNet:深入拆解通道Transformer(CCT/CCA)如何革新医学影像分割的‘特征融合’逻辑