Re: [問題] 網路連不出去問題 (兩張網卡)

看板Linux作者 (真相)時間14年前 (2011/05/06 14:16), 編輯推噓1(102)
留言3則, 2人參與, 最新討論串2/4 (看更多)
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 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 60.251.76.100

05/06 15:45, , 1F
把內網mask也改為255.255.255.0看看
05/06 15:45, 1F

05/09 11:06, , 2F
設255.255.255.0的話,就連不到內往的機器了.我的ip是
05/09 11:06, 2F

05/09 11:06, , 3F
192.168.3.x
05/09 11:06, 3F
文章代碼(AID): #1Dmv8-1l (Linux)
討論串 (同標題文章)
文章代碼(AID): #1Dmv8-1l (Linux)