You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

更换思科交换机管理VLAN后VLAN95网段连通性故障排查求助

更换思科交换机管理VLAN后VLAN95网段连通性故障排查求助

各位网工大佬好,最近在调整网络管理VLAN的时候遇到了一个诡异的问题,折腾了好几天没找到原因,想请大家帮忙分析下。先把我的网络环境和问题详细说下:

现有网络环境

  • 核心设备:一台Checkpoint防火墙(同时作为路由器使用),12台Cisco 9200系列交换机,其中SW1直接和防火墙相连
  • 原有管理配置:管理VLAN是VLAN20,所有交换机的默认网关都指向防火墙的MGMT接口IP 192.168.2.254;所有交换机上只有Vlan20接口配置了IP地址,SW1因为业务需求额外配置了Vlan70的IP(192.168.7.230/24)
  • Trunk配置:所有交换机的Trunk端口都允许所有VLAN的流量通过

新配置操作(更换管理VLAN到VLAN95)

  1. 在防火墙的eth5接口配置了IP 192.168.95.254/24,对应VLAN95
  2. 在所有交换机上创建了Vlan95接口,但一开始没有给这个接口分配IP地址

奇怪的故障现象

  • 阶段1(交换机Vlan95未配IP):所有交换机都能正常ping通防火墙的192.168.95.254,这时候看起来VLAN95的连通性是正常的
  • 阶段2(给SW1的Vlan95配IP后):
    • SW1自己再也ping不通防火墙的192.168.95.254了
    • 防火墙也无法ping通SW1的Vlan95接口IP 192.168.95.240/24

相关路由信息

防火墙路由表(执行route -n输出)

192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 eth1
192.168.2.0     0.0.0.0         255.255.255.0   U     0      0        0 Mgmt
192.168.3.0     0.0.0.0         255.255.255.0   U     0      0        0 eth2
192.168.4.0     0.0.0.0         255.255.255.0   U     0      0        0 eth6.40
192.168.6.240   0.0.0.0         255.255.255.240 U     0      0        0 eth4
192.168.7.0     0.0.0.0         255.255.255.0   U     0      0        0 eth6.70
192.168.9.0     0.0.0.0         255.255.255.0   U     0      0        0 eth8
192.168.95.0    0.0.0.0         255.255.255.0   U     0      0        0 eth5
192.168.96.0    0.0.0.0         255.255.255.0   U     0      0        0 eth6.96

SW1路由表(执行show ip route输出)

Gateway of last resort is 192.168.2.254 to network 0.0.0.0

S*    0.0.0.0/0 [0/0] via 192.168.2.254
192.168.2.0/24 is variably subnetted, 2 subnets, 2 masks
C        192.168.2.0/24 is directly connected, Vlan20
L        192.168.2.245/32 is directly connected, Vlan20
192.168.7.0/24 is variably subnetted, 2 subnets, 2 masks
C        192.168.7.0/24 is directly connected, Vlan70
L        192.168.7.230/32 is directly connected, Vlan70
192.168.95.0/24 is variably subnetted, 2 subnets, 2 masks
C        192.168.95.0/24 is directly connected, Vlan95
L        192.168.95.240/32 is directly connected, Vlan95

我反复检查了路由表,防火墙里192.168.95.0/24是直连eth5的,SW1里也是直连Vlan95的,看起来路由没问题。实在搞不懂为什么给交换机配了VLAN95的IP后反而连通性出问题了,有没有大佬能给点排查思路或者可能的原因?

备注:内容来源于stack exchange,提问作者Daniel D.

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.20 06:50:29