两个路由器之间如何ping通(请问思科这个3台路由器怎么互相ping通)

小编:霸主 更新时间:2022-10-27

一、两个路由器之间如何ping通

两个路由没有经过设置的话,下辖终端之间是PING不通,因为两个路由属于两个网络。

但如果要实现互访(也就是你的PING通),也很简单,给两个路由做一个“桥接”就可以了!

桥接具体设置如下:

(权且将两个路由分成“路由A”和“路由B”,理论上,假设你的网络通过"路由A"连通外网,但实际上即使两个路由都连接或是“路由B”连通都无所谓,原理是一样的。

1,在路由A的LAN设置里开启DHCP服务,动态分配IP地址和DNS;

2,用电脑测试你准备连接“路由B”的那个LAN端口,看看IP地址,网关。

在开始运行中输入CMD,在跳出的DOS窗口中输入IPCONFIG -ALL就能看到了,记录下来,调试LINKSYS要用;

3,把路由A的这个LAN端口跟路由B的WAN端口连接起来。

进入路由B设置页面。

WAN设置使用IP网络,输入刚才你记录下来的IP地址和网关;激活无线网,SSID不要跟路由A的那个重复;LAN设置里开启DHCP服务自动分配IP地址和DNS。

保存设置。


二、请问思科这个3台路由器怎么互相ping通

router0配置:

en

conf t

int fa1/0

ip add 1.0.0.1 255.0.0.0

no shut

int fa0/0

ip add 192.168.1.1 255.255.255.0

no shut

int fa0/1

ip add 192.168.2.1 255.255.255.0

no shut

exit

rou rip

net 1.0.0.0 255.0.0.0

net 192.168.1.0 255.255.255.0

net 192.168.2.0 255.255.255.0

router1配置:

en

conf t

int fa1/0

ip add 2.0.0.1 255.0.0.0

no shut

int fa0/0

ip add 192.168.1.2 255.255.255.0

no shut

int fa0/1

ip add 192.168.3.2 255.255.255.0

no shut

exit

rou rip

net 2.0.0.0 255.0.0.0

net 192.168.1.0 255.255.255.0

net 192.168.3.0 255.255.255.0

router2配置:(图中接口IP标的有问题)

en

conf t

int fa1/0

ip add 3.0.0.1 255.0.0.0

no shut

int fa0/0

ip add 192.168.3.3 255.255.255.0

no shut

int fa0/1

ip add 192.168.2.3 255.255.255.0

no shut

exit

rou rip

net 3.0.0.0 255.0.0.0

net 192.168.2.0 255.255.255.0

net 192.168.3.0 255.255.255.0

静态路由配置如下:

R1:

ip rou 2.0.0.0 255.0.0.0 192.168.1.2

ip rou 192.168.3.0 255.0.0.0 192.168.1.2

ip rou 192.168.3.0 255.0.0.0 192.168.2.3 10

ip rou 3.0.0.0 255.0.0.0 192.168.2.3

R2:

ip rou 1.0.0.0 255.0.0.0 192.168.1.1

ip rou 192.168.2.0 255.0.0.0 192.168.1.1

ip rou 192.168.2.0 255.0.0.0 192.168.3.3 10

ip rou 3.0.0.0 255.0.0.0 192.168.3.3

R3:

ip rou 2.0.0.0 255.0.0.0 192.168.3.2

ip rou 192.168.1.0 255.0.0.0 192.168.2.1

ip rou 192.168.1.0 255.0.0.0 192.168.3.2 10

ip rou 1.0.0.0 255.0.0.0 192.168.2.1