ip生产区

实验拓扑及需求

实验配置

需求一:交换机之间trunk使用最少vlan透传原则

D-1\]vlan batch 21 22 23 100 \[D-1-GigabitEthernet0/0/3\]port link-type trunk \[D-1-GigabitEthernet0/0/3\]port trunk allow-pass vlan 21 \[D-2-GigabitEthernet0/0/4\]port link-type trunk \[D-2-GigabitEthernet0/0/4\]port trunk allow-pass vlan 22 \[D-2-GigabitEthernet0/0/5\]port link-type trunk \[D-2-GigabitEthernet0/0/5\]port trunk allow-pass vlan 23 100 \[A-1-GigabitEthernet0/0/1\]port link-type trunk \[A-1-GigabitEthernet0/0/1\]port trunk allow-pass vlan 21 \[A-1-GigabitEthernet0/0/2\]port link-type access \[A-1-GigabitEthernet0/0/2\]port default vlan 21 \[A-2-GigabitEthernet0/0/1\]port link-type access \[A-2-GigabitEthernet0/0/1\]port default vlan 22 \[A-2-GigabitEthernet0/0/2\]port link-type trunk \[A-2-GigabitEthernet0/0/2\]port trunk allow-pass vlan 22 \[A-3-GigabitEthernet0/0/1\]port link-type trunk \[A-3-GigabitEthernet0/0/1\]port trunk allow-pass vlan 23 100 需求二:D-1,D-2之间做链路聚合 \[D-1\]int Eth-Trunk 0 \[D-1-Eth-Trunk0\]trunkport g0/0/1 \[D-1-Eth-Trunk0\]trunkport g0/0/2 \[D-2\]interface Eth-Trunk 0 \[D-2-Eth-Trunk0\]trunkport g0/0/1 \[D-2-Eth-Trunk0\]trunkport g0/0/2 \[D-1-Eth-Trunk0\]port link-type trunk \[D-1-Eth-Trunk0\]port trunk allow-pass vlan 21 22 23 100 \[D-2-Eth-Trunk0\]port link-type trunk \[D-2-Eth-Trunk0\]port trunk allow-pass vlan 21 22 23 100 需求三:MSTP name 配置为SC 需求四:MSTP 实例映射为: instance 1 vlan 21 instance 2 vlan 22 23 100 需求五:D-1为实例1,0的根,实例二的备份根 需求六:D-2为实例二的根,实例1,0的备份根 \[D-1\]stp enable \[D-1\]stp region-configuration \[D-1-mst-region\]region-name SC \[D-1-mst-region\]instance 1 vlan 21 \[D-1-mst-region\]instance 2 vlan 22 23 100 \[D-1-mst-region\]active region-configuration \[D-1\]stp instance 1 root primary \[D-1\]stp instance 0 root primary \[D-1\]stp instance 2 root secondary \[D-2\]stp enable \[D-2-mst-region\]region-name SC \[D-2-mst-region\]instance 1 vlan 21 \[D-2-mst-region\]instance 2 vlan 22 23 100 \[D-2-mst-region\]active region-configuration \[D-2\]stp instance 0 root secondary \[D-2\]stp instance 1 root secondary \[D-2\]stp instance 2 root primary 需求七:所有access接口配置为边缘接口,并配置BPDU保护,同时需要过滤用户收到stp相关报文 \[A-1-GigabitEthernet0/0/2\]stp edged-port enable \[A-1-GigabitEthernet0/0/2\]stp bpdu-filter enable \[A-1\]stp bpdu-protection \[A-2-GigabitEthernet0/0/1\]stp edged-port enable \[A-2-GigabitEthernet0/0/2\]stp bpdu-filter enable \[A-2\]stp bpdu-protection 需求八:D-1为vlanif 21 的master,D-2为backup 需求九:D-2为vlanif 22 的master,D-1为backup \[D-1\]int vlanif 21 \[D-1-Vlanif21\]ip address 192.168.1.1 255.255.255.0 \[D-1-Vlanif21\]vrrp vrid 1 virtual-ip 192.168.1.2 \[D-1-Vlanif21\]vrrp vrid 1 priority 101 \[D-2\]int vlanif 22 \[D-2-Vlanif22\]ip address 192.168.1.3 255.255.255.0 \[D-2-Vlanif22\]vrrp vrid 1 virtual-ip 192.168.1.2 \[D-2-Vlanif22\]vrrp vrid 1 priority 101 需求十:D-1与D-2的vrrp需监控上行链路,双上行都down时切换网关,抢占延时为20s \[D-1-Vlanif21\]vrrp vrid 1 track interface g0/0/3 reduced 2 \[D-2-Vlanif22\]vrrp vrid 1 track interface g0/0/4 reduced 2 \[D-1-Vlanif21\]vrrp vrid 1 preempt-mode timer delay 20 \[D-2-Vlanif22\]vrrp vrid 1 preempt-mode timer delay 20 ![](https://i-blog.csdnimg.cn/direct/9281b60388d245248b041b2cc8c1e2d4.png) ![](https://i-blog.csdnimg.cn/direct/67c45fae2ca2467ab6c015c7953f46cc.png) ![](https://i-blog.csdnimg.cn/direct/b8200aad1856426b952c86fadfb2380d.png) ![](https://i-blog.csdnimg.cn/direct/c42b252f7c1d4294b4e868f8cec15b59.png)

相关推荐
亚远景aspice11 分钟前
亚远景-ISO 26262与ISO 21434:未来汽车安全标准的发展趋势
网络
wuxingge20 分钟前
浪潮服务器-型号NF5270M3做raid
服务器
橘子真甜~21 分钟前
C/C++ Linux网络编程2 - Socket编程与简单UDP服务器客户端
linux·运维·服务器·网络编程api·udp协议·udp通信
咬_咬25 分钟前
C++仿muduo库高并发服务器项目:Poller模块
服务器·开发语言·c++·epoll·muduo
深圳市恒讯科技26 分钟前
服务器与普通个人电脑的主要区别是什么?
运维·服务器
xrkhy1 小时前
websocket(即时通讯)
网络·websocket·网络协议
im_AMBER1 小时前
HTTP概述 01
javascript·网络·笔记·网络协议·学习·http
John_Rey1 小时前
API 设计哲学:构建健壮、易用且符合惯用语的 Rust 库
网络·算法·rust
未来之窗软件服务1 小时前
服务器运维(十一)SQLite3 php封装——东方仙盟炼气期
运维·服务器·sqlite·服务器运维·数据库驱动·东方仙盟
大公产经晚间消息1 小时前
网易云音乐回应“不适配鸿蒙”:推动相关部门加快步伐
网络