iT邦幫忙

0

CISCO ROUTER 網路連線

匿名 2013-03-22 10:50:2511069 瀏覽


我現在是要設定ROUTER
Fa0/0 假設是140.134.A.B
Eth1/0 設192.168.0.254
PC1 PC0 為192.168.0.11(10)
對外使用PAT
GATEWAY 是140.134.A.254
DNA 是140.134.C.1
ROUTER 型號是2600
該如何設定?
PAT設定都可以 但是要連到外部就都無法

圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

2 個回答

8
willhomwtw
iT邦研究生 5 級 ‧ 2013-03-22 11:55:10
最佳解答

gateway 要設定...pc 端 :192.168.0.254 dns : 168.95.1.1
router 端..要下 default route 指到 140.134.1.254 ....

這樣應該就可以了

看更多先前的回應...收起先前的回應...
匿名 檢舉

還是不行
PC IP 192.168.0.10
mask 255.255.255.0
gateway 192.168.0.254
dns 168.95.1.1
router打了這些指令
int fa0/
ip add 140.134.A.B 255.255.255.0
ip nat outside
no sh
int e1/0
ip add 192.168.0.254 255.255.255.0
ip nat inside

ip nat pool nat1 140.134.A.B 140.134.A.B netmask 255.255.255.0
access-list 1 permit 192.168.0.0 0.0.0.255
ip nat inside source list 1 pool nat1 overload
ip route 0.0.0.0 0.0.0.0 140.134.1.254

要PING 8.8.8.8會出現
Reply from 192.168.0.254: Destination host unreachable

hcsvieken iT邦研究生 4 級 ‧ 2013-03-25 08:44:18 檢舉

你家的公有ip有255這麼多嗎? 140.134.A.B 255.255.255.0 , 另外 可以開debug功能除錯,決解後在關掉。

xxoo1122 iT邦新手 3 級 ‧ 2013-04-08 18:44:55 檢舉

你先在router上
ping 168.95.1.1
如果有通再
ping 168.95.1.1 source 192.168.0.254
如果帶source 192.168.0.254 不通代表nat有問題。

如果一開始Ping 168.95.1.1就沒通就代表你對外面根本不通。

hcsvieken iT邦研究生 4 級 ‧ 2013-04-30 08:46:57 檢舉

pc 用 ping 192.168.0.254 ,route ping 168.95.1.1看看有沒有通. 或是pc 用tracert 168.95.1.1

0
ce0133
iT邦新手 4 級 ‧ 2013-09-06 10:03:02

ip nat inside source list 1 pool nat1 overload

ip nat inside source list 1 interface FA0/0 overload

ip nat inside source static 192.168.0.11 140.134.A.B

加入這二行看看

我要發表回答

立即登入回答