我正在尝试创建 2 个 vlan-10 和 20,其中 10 用于用户,20 用于 DMZ。创建的 vlan 30 用于连接 vlan 10 和 20。
现在我只能从 vlan ping 用户到他们的交换机,而不是下面的对面交换机是我的配置。任何帮助深表感谢!

开关1:
vlan 10
name user
vlan 20
name dmz
vlan 30
name link
interface Vlan10
ip address 10.100.20.1 255.255.255.0
interface Vlan30
ip address 192.168.30.1 255.255.255.252
ip route 155.140.254.0 255.255.255.0 192.168.30.2
interface FastEthernet0/1
switchport access vlan 10
switchport mode access
interface FastEthernet0/2
switchport trunk allowed vlan 30
switchport trunk encapsulation dot1q
switchport mode trunk
开关2:
vlan 10
name user
vlan 20
name dmz
vlan 30
name link
interface Vlan20
ip address 155.140.254.1 255.255.255.0
interface Vlan30
ip address 192.168.30.2 255.255.255.252
interface FastEthernet0/1
switchport access vlan 20
switchport mode access
interface FastEthernet0/2
switchport trunk allowed vlan 30
switchport trunk encapsulation dot1q
switchport mode trunk
ip route 10.100.20.0 255.255.255.0 192.168.30.1
我的交换机 1 的 IP 路由:
10.0.0.0/24 is subnetted, 1 subnets
C 10.100.20.0 is directly connected, Vlan10
155.140.0.0/24 is subnetted, 1 subnets
S 155.140.254.0 [1/0] via 192.168.30.2
192.168.30.0/30 is subnetted, 1 subnets
C 192.168.30.0 is directly connected, Vlan30
开关 2:
10.0.0.0/24 is subnetted, 1 subnets
S 10.100.20.0 [1/0] via 192.168.30.1
155.140.0.0/24 is subnetted, 1 subnets
C 155.140.254.0 is directly connected, Vlan20
192.168.30.0/30 is subnetted, 1 subnets
C 192.168.30.0 is directly connected, Vlan30
我都配置了ip路由。我的路线正确吗?