看板 Network 關於我們 聯絡資訊
因對cisco設定不熟,所以用Cisco Packet Tracer測試看看 我在設定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 #conf t #int f0/0 #ip route 192.168.2.253 255.255.252.0 ctrl + z #conf t #ip route 192.168.0.0 255.255.0.0 192.168.2.254 ctrl + z copy run start 請問這樣就可以了嗎?還有什麼指令忘了下 再請問在conf t裡下no shut是什麼意思? 但我在設定ip route後,我打sh ip route確沒有看到任何設定?是我步驟有錯嗎? -- ※ 發信站: 批踢踢實業坊(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
sdu37:它後面的protocol都是 down的 04/27 13:45
sdu37:我不知我這樣設定有沒有誤 04/27 13:45
wst2080:設定一定是錯的啊 介面下 一定不支援 ip route 指令 04/27 14:54
wst2080:ip route 這指令 要在 Global config 04/27 14:55
wst2080:而不是在 interface config 裡 下達 ip route 指令 04/27 14:56
sdu37:我在Router#ip route add..我按tab沒有反應, 04/27 14:59
sdu37:Router(config)#ip route 我按TAB鍵,會出現可打的訊息 04/27 15:00
sdu37:回W大,我是在conf t下設定,我沒有到int f0/0裡設定 04/27 15:14
zaknafein:嗯? 你拉的設備是哪一台? 04/27 16:20
zaknafein:而且你總公司netmask多少呀? 分公司5個c mask設24? 04/27 16:23
sdu37:我是拉cisco 1841來作測試,我們應該說是13個分公司 04/27 16:37
sdu37:各站都是192.168.X.X/24,都是透過MPLS VPN連回總公司 04/27 16:38
wst2080:ip route add is Linux or Windows OS's Command 04/27 16:57
wst2080:show ip route 是列出該路由器的路由表 04/27 16:58
wst2080:若完全沒有輸出 很有可能連 ip routing 功能沒有開啟 04/27 16:58