LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-12-2003, 11:10 AM   #1
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,672

Rep: Reputation: 55
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
 
Old 12-12-2003, 12:33 PM   #2
Technoslave
Member
 
Registered: Dec 2003
Location: Northern VA
Posts: 493

Rep: Reputation: 30
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.
 
Old 12-14-2003, 10:34 AM   #3
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,672

Original Poster
Rep: Reputation: 55
Quote:
Originally posted by Technoslave
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.
Hi,

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
 
Old 12-14-2003, 05:44 PM   #4
jemmrich
LQ Newbie
 
Registered: Dec 2003
Location: Canada
Distribution: Debian
Posts: 7

Rep: Reputation: 0
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
 
Old 12-17-2003, 09:26 PM   #5
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,672

Original Poster
Rep: Reputation: 55
Quote:
Originally posted by jemmrich
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
Hi James,

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
 
Old 12-18-2003, 01:50 AM   #6
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 3,591

Rep: Reputation: 96
Quote:
Originally posted by satimis



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)

B.R.
satimis
I read a post on the Debian User mailing list in the last week with this same problem IIRC the solution was:
Code:
chattr + /etc/resolv.conf
chattr - /etc/resolv.conf
Just searched the thread in the archive http://lists.debian.org/debian-user/.../msg05484.html
 
Old 12-18-2003, 05:31 AM   #7
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,672

Original Poster
Rep: Reputation: 55
Quote:
Originally posted by HappyTux
I read a post on the Debian User mailing list in the last week with this same problem IIRC the solution was:
Code:
chattr + /etc/resolv.conf
chattr - /etc/resolv.conf
Just searched the thread in the archive http://lists.debian.org/debian-user/.../msg05484.html
Hi,

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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Debian can't connect to Internet oopsnic Linux - Hardware 1 03-11-2005 05:27 PM
XP Box won't connect to internet thru RH9 Box (firewall/dhcpd), it can only ping fire Rhapsodic Linux - Networking 4 07-10-2004 03:02 PM
box don't connect to internet ktk Linux - Networking 5 03-06-2004 10:26 AM
Debian Linux - Configuring Ethernet To Connect To The Internet acidbreez Linux - Newbie 9 09-20-2003 07:37 AM
Debian Linux - Configuring Ethernet To Connect To The Internet acidbreez Linux - Networking 4 08-11-2003 12:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:47 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration