组网层级:汇聚(业务网关在汇聚交换机上)-->新增串联透明部署防火墙-->核心交换机,原先层级为汇聚(业务网关在汇聚交换机上)-->核心交换机,通过interface Vlanif41与每台设备2个端口聚合50互联转发业务至核心交换机上
当前问题是在汇聚和交换机侧关闭stp就可以还是防火墙侧也需要关闭stp,配置脚本如下,另外IPS,AV的策略需要加吗?授权有的
主
#
sysname F1000-1
#
vlan 41
#
clock timezone Beijing add 08:00:00
#
interface Route-Aggregation64
description TO-[F1000-2]-RAGG64-2*1GE-RBM
ip address 1.1.1.1 255.255.255.252
link-aggregation mode dynamic
#
#
interface range g 1/0/12 g 1/0/13
port link-aggregation group 64
qu
#
security-policy ip
rule 0 name linshi
action pass
qu
qu
#
remote-backup group
data-channel interface Route-Aggregation64
configuration sync-check interval 12
delay-time 30
track vlan 41
local-ip 1.1.1.1
remote-ip 1.1.1.2
device-role primary
#
interface Bridge-Aggregation 1
interface Bridge-Aggregation 2
#
interface range Ten-GigabitEthernetg1/0/14 Ten-GigabitEthernet1/0/15
port link-mode bridge
port link-aggregation group 1
#
interface Bridge-Aggregation 1
description TO-shanglian-HX
port link-type trunk
port trunk permit vlan 41
link-aggregation mode dynamic
#
interface range Ten-GigabitEthernetg1/0/16 Ten-GigabitEthernet1/0/17
port link-mode bridge
port link-aggregation group 2
#
interface Bridge-Aggregation 2
description TO-xialian-HJ
port link-type trunk
port trunk permit vlan 41
link-aggregation mode dynamic
#
security-zone name rbm
import interface Route-Aggregation64
#
security-zone name Trust
import interface Bridge-Aggregation2
#
security-zone name Untrust
import interface Bridge-Aggregation1
#
line vty 0 63
authentication-mode scheme
user-role network-admin
screen-length 0
protocol inbound ssh
#
ssh server enable
#
local-user 账号 class manage
password-control length 8
password si 密码
service-type ssh https terminal
authorization-attribute user-role network-admin
authorization-attribute user-role network-operator
#
备
#
sysname F1000-2
#
vlan 41
#
clock timezone Beijing add 08:00:00
#
interface Route-Aggregation64
description TO-[F1000-1]-RAGG64-2*1GE-RBM
ip address 1.1.1.2 255.255.255.252
link-aggregation mode dynamic
#
#
interface range g 1/0/12 g 1/0/13
port link-aggregation group 64
qu
#
security-policy ip
rule 0 name linshi
action pass
qu
qu
#
remote-backup group
data-channel interface Route-Aggregation64
configuration sync-check interval 12
delay-time 30
track vlan 41
local-ip 1.1.1.2
remote-ip 1.1.1.1
device-role secondary
#
interface Bridge-Aggregation 1
interface Bridge-Aggregation 2
#
interface range Ten-GigabitEthernetg1/0/14 Ten-GigabitEthernet1/0/15
port link-mode bridge
port link-aggregation group 1
#
interface Bridge-Aggregation 1
description TO-shanglian-HX
port link-type trunk
port trunk permit vlan 41
link-aggregation mode dynamic
#
interface range Ten-GigabitEthernetg1/0/16 Ten-GigabitEthernet1/0/17
port link-mode bridge
port link-aggregation group 2
#
interface Bridge-Aggregation 2
description TO-xialian-HJ
port link-type trunk
port trunk permit vlan 41
link-aggregation mode dynamic
#
security-zone name rbm
import interface Route-Aggregation64
#
security-zone name Trust
import interface Bridge-Aggregation2
#
security-zone name Untrust
import interface Bridge-Aggregation1
#
line vty 0 63
authentication-mode scheme
user-role network-admin
screen-length 0
protocol inbound ssh
#
ssh server enable
#
local-user 账号 class manage
password-control length 8
password si 密码
service-type ssh https terminal
authorization-attribute user-role network-admin
authorization-attribute user-role network-operator
#
stp disable(接口下关闭 STP),不建议交换机侧直接关 STP你的组网:汇聚 → 防火墙(透明桥)→ 核心,业务 VLAN41 跨防火墙二层透传;防火墙是RBM 主备透明串联,不是 M-LAG,上下行是两条独立桥聚合,主备不同时转发。 风险点:如果防火墙桥接口收发 BPDU,防火墙本身会参与 STP 计算,会乱改根桥、阻塞端口,导致业务断流。
防火墙透明桥模式下,bridge 接口默认会转发 BPDU;防火墙本身可以参与 STP,但串联 RBM 场景下防火墙不应该参与 STP 计算,BPDU 直接透传,STP 由上游汇聚、核心交换机完成。 ✅ 推荐做法:
# 主、备防火墙都要在两个桥聚合口下配置
interface Bridge-Aggregation1
stp disable
interface Bridge-Aggregation2
stp disable
❌ 不推荐:全局
undo stp enable,全局关会影响防火墙本身管理 VLAN,如果后续有管理 VLAN 需要 STP 就麻烦;接口下关闭是最优。 ❌ 绝对不建议:汇聚 / 核心直接关闭 STP,一旦布线冗余、光纤错接,直接二层风暴。
补充:RBM 透明主备切换逻辑:主设备转发,备设备桥接口是阻断状态,不会形成二层环路,所以 STP 只交给汇聚 + 核心控制。
display stp brief
display stp interface Bridge-Aggregation 1
接口下 stp disable 之后,该接口不会发送 BPDU,也不处理收到的 BPDU,BPDU 直接透传。
你现在的安全策略:
security-policy ip
rule 0 name linshi
action pass
只有 pass,没有 profile,DPI(IPS/AV)完全不检测。
需求区分:
- 如果你只做透传、不做威胁检测:保持现状即可,IPS AV 不用加
- 如果你要开启 IPS 入侵防御、AV 病毒查杀:需要新增 app-profile,在安全策略引用 profile
# 1. 创建DPI模板
app-profile sec_dpi
ips apply policy default mode protect
anti-virus apply policy default mode protect
quit
# 2. 修改安全策略,引用profile
security-policy ip
rule 0 name linshi
action pass
profile sec_dpi
quit
protect:命中威胁直接阻断 + 日志;alert:只告警放行,不阻断注意:RBM 场景,配置会同步,主上配置完,备自动同步,不用单独在备重复敲 DPI 和安全策略。
track vlan 41:track 是监控 VLAN41,VLAN41 在防火墙是桥 VLAN,track vlan41 是监控 VLAN 内所有桥接口状态,这个配置本身没问题;
建议额外加上 track 上行 / 下行桥接口,避免 VLAN 内单条链路故障误切换。表格
| 方案 | 风险 | 适用 |
|---|---|---|
| 交换机保留 STP,防火墙桥口 stp disable | 风险最低,BPDU 透传,STP 由汇聚核心控制 | ✅推荐,你这个组网首选 |
| 交换机侧关闭 STP | 一旦布线冗余、链路错接,直接广播风暴 | ❌不推荐 |
| 防火墙全局 undo stp enable | 影响防火墙其他接口,扩展性差 | 不推荐 |
汇聚、核心STP 不要关;防火墙上下行 Bridge-Aggregation 接口下配置
stp disable;IPS/AV 想要检测流量就新增 app-profile 并在安全策略下调用 profile,不检测就维持现状。
暂无评论
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
暂无评论