網路連不出去問題 (兩張網卡) - Linux

Mason avatar
By Mason
at 2011-05-08T18:01

Table of Contents


ip_forward 功能有開嗎?

例:

# echo /proc/sys/net/ipv4/ip_forward

或是~~~~
sysctl.conf 檔內的 ip_forward 功能

※ 引述《nosrep (真相)》之銘言:
: nslookup 的結果...
: 如果我單用eth1是可以正常的, 但是eth0兩個介面一起開,就有問題
: [root@localhost ~]# nslookup www.google.com.tw
: ;; connection timed out; no servers could be reached
: ※ 引述《nosrep (真相)》之銘言:
: : 我的系統是 Linux, eth0是內網, eth1是外網.
: : 我用 ping的方式, dns server, 目的ip都是通的
: : 我想應該是轉譯的問題...
: : 但是系統的設定看似乎都是對的, routing table也沒什麼問題...
: : 哪位大大幫忙診斷一下~~XD
: : [root@localhost ~]# cat /etc/resolv.conf
: : ; generated by /sbin/dhclient-script
: : nameserver 168.95.1.1
: : nameserver 168.95.92.1
: : [root@localhost ~]# route -n
: : Kernel IP routing table
: : Destination Gateway Genmask Flags Metric Ref Use Iface
: : 192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
: : 169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth1
: : 192.168.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
: : 0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth1
: : eth0 Link encap:Ethernet HWaddr BC:AE:C5:4E:96:71
: : inet addr:192.168.26.1 Bcast:192.168.255.255 Mask:255.255.0.0
: : eth1(外網) Link encap:Ethernet HWaddr BC:AE:C5:4E:96:8A
: : inet addr:192.168.1.112 Bcast:192.168.1.255 Mask:255.255.255.0

--
Tags: Linux

All Comments

Quintina avatar
By Quintina
at 2011-05-09T02:16
我主機原本是 0, 後來改成 1 也還是不行
Edith avatar
By Edith
at 2011-05-11T06:05
主機原來是0, 後來改1也是fail
我記得這個設定應該做router or nat才需要

Ubuntu11 分割區超出磁碟超的問題

Irma avatar
By Irma
at 2011-05-08T11:36
各位大大 想請問一下,使用ubuntu11時, 發生and#34;分割區超出磁碟and#34;的問題時該怎麼解決呢??? 請看!!!! 1.磁碟公用程式的畫面: http://ppt.cc/3DMl (多出來了為知的and#34;可用空間 ...

process目前佔用的cpu core

Puput avatar
By Puput
at 2011-05-08T00:23
Hi, all! 我想查出某些 process 目前佔用的 cpu 核心是哪些 根據 man proc 裡的 /proc/[pid]/stat 項目中的 processor 我用 cat /proc/[pid]/stat | awk and#39;{print $39}and#39; 來達到目的 不 ...

以UPG306擷取NTSC影像for Cheese

Damian avatar
By Damian
at 2011-05-08T00:07
我是使用Fedroa14 利用Cheese作為播放程式 我有一個電視棒UPMOST UPG306 我是著用他擷取攝影機的影像 我發現如果攝影機的輸出格式為PAL格式時就能正確顯示影像 但我的攝影機如果輸出的格式為NTSC時影像就會被切割 切成兩個部份上半部與下半部 即將圖切割成約1:3 然後上半部的部份顯示 ...

請問eeepc 701安裝easy peasy 1.6問題

Wallis avatar
By Wallis
at 2011-05-07T14:02
大家好, 想請教一個問題 今天試著將eeepc 701安裝easy peasy 1.6時 RUN到68%時, 就會跑出一個[error 5] (input/output error) 我TRY了三次都是這樣 This is often due to a faulty CD/DVD disk or dr ...

Ubuntu11.04的emesene 2

Xanthe avatar
By Xanthe
at 2011-05-07T10:15
推 mike0608:有沒有人知道為啥最新版的emesene不會出現在notification 05/07 00:48 → mike0608:area裡面啊??已經改成all了 好像是emesene的問題 05/07 00:49 → mike0608:因為其他程式都不會 ...