我在配置 Cisco Catalyst 3560 时遇到问题。
我有一个连接到 Linux 服务器的中继接口,该服务器在不同的 VLAN 上运行服务。
当我尝试从 VLAN 110 中的机器 ping 192.168.1.182 上的路由器时,它可以工作,但是当我尝试让 VLAN 98 ping 主机时,即使 Cisco 也无法 ping 自己。
当我查看网络数据包时,路由器发送了带有错误标记和错误源地址的 ARP 请求:
who has 192.168.3.2? Tell 192.168.1.182
该命令show interfaces有时会显示 VLAN 接口已连接(我无法弄清楚如何决定将其设置为 98 向上或向下)。在这两种情况下,它都不起作用。
这些 VLAN 之间的唯一区别是 VLAN 110 有其他端口处于访问模式。
interface GigabitEthernet0/3
switchport trunk encapsulation dot1q
switchport trunk allowed vlan 98,110
switchport mode trunk
shutdown
!
[...]
interface GigabitEthernet0/11
switchport access vlan 110
switchport mode access
[...]
interface Vlan1
no ip address
!
interface Vlan98
ip address 192.168.3.1 255.255.255.252
!
interface Vlan110
ip address 192.168.2.182 255.255.255.240
!
ip classless
ip http server
!
!
ip sla enable reaction-alerts
!
!
!
line con 0
line vty 0 4
login
line vty 5 15
login
!
end
任何的想法?