LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 05-19-2010, 07:16 PM   #1
JosephS
Member
 
Registered: Jun 2007
Distribution: Debian Jessie, Bunsenlabs
Posts: 586

Rep: Reputation: 38
Can't connect to Internet


Using Debian Lenny

I am having problems with my internet connection the last couple of days
I'm not sure what went wrong and what to do about it. This is some
information I thought might be useful:

Code:
/etc/resolv.conf
domain cg.shawcable.net
search cg.shawcable.net
nameserver 64.59.135.133
nameserver 64.59.135.135
nameserver 64.59.128.120

Code:
/etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
allow-hotplug eth1
iface eth1 inet dhcp
hostname Debian

Code:
ethtool eth1
Settings for eth1:
Supported ports: [ TP ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Supports auto-negotiation: Yes
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Advertised auto-negotiation: Yes
Speed: Unknown! (65535)
Duplex: Unknown! (255)
Port: Twisted Pair
PHYAD: 0
Transceiver: internal
Auto-negotiation: on
Supports Wake-on: umbg
Wake-on: g
Current message level: 0x00000007 (7)
Link detected: no
 
Old 05-19-2010, 07:36 PM   #2
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
What are the problems? What type of card (look at lspci)? ARe there any errors in dmesg or syslog?
 
Old 05-19-2010, 08:21 PM   #3
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid/RPIOS
Posts: 4,886
Blog Entries: 28

Rep: Reputation: 533Reputation: 533Reputation: 533Reputation: 533Reputation: 533Reputation: 533
Can you ping any site? try ping 209.85.225.147
Any dhcp errors when you boot?
What network card, take a look at lspci -nn

My /etc/network/interfaces:
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo eth0
iface lo inet loopback

allow-hotplug eth0
iface eth0 inet dhcp
 
Old 05-20-2010, 05:46 AM   #4
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
Output from ifconfig and route -n would help too. If you have a gateway configured, can you ping it?
 
Old 05-20-2010, 02:02 PM   #5
JosephS
Member
 
Registered: Jun 2007
Distribution: Debian Jessie, Bunsenlabs
Posts: 586

Original Poster
Rep: Reputation: 38
Below is the info I had yesterday without a connection:
I could connect with XP on another partition, so I know it
wasn't the ISP.
Today I have a connection. I don't know what is happening. This
has happened a couple of times now. I haven't changed my
connections physically or changed the files on my computer.
Can anyone explain this? I would like to prevent this in
the future.

Thanks

Quote:
Code:
lspci -nn
02:0c.0 Ethernet controller [0200]: Intel Corporation 82540EM Gigabit Ethernet Controller [8086:100e] (rev 02)

Code:
ping 209.85.225.147
joe@Debian:~$ ping 209.85.225.147
PING 209.85.225.147 (209.85.225.147) 56(84) bytes of data.
From 174.0.169.113 icmp_seq=2 Destination Host Unreachable
From 174.0.169.113 icmp_seq=3 Destination Host Unreachable
From 174.0.169.113 icmp_seq=4 Destination Host Unreachable
From 174.0.169.113 icmp_seq=6 Destination Host Unreachable
From 174.0.169.113 icmp_seq=7 Destination Host Unreachable
From 174.0.169.113 icmp_seq=8 Destination Host Unreachable
Code:
joe@Debian:~$ ifconfig
eth0 Link encap:Ethernet HWaddr 00:80:c6:fb:8f:16
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:1 dropped:0 overruns:0 carrier:1
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:16 Base address:0xec00

eth1 Link encap:Ethernet HWaddr 00:08:74:dc:12:35
inet addr:174.0.169.113 Bcast:255.255.255.255 Mask:255.255.252.0
UP BROADCAST RUNNING MULTICAST MTU:576 Metric:1
RX packets:743314 errors:0 dropped:0 overruns:0 frame:0
TX packets:40339 errors:0 dropped:0 overruns:0 carrier:0
collisions:251 txqueuelen:100
RX bytes:62071378 (59.1 MiB) TX bytes:5280528 (5.0 MiB)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:335 errors:0 dropped:0 overruns:0 frame:0
TX packets:335 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:109215 (106.6 KiB) TX bytes:109215 (106.6 KiB)

Code:
joe@Debian:~$ route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
174.0.168.0 0.0.0.0 255.255.252.0 U 0 0 0 eth1
0.0.0.0 174.0.168.1 0.0.0.0 UG 0 0 0 eth1
 
Old 05-28-2010, 09:44 AM   #6
JosephS
Member
 
Registered: Jun 2007
Distribution: Debian Jessie, Bunsenlabs
Posts: 586

Original Poster
Rep: Reputation: 38
I think I found the problem. Network Manger was choosing the
wrong card: eth0 instead of eth1. I can't find a way to change
this. I could have a connection and then I would lose it
(without rebooting). I shut off Network Manager and then ran
dhclient and got a connection; also have a connection after
reboot, so I hope things will be ok.

Thanks
 
Old 05-28-2010, 11:14 PM   #7
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid/RPIOS
Posts: 4,886
Blog Entries: 28

Rep: Reputation: 533Reputation: 533Reputation: 533Reputation: 533Reputation: 533Reputation: 533
If you are not using wireless you really do not need network-manager. I would get rid of it.
 
Old 05-29-2010, 12:53 AM   #8
JosephS
Member
 
Registered: Jun 2007
Distribution: Debian Jessie, Bunsenlabs
Posts: 586

Original Poster
Rep: Reputation: 38
I think I spoke to soon. I started having problems again. Also having
problems with my XP installation. I think I will try another
network card. Maybe the drivers are buggy with the onboard card. The
connection will come and go even though I don't reboot.

Thanks for help
 
Old 05-29-2010, 03:09 AM   #9
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
The ping output "From 174.0.169.113 icmp_seq=2 Destination Host Unreachable" says your computer does not have a connection with the gateway 174.0.168.1. Not surprising unless you are using an unconventional netmask because one is on 174.0.169.0 network and the other on 174.0.168.0 network. If there are other computers connecting with the gateway OK then the problem is with the link between your computer and the gateway (including possibly configuration at either end that stops the link working). If there are no other computers connecting with the gateway then the problem may be with the gateway. You can test the connection with the gateway by ping 174.0.168.1.
 
Old 05-29-2010, 02:52 PM   #10
JosephS
Member
 
Registered: Jun 2007
Distribution: Debian Jessie, Bunsenlabs
Posts: 586

Original Poster
Rep: Reputation: 38
I tried ping 174.0.168.1
I get: Destination Host unreachable
What can I do to fix this?

I have a single desktop computer connected to the Internet with a modem.
 
Old 05-29-2010, 03:10 PM   #11
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
Quote:
I started having problems again. Also having
problems with my XP installation.
Windows doesn't work, linux doesn't work.

So that neatly narrows down the problem to your ISP, modem/router or cables. It's not the OS you are using.
 
  


Reply



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
Kubuntu - Can't connect to the internet, but can connect to the LAN KellyT Linux - Networking 1 11-12-2009 04:17 AM
Able to connect to default Gateway, Unable to connect to internet Dumb.Coder Linux - Newbie 11 04-14-2009 04:22 AM
connect to internet trough wireless others connect to me with lan Amir Menesy Linux - Wireless Networking 1 11-13-2007 08:28 PM
how i connect (bridging) two internet connection and how to use that both the connect karthi26 Linux - Newbie 1 08-26-2007 03:10 AM
can't connect to the internet:linux dont read my internet address droplsh Linux - General 1 02-29-2004 07:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 09:23 AM.

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
Open Source Consulting | Domain Registration