在主路由中设置路由表
192.198.1.0 255.255.255.255 192.168.2.1
192.198.1.0 255.255.255.255 192.168.3.1
192.198.2.0 255.255.255.255 192.168.1.1
192.198.2.0 255.255.255.255 192.168.3.1
192.198.3.0 255.255.255.255 192.168.1.1
192.198.3.0 255.255.255.255 192.168.2.1
如果你开启了NAT服务,不同的路由器的内部网络是没法访问的。你可以使用DMZ技术暴露内网IP地址,然后在不同的路由器上设置对方内网的IP网段的静态IP地址。
A
ip route 192.168.2.0 255.255.255.0 192.168.1.2
ip route 1921.68.3.0 255.255.255.0 192.168.1.3
B
ip route 192.168.1.0 255.255.255.0 192.168.1.1
ip route 192.168.3.0 255.255.255.0 192,168.1.1
ip route 0.0.0.0 0.0.0.0 192.168.1.1
C
ip route 192.168.1.0 255.255.255.0 192.168.1.1
ip route 192.168.2.0 255.255.255.0 192.168.1.1
ip route 0.0.0.0 0.0.0.0.0 192.168.1.1
A
ip route 192.168.2.0 255.255.255.0 192.168.1.2
ip route 1921.68.3.0 255.255.255.0 192.168.1.3
B
ip route 192.168.1.0 255.255.255.0 192.168.1.1
ip route 192.168.3.0 255.255.255.0 192,168.1.3
ip route 0.0.0.0 0.0.0.0 192.168.1.1
C
ip route 192.168.1.0 255.255.255.0 192.168.1.1
ip route 192.168.2.0 255.255.255.0 192.168.1.2
ip route 0.0.0.0 0.0.0.0.0 192.168.1.1