4G 连接的 VLAN 间路由问题

网络工程 路由
2022-02-05 02:18:55

我们有新的分支,我们将通过 4G 路由器“WAN 连接”和 L3 交换机连接它,如下图所示。

在此处输入图像描述

从 1-Branch Switch 我可以 ping 2-Branch Switch,但从 (PC-1) 我也无法 ping (2-Branch Switch) (PC-2)。

也许我错过了一些东西。

这是路由器和交换机conf。

*

*1-Router**

Gateway of last resort is 0.0.0.0 to network 0.0.0.0

S* 0.0.0.0/0 is directly connected, Tunnel1
10.0.0.0/8 is variably subnetted, 5 subnets, 3 masks
C 10.65.17.0/29 is directly connected, Vlan1
L 10.65.17.2/32 is directly connected, Vlan1
C 10.201.51.0/24 is directly connected, Cellular0
L 10.201.51.1/32 is directly connected, Cellular0
S 10.201.56.24/32 is directly connected, Cellular0
172.20.0.0/16 is variably subnetted, 2 subnets, 2 masks
C 172.20.218.196/30 is directly connected, Tunnel1
L 172.20.218.198/32 is directly connected, Tunnel1



**2-Router**

S* 0.0.0.0/0 is directly connected, Tunnel1
10.0.0.0/8 is variably subnetted, 5 subnets, 3 masks
C 10.66.17.0/29 is directly connected, Vlan1
L 10.66.17.2/32 is directly connected, Vlan1
C 10.201.51.0/24 is directly connected, Cellular0
L 10.201.51.2/32 is directly connected, Cellular0
S 10.201.56.24/32 is directly connected, Cellular0
172.20.0.0/16 is variably subnetted, 2 subnets, 2 masks
C 172.20.218.200/30 is directly connected, Tunnel1
L 172.20.218.202/32 is directly connected, Tunnel1



**1-Branch Switch**

ip routing



interface FastEthernet0/1
no switchport
ip address 10.65.17.1 255.255.255.248


interface FastEthernet0/3
switchport access vlan 10
switchport mode access


interface Vlan10
ip address 10.20.11.254 255.255.254.0


ip default-gateway 10.65.17.2
ip classless
ip route 0.0.0.0 0.0.0.0 FastEthernet0/1



**2-Branch Switch**

ip routing



interface FastEthernet0/1
switchport access vlan 11
switchport mode access


interface FastEthernet0/24
no switchport
ip address 10.66.17.1 255.255.255.248


interface Vlan11
ip address 10.30.11.1 255.255.255.0


ip default-gateway 10.66.17.2
ip classless
ip route 0.0.0.0 0.0.0.0 10.66.17.2

您的帮助将不胜感激

谢谢

2个回答

在每台路由器上,您需要将一条路由指向 L3 交换机后面的 VLAN。目前,所有非本地内容都指向隧道,从而为未连接到其中一个路由器的子网创建路由循环。

在所有路由器和 L3 交换机之间配置静态路由或使用路由协议。

此外,将每个路由器配置为另一个路由器的默认网关非常容易创建路由循环。您应该使用不同的路由或仅使用一个路由器作为另一个路由器的默认网关。通常,那是主要位置的那个。

路由器 1 和路由器 2 中的静态路由丢失。请在路由器中添加下面提到的路由并尝试从 PC1 ping 到 PC2 它应该可以工作.. 希望..

在路由器 1

IP route destination 10.30.11.0 subnetmask 25&.255.255.0 pointing towards gateway 10.201.51.2

在路由器 2 中

IP route destination 10.20.26.0 subnetmask 255.255.254.0 pointing towards gateway 10.201.51.1