为我最后一年的项目课程建立一个项目

网络工程 路由 gns3
2022-02-24 12:32:00

拓扑

我正在为我最后一年的项目课程构建这个项目。在这里,有一个云,所有端口都被桥接了..最近的路由器通过 dhcp 从云中获取了 IP。

r1、r2、r3 与他们连接的路由器联系,但 r4、r5、r6 无法通过互联网相互联系。我现在能做什么??

所有配置:-

                                  ROUTER 1: - 

interface FastEthernet0/0
 ip address dhcp
ip nat outside
no shutdown
interface FastEthernet1/0
 ip address 192.168.100.1 255.255.255.0
ip nat inside
no shutdown
ip nat inside source list 1 interface FastEthernet0/0 overload
access-list 1 permit any
ip domain-lookup
ip name-server 192.168.0.1 ( which is my wifi/cloud/internet ip address)

R1#ping google.com

翻译“google.com”...域服务器 (192.168.0.1) [OK]

向 172.217.31.206 发送 5 个 100 字节的 ICMP Echo,超时为 2 秒:!!!!!!

成功率为 100% (5/5),往返 min/avg/max = 56/101/176 ms

                              ROUTER2: - 

interface FastEthernet0/0
 ip address dhcp
 ip nat outside
no shutdown
interface FastEthernet1/0
 ip address 192.168.101.1 255.255.255.0
 ip nat inside
no shutdown
ip nat inside source list 1 interface FastEthernet0/0 overload
access-list 1 permit any
ip domain-lookup
ip name-server 192.168.0.1 ( which is my wifi/cloud/internet ip address)

R2#ping google.com

翻译“google.com”...域服务器 (192.168.0.1) [OK]

向 172.217.31.206 发送 5 个 100 字节的 ICMP Echo,超时为 2 秒:!!!!!!

成功率为 100% (5/5),往返 min/avg/max = 56/101/176 ms

                                   ROUTER 6: - 

interface FastEthernet1/0
 ip address 192.168.100.10 255.255.255.0
no shutdown
ip route 0.0.0.0 0.0.0.0 192.168.100.1
ip domain-lookup
ip name-server 192.168.0.1 ( which is my wifi/cloud/internet ip address)

R6#ping google.com

翻译“google.com”...域服务器 (192.168.0.1) [OK]

向 172.217.31.206 发送 5 个 100 字节的 ICMP Echo,超时为 2 秒:!!!!!!

成功率为 100% (5/5),往返 min/avg/max = 56/101/176 ms

R6#ping 192.168.101.10(路由器5 ip地址)

键入转义序列以中止。向 192.168.101.10 发送 5 个 100 字节的 ICMP Echo,超时为 2 秒:..... 成功率为 0% (0/5)

                                       ROUTER 5:- 

interface FastEthernet1/0
 ip address 192.168.101.10 255.255.255.0
no shutdown
ip route 0.0.0.0 0.0.0.0 192.168.101.1
ip domain-lookup
ip name-server 192.168.0.1 ( which is my wifi/cloud/internet ip address)

R5#ping google.com

翻译“google.com”...域服务器 (192.168.0.1) [OK]

向 172.217.31.206 发送 5 个 100 字节的 ICMP Echo,超时为 2 秒:!!!!!!

成功率为 100% (5/5),往返 min/avg/max = 160/175/180 ms

R5#ping 192.168.100.10(路由器6 ip地址)

向 192.168.100.10 发送 5、100 字节的 ICMP Echo,超时为 2 秒:......

成功率为 0% (0/5)

路由器 3 的配置与路由器相同。1,2 & 路由器 4 配置与路由器 5,6 相同。

现在我可以按照哪个过程在路由器 4 和 5 和 6 之间进行 ping 操作???

1个回答

您需要设置静态路由或使用路由协议(OSPF、RIP,...),以使所有路由器能够相互了解远程子网的位置。

PS(配置更具可读性):您似乎在 R1/2/3 外部接口上获取 NAT。这反过来又要求您在站点之间创建 (VPN) 隧道以进行透明寻址。