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 01-09-2015, 08:24 PM   #1
Garrett85
Member
 
Registered: Jan 2011
Posts: 332

Rep: Reputation: 6
Debian, not getting an IP


I recently installed a headless Debian OS on my desktop and everything was working just fine. But now the Debian server can't reach the internet(can't ping www.google.com) but I can ping my router and my Mint desktop just fine, and I can also ping my Debian server from Mint. I was able to ssh into my Debian server by simply typing ssh garrett@media-server but now I have to manually type in the IP address which I don't like because that can change as my router sees fit. Any ideas or suggestions?

auto lo
iface lo inet loopback

allow-hotplug eth0
iface eth0 inet dhcp
-----------------------

Not I havent changed the file and it was connected to the internet just fine. p
 
Old 01-09-2015, 08:34 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,455
Blog Entries: 28

Rep: Reputation: 6175Reputation: 6175Reputation: 6175Reputation: 6175Reputation: 6175Reputation: 6175Reputation: 6175Reputation: 6175Reputation: 6175Reputation: 6175Reputation: 6175
What are contents of the /etc/network/interfaces file?

You might try a traceroute; that will indicate where connectivity is failing. Then post the output here, being sure to surround it with "code" tags (for readability) that become available when you click the "Go Advanced" button just to the right of the "Post" button at the bottom of the compose post window.

Code:
traceroute [some domain or ip]
 
1 members found this post helpful.
Old 01-10-2015, 12:06 AM   #3
Teufel
Member
 
Registered: Apr 2012
Distribution: Gentoo
Posts: 616

Rep: Reputation: 142Reputation: 142
Can you ping google by IP?
What does
Code:
ping 8.8.8.8
shows?
If ping gets the response from this IP (this IP belongs google), it means your dns server incorrect. Check out /etc/resolv.conf
 
1 members found this post helpful.
Old 01-10-2015, 10:41 AM   #4
Garrett85
Member
 
Registered: Jan 2011
Posts: 332

Original Poster
Rep: Reputation: 6
Now it's working, I changed nothing, go figure. I did actually already post the contents of /etc/network/interfaces
I think my network card might be going bad.
 
Old 01-10-2015, 11:24 AM   #5
Teufel
Member
 
Registered: Apr 2012
Distribution: Gentoo
Posts: 616

Rep: Reputation: 142Reputation: 142
It may be router issue, not ethernet card.
I have the same here: my router's dns solver doesn't work. If I set "nameserver 192.168.1.1" (in /etc/resolv.conf) I can't access internet. So I edited my resolv.conf file to "nameserver 8.8.8.8"
It bypasses router's dns and uses Google dns server instead.
 
1 members found this post helpful.
  


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
Asus k53tk-sx012v (win7 & Debian 7) to replace Debian 7 with slackware 14 amosse Linux - Newbie 1 09-05-2013 12:55 AM
LXer: How To Upgrade Debian Lenny (Debian 5.0) To Squeeze (Debian 6.0) On Xen VPS LXer Syndicated Linux News 0 03-09-2011 05:20 AM
LXer: Interview with Debian Developer RaphaŽl Hertzog: is Ubuntu beneficial for Debian? LXer Syndicated Linux News 0 12-03-2010 05:20 PM
Problem while apt-get update on debian etch, cannot reach security.debian.org sarajevo Debian 4 06-08-2008 11:59 AM
grub issues: dual boot Debian i386 & Debian amd64 ErrorBound Debian 1 03-09-2007 07:41 PM

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

All times are GMT -5. The time now is 03:19 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
Open Source Consulting | Domain Registration