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

By Mason
at 2011-05-08T18:01
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

By Quintina
at 2011-05-09T02:16
at 2011-05-09T02:16

By Edith
at 2011-05-11T06:05
at 2011-05-11T06:05
Related Posts
Ubuntu11 分割區超出磁碟超的問題

By Irma
at 2011-05-08T11:36
at 2011-05-08T11:36
process目前佔用的cpu core

By Puput
at 2011-05-08T00:23
at 2011-05-08T00:23
以UPG306擷取NTSC影像for Cheese

By Damian
at 2011-05-08T00:07
at 2011-05-08T00:07
請問eeepc 701安裝easy peasy 1.6問題

By Wallis
at 2011-05-07T14:02
at 2011-05-07T14:02
Ubuntu11.04的emesene 2

By Xanthe
at 2011-05-07T10:15
at 2011-05-07T10:15