// 配置全局开启STP协议 stp enable

// 配置接口1/0/1为stp协议的根口,优先级设为0,代表最高优先级 interface Ethernet1/0/1 stp edged-port enable // 配置端口为边缘口,不参与STP协议计算,用于连接终端设备 stp root-protection // 配置根保护,防止接口被错误地配置为根口 stp bpdu-filter enable // 配置BPDU过滤,防止非法设备通过发送BPDU欺骗交换机

// 配置接口1/0/2为stp协议的非根口,优先级设为128,代表较低优先级 interface Ethernet1/0/2 stp cost 10 // 配置接口代价,防止环路发生 stp bpdu-guard enable // 配置BPDU守卫,防止非法设备通过发送BPDU欺骗交换机

// 配置接口1/0/3为stp协议的非根口,优先级设为128,代表较低优先级 interface Ethernet1/0/3 stp cost 10 // 配置接口代价,防止环路发生 stp bpdu-guard enable // 配置BPDU守卫,防止非法设备通过发送BPDU欺骗交换机

// 配置接口1/0/4为stp协议的非根口,优先级设为128,代表较低优先级 interface Ethernet1/0/4 stp cost 10 // 配置接口代价,防止环路发生 stp bpdu-guard enable // 配置BPDU守卫,防止非法设备通过发送BPDU欺骗交换机

// 配置接口1/0/5为stp协议的非根口,优先级设为128,代表较低优先级 interface Ethernet1/0/5 stp cost 10 // 配置接口代价,防止环路发生 stp bpdu-guard enable // 配置BPDU守卫,防止非法设备通过发送BPDU欺骗交换机

// 配置接口1/0/6为stp协议的非根口,优先级设为128,代表较低优先级 interface Ethernet1/0/6 stp cost 10 // 配置接口代价,防止环路发生 stp bpdu-guard enable // 配置BPDU守卫,防止非法设备通过发送BPDU欺骗交换机

// 配置接口1/0/7为stp协议的非根口,优先级设为128,代表较低优先级 interface Ethernet1/0/7 stp cost 10 // 配置接口代价,防止环路发生 stp bpdu-guard enable // 配置BPDU守卫,防止非法设备通过发送BPDU欺骗交换机

// 配置接口1/0/8为stp协议的非根口,优先级设为128,代表较低优先级 interface Ethernet1/0/8 stp cost 10 // 配置接口代价,防止环路发生 stp bpdu-guard enable // 配置BPDU守卫,防止非法设备通过发送BPDU欺骗交换机

// 配置接口1/0/9为stp协议的非根口,优先级设为128,代表较低优先级 interface Ethernet1/0/9 stp cost 10 // 配置接口代价,防止环路发生 stp bpdu-guard enable // 配置BPDU守卫,防止非法设备通过发送BPDU欺骗交换机

// 配置接口1/0/10为stp协议的非根口,优先级设为128,代表较低优先级 interface Ethernet1/0/10 stp cost 10 // 配置接口代价,防止环路发生 stp bpdu-guard enable // 配置BPDU守卫,防止非法设备通过发送BPDU欺骗交换


原文地址: https://www.cveoy.top/t/topic/dnJ3 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录