LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 10-25-2009, 11:14 PM   #1
RandomZero
LQ Newbie
 
Registered: Oct 2009
Posts: 15

Rep: Reputation: 0
intranet works, internet doesn't


Weird problem, but it happens.

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

# The primary network interface
auto eth0
iface eth0 inet static
address 192.168.1.15
network 192.168.1.1
netmask 255.255.255.0
broadcast 192.168.1.255
gateway 192.168.1.1
dns-nameserver 4.2.2.2
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback
Last night I had this same issue. I'm connected using SSH, even VNC works, but I can't route to the internet. Both boxes are connected to the same router (Shitty Netgear WPN824v2 wireless router), obviously it's working as I am able to post this. I can access the network shares from one pc to another, I can access the router website.. But I can't connect to the internet. iptables hasn't been configured apart from the default settings so I don't think that would be an issue..

Any reason why this wouldn't be working?

I do have 3 NIC's (Onboard = eth0, ethernet NIC and wireless NIC are both installed in the pc but not set up yet)

Last edited by RandomZero; 10-25-2009 at 11:42 PM.
 
Old 10-25-2009, 11:54 PM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
Is that network correct ? ... I would have thought it should be 192.168.1.0 ..

cheers
 
Old 10-25-2009, 11:59 PM   #3
RandomZero
LQ Newbie
 
Registered: Oct 2009
Posts: 15

Original Poster
Rep: Reputation: 0
I'm not entirely sure what "network" is supposed to be.. I was just googling possible configs and one seemed to have it in there so I threw it in mine.

I did however just change it
currently reads:
Code:
# The primary network interface
auto eth0
iface eth0 inet static
        address 192.168.1.15
        network 192.168.1.0
        netmask 255.255.255.0
        gateway 192.168.1.1

Also, seems to be just a DNS issue.
ping 4.2.2.2 works, but ping google.com does not. Which would explain why intranet works, and internet does not.
I know the dns server I had specified works, as I've used the same ones for a good 5 years now (even on this box..)

Last edited by RandomZero; 10-26-2009 at 12:02 AM.
 
Old 10-26-2009, 12:10 AM   #4
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
Can you perform a 'netstat -nr' and post the output ? .. that will show us the routing table

Is the dns server yours or an ISP one ?

cheers

Last edited by kbp; 10-26-2009 at 12:16 AM.
 
Old 10-26-2009, 12:13 AM   #5
RandomZero
LQ Newbie
 
Registered: Oct 2009
Posts: 15

Original Poster
Rep: Reputation: 0
Code:
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
192.168.1.0     0.0.0.0         255.255.255.0   U         0 0          0 eth0
0.0.0.0         192.168.1.1     0.0.0.0         UG        0 0          0 eth0
 
Old 10-26-2009, 12:19 AM   #6
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
Looks good.. can you query any other dns servers ?
 
Old 10-26-2009, 12:21 AM   #7
RandomZero
LQ Newbie
 
Registered: Oct 2009
Posts: 15

Original Poster
Rep: Reputation: 0
ServU:~# ping google.com
ping: unknown host google.com
ServU:~# ping linuxquestions.org
ping: unknown host linuxquestions.org
ServU:~# ping yahoo.com
ping: unknown host yahoo.com
ServU:~# ping fox.com
ping: unknown host fox.com






Just noticed as I was rebooting the pc, the winbind daemon is failing to start. Quick google search shows it's used for resolving names from NT servers.. Would this have any affect on the DNS?

Last edited by RandomZero; 10-26-2009 at 12:23 AM.
 
Old 10-26-2009, 12:26 AM   #8
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
Is there another dns server you can query other than 4.2.2.2 ?

eg. 'dig @anotherdnsserver www.google.com'
 
Old 10-26-2009, 12:29 AM   #9
RandomZero
LQ Newbie
 
Registered: Oct 2009
Posts: 15

Original Poster
Rep: Reputation: 0
ping 4.2.2.4 google.com
ping: unknown host google.com
 
Old 10-26-2009, 12:32 AM   #10
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
I don't think thats a valid command mate... try 'dig @4.2.2.3 www.google.com'
 
Old 10-26-2009, 12:35 AM   #11
RandomZero
LQ Newbie
 
Registered: Oct 2009
Posts: 15

Original Poster
Rep: Reputation: 0
oh snap
Code:
 dig @4.2.2.3 www.google.com

; <<>> DiG 9.5.1-P3 <<>> @4.2.2.3 www.google.com
; (1 server found)
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 59088
;; flags: qr rd ra; QUERY: 1, ANSWER: 7, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;www.google.com.                        IN      A

;; ANSWER SECTION:
www.google.com.         35981   IN      CNAME   www.l.google.com.
www.l.google.com.       106     IN      A       64.233.169.103
www.l.google.com.       106     IN      A       64.233.169.104
www.l.google.com.       106     IN      A       64.233.169.105
www.l.google.com.       106     IN      A       64.233.169.106
www.l.google.com.       106     IN      A       64.233.169.147
www.l.google.com.       106     IN      A       64.233.169.99

;; Query time: 50 msec
;; SERVER: 4.2.2.3#53(4.2.2.3)
;; WHEN: Mon Oct 26 01:33:56 2009
;; MSG SIZE  rcvd: 148
ping 4.2.2.3 works, so I figured it'd work for a url as well.

But either way, even with this new development, I still cannot route to websites..
 
Old 10-26-2009, 12:40 AM   #12
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
That server seems to be working so change your network config accordingly then retest net access
 
Old 10-26-2009, 12:50 AM   #13
RandomZero
LQ Newbie
 
Registered: Oct 2009
Posts: 15

Original Poster
Rep: Reputation: 0
Used "dns-nameserver 4.2.2.1 4.2.2.2 4.2.2.3 4.2.2.4" for good measure
Then "/etc/init.d/networking restart"

Samething, still can't route
 
Old 10-26-2009, 01:05 AM   #14
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
Try testing them individually with dig as before and remove any that don't respond from your network config. After that, if you can successfully perform name resolution at the command line try this:

'wget http://www.google.com/'
 
Old 10-26-2009, 01:08 AM   #15
RandomZero
LQ Newbie
 
Registered: Oct 2009
Posts: 15

Original Poster
Rep: Reputation: 0
Tried them all, they all work.

Code:
ServU:~# wget http://www.google.com/
--2009-10-26 02:07:46--  http://www.google.com/
Resolving www.google.com... failed: Name or service not known.
wget: unable to resolve host address `www.google.com'
 
  


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
Mdv2009: Intranet works but internet stopped working Sinedie Linux - Desktop 2 10-18-2008 02:05 PM
[SOLVED] Linux cisco vpn works everywhere except from my intranet dereut Linux - Networking 0 09-22-2005 03:58 AM
FTP behind router. Only Intranet works.. Mega Man X Linux - Networking 6 09-07-2004 07:05 PM
dhcp...works in XP, but in Red Hat 9 can't get out of intranet hollering Linux - Networking 0 12-01-2003 08:36 AM
Intranet computers cannot see internet (need immediate help) arobinson74 Linux - Networking 3 04-01-2003 09:24 AM

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

All times are GMT -5. The time now is 03:41 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