兩個路由器之間如何ping通(請問思科這個3臺路由器怎么互相ping通)
一、兩個路由器之間如何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