看板 Network 關於我們 聯絡資訊
: 我在設定ip後,再測試設定route : 我要讓總公司(192.168.1.0)與分公司(192.168.5~10.0/24)互通 : 我把總公司的防火牆的port設為192.168.2.254/30 : 銜接的cisco f0/0的port設為192.168.2.253/30 整個網路環境是怎麼設? HQ(192.168.1.0)<->(2.252/30) <--> ??(?) - Branch(192.168.5.0/24) 中間還有甚麼嗎? : : #conf t : #int f0/0 : #ip route 192.168.2.253 255.255.252.0 這個要在 global config mode 設,缺 next hop, 如果是要設 ip,照前面提的你 mask 也錯了 Router(config-if)#ip address 192.168.2.253 255.255.255.252 Router(config-if)#no shutdown <- enable this interface : : ctrl + z : : #conf t : #ip route 192.168.0.0 255.255.0.0 192.168.2.254 目的寫精確一點會比較好 : ※ 發信站: 批踢踢實業坊(ptt.cc) : ◆ From: 220.130.156.5 : ※ 編輯: sdu37 來自: 220.130.156.5 (04/27 13:05) : → wst2080:你 interface IP設定了沒有? 04/27 13:27 : → wst2080:show ip int bri 看看 04/27 13:28 : → sdu37:FastEthernet0/0 192.168.2.253 YES manual up 04/27 13:44 : → sdu37:FastEthernet0/1 172.31.62.78 YES manual admini 04/27 13:44 這個網段做甚麼的?..interface is down (use no shutdown to enable) -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 24.84.246.100
sdu37:int f0/0那我打錯了,我應該是要打ip address才對 04/27 16:44
sdu37:應該說192.168.2.253是對防火牆的DMZ PORT192.168.2.254 04/27 16:45
sdu37:而172.31.62.78是CISCO對外分公司的PORT 04/27 16:45
sdu37:但我不知為什麼我設完ip address與ip route後執行 04/27 16:46
sdu37:sh ip route會出現ateway of last resort is not set 04/27 16:47
zaknafein:整個config貼出來看看吧 04/27 16:59
infosec:link down時 route table不會show出來.. 04/28 13:23