Cisco路由在VLAN之间

我在思科路由器有两个VLAN的路由问题,这里是configuration:

interface FastEthernet0/1.13 encapsulation dot1Q 13 ip address 192.168.13.254 255.255.255.0 ip nat inside no ip virtual-reassembly ! interface FastEthernet0/1.21 encapsulation dot1Q 21 ip address 10.10.10.29 255.255.255.0 ip nat outside no ip virtual-reassembly ! 

路由部分:

 ip forward-protocol nd ip route 0.0.0.0 0.0.0.0 <ISP GW IP> ip route 10.10.5.0 255.255.255.0 10.10.10.90 

路由器上还有其他的东西,特别是一个大的访问列表,还有很多的NAT,但是没有任何与这个VLAN相关的东西。

如果我在一个VLAN 13主机上,并尝试ping例如一个VLAN21地址不应该工作?

编辑#1

sh ip route结果

 Gateway of last resort is <ISP GW> to network 0.0.0.0 C 192.168.12.0/24 is directly connected, FastEthernet0/1.12 C 192.168.13.0/24 is directly connected, FastEthernet0/1.13 <ISP subnet> is subnetted, 2 subnets C <ISP IP> is directly connected, FastEthernet0/0.120 C <ISP IP> is directly connected, FastEthernet0/1.16 C 192.168.11.0/24 is directly connected, FastEthernet0/1.11 10.0.0.0/8 is variably subnetted, 3 subnets, 3 masks S 10.10.5.0/20 [1/0] via 10.10.10.90 C 10.10.10.1/24 is directly connected, FastEthernet0/1.21 C 192.168.0.0/24 is directly connected, FastEthernet0/1.10 S* 0.0.0.0/0 [1/0] via <ISP GW> 

你有这个命令的问题:

 ip route 10.10.5.0 255.255.240.0 10.10.10.90 

你没有到10.10.10.90下一跳的路由:

  10.0.0.0/8 is variably subnetted, 3 subnets, 3 masks S 10.10.5.0/20 [1/0] via 10.10.10.90 

如果路由器不知道如何到达下一跳,则无法路由到10.10.5.0/20networking,stream量将被丢弃。 路由器需要知道如何到达任何路由的下一跳地址,但路由器的ip address 10.10.10.29 255.255.255.192直接连接的networking只能达到10.10.10.63 ,并且由于某种原因。 没有直接连接到10.10.10.90下一跳地址的networking的接口。

你真的不应该有一个外部(WAN)接口作为VLAN接口。 通常情况下,您希望将物理地址用作外部(WAN)接口。

另外,还显示直接连接的路线:

 C 172.16.0.0/16 is directly connected, FastEthernet0/1.21 

不幸的是,这与您为该接口的configuration显示的内容不符。

永远不要包括直接连接networking的静态路由。