如下图,我要实现两个vlan之间的通信,中间两个二层交换机,最上面这个三层交换机如何设置?
vlan2 的 PC Gateway:192.168.2.1
vlan3 的 PC Gateway:192.168.3.1
-------------------------------------------
switch0:
interface FastEthernet0/1
switchport access vlan 2
switchport mode access
!
interface FastEthernet0/2
switchport access vlan 3
switchport mode access
!
interface FastEthernet0/24
switchport mode trunk
--------------------------------------------
switch1:
interface FastEthernet0/1
switchport access vlan 2
switchport mode access
!
interface FastEthernet0/2
switchport access vlan 3
switchport mode access
!
interface FastEthernet0/24
switchport mode trunk
------------------------------------------
Multilayer switch:
ip routing
!
interface Vlan2
ip address 192.168.2.1 255.255.255.0
!
interface Vlan3
ip address 192.168.3.1 255.255.255.0
-----------------------------------------
你这个mulitilayer switch上的两个接口不设置trunk吗?我设完了之后2.2ping2.3是通的,但是ping不通3.2和3.3。这个交换机上路由表里没有2.0和3.0
那我只能说见鬼了
multilayer我开启了ip routing,而且两个vlan都给了ip地址
interface Vlan2
ip address 192.168.2.1 255.255.255.0
!
interface Vlan3
ip address 192.168.3.1 255.255.255.0
这是直连的,你现在告诉我路由表里没有直连路由的信息
C 192.168.2.0/24 is directly connected, Vlan2
C 192.168.3.0/24 is directly connected, Vlan3
我也没办法了!
2023-05-25 广告