如何設定routeing table 使A,B,C三方互通?
_________剛開始學習網路,以下是我自己設的,不曉得對不對_________________________
A route add 172.16.1.1 mask 255.255.255.255 1.1.1.254
B route add 172.16.1.254 mask 255.255.255.255 2.2.2.254
C route add 172.16.2.254 mask 255.255.255.255 3.3.3.254
左上route Route add 1.1.1.1 mask 255.255.255.255 1.1.1.254
Route add 172.16.2.254 mask 255.255.255.255 172.16.2.1
Route add 172.16.1.254 mask 255.255.255.255 172.16.1.1
右上route Route add 2.2.2.1 mask 255.255.255.255 2.2.2.254
Route add 172.16.3.254 mask 255.255.255.255 172.16.3.1
Route add 172.16.1.1 mask 255.255.255.255 172.16.1.254
下方Route Route add 3.3.3.1 mask 255.255.255.255 3.3.3.254
Route add 172.16.2.1 mask 255.255.255.255 172.16.2.254
Route add 172.16.3.1 mask 255.255.255.255 172.16.3.254
以Static Route為例:
A路由器設定
route add 2.2.2.0 mask 255.255.255.0 172.16.1.254 (到B的路由)
route add 3.3.3.0 mask 255.255.255.0 172.16.2.254 (到C的路由)
B路由器設定
route add 1.1.1.0 mask 255.255.255.0 172.16.1.1 (到A的路由)
route add 3.3.3.0 mask 255.255.255.0 172.16.3.254 (到C的路由)
C路由器設定
route add 1.1.1.0 mask 255.255.255.0 172.16.2.1 (到A的路由)
route add 2.2.2.0 mask 255.255.255.0 172.16.3.1 (到B的路由)
既然是routing table
請問你要用哪種方法去繞送
static routed
dynamic routed
router protocol RIP EIGRP OSPF
如果是static routed好了
A route add 172.16.1.1 mask 255.255.255.255 1.1.1.254
B route add 172.16.1.254 mask 255.255.255.255 2.2.2.254
光是這樣 a和b根本就不通
好歹也要改一下
A Router 172.16.1.1 255.255.255.0
B Router 172.168.1.254 255.255.255.0
至於你的 1.1.1.254 2.2.2.254 這是啥意思, 看不懂?