My Debian box can't connect Internet
Hi folks,
My Debian box can't connect Internet, Broadband connected. # ifconfig showed connecting ISP I played around with following files without a solution; # cat /etc/network/ifstate lo=lo eth0=eth0 # cat /etc/network/interfaces # /etc/network/interfaces -- configuration file for ifup(8), ifdown(8) # The loopback interface auto lo iface lo inet loopback # The first network card - this entry was created during the Debian installationauto eth0 iface eth0 inet dhcp # cat /etc/network/spoof-protect LOCAL_IPS="127.0.0.1/8" LOCAL_IFACES="eth0 eth1 ppp0" (Remark: having tried; #LOCAL_IPS="127.0.0.1/8" #LOCAL_IFACES="eth0 eth1 ppp0" LOCAL_IFACES="eth0 ppp0" After each change made # /etc/init.d/networking restart Reconfiguring network interfaces: done) # cat /etc/network/interfaces.dpkg-new # (no output, an empty file) # cat /etc/network/options ip_forward=no spoofprotect=yes syncookies=no (having tried; ip_forward=yes spoofprotect=no syncookies=yes) # ping -c 3 www.yahoo.com ping: unknown host www.yahoo.com # /etc/init.d/iptables stop Aborting iptables load: unknown ruleset, "inactive". iptables has not been configured yet Kindly advise how to fix the problem. Thanks in advance. B.R. satimis |
netstat -rn
is the line that begins with: 0.0.0.0 pointing to the correct gateway? Do you have entries in your /etc/resolv.conf file? grep hosts /etc/nsswitch.conf Do you have something looking like this: hosts: files dns These are 3 good starting points. Usually, to make sure I'm connected to the net, I try to ping my default gateway first. |
Quote:
Thanks for your advice. netstat -rn Destination Gateway Genmask Flags MSS Window irtt Iface 202.123.71.254 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0 192.168.0.2 0.0.0.0 255.255.255.255 UH 0 0 0 sl0 192.168.2.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 0.0.0.0 192.168.2.1 0.0.0.0 UG 0 0 0 eth0 0.0.0.0 0.0.0.0 0.0.0.0 U 0 0 0 sl0 Following discoveries were found 1) # pppoe pppoe: Timeout waiting for PADO packets (pppoe could not start. It can be started at time of configuring network card after installation of Debian completed) 2) /etc/resolv.conf could not be edited even as ROOT (the file can be opened and its content can be edited. But saving is impossible) # cat /etc/resolv.conf search domain.com\000 nameserver 192.168.2.1 # ls -l /etc/resolv.conf -rw-r--r-- 1 root root B.R. satimis |
Hi satimis, if you never got this working yet, ive had a similar prob...
Check out my other post @ : http://www.linuxquestions.org/questi...833#post647833 Hope this helps, James |
Quote:
Thanks for your advice. Steps taken by me as follows; 1) Download "fdhcpcd_1.3.22pl4-9_i386.deb" and kept in /tmp 2) apt-get --purge remove pump Could not find package pump 3) dpkg -i /tmp/fdhcpcd_1.3.22pl4-9_i386.deb Conflict with dhcp-client 4) apt-get --purge remove dhcp-client 5) dpkg -i /tmp/fdhcpcd_1.3.22pl4-9_i386.deb 6) ifdown eth0 ifup eth0 7) pon dsl-provider 8) ping -c 3 www.yahoo.com host unknow Rebooted PC. Result was the same, unable to connect Internet, ISP connected. B.R. satimis |
Quote:
Code:
chattr + /etc/resolv.conf |
Quote:
Thanks for your advice. The main problem is Debian box cut-off from outside World unable to connect to Internet disregarding connection to ISP made. That was my thread. It is very strange after executing # chattr = /etc/resolv.conf the file 'resolv.conf' can be edited. But it changed back to its original content before edition if issuing # pon dsl-provider I tried several days without solution. B.R. satimis |
All times are GMT -5. The time now is 07:33 PM. |