LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 11-28-2009, 04:13 AM   #1
dvdljns
Member
 
Registered: Sep 2003
Posts: 210

Rep: Reputation: 30
linux box not working with netgear router


I have a netgear router with both windows and linux connected to it. my windows works good but the ubuntu linux does not work. the netgear router assigns it an ip but does not show it is connected and does not let it access the internet. I do not want to put it in a dmz zone. does anyone know why it is not working with the router.
 
Old 11-28-2009, 04:20 AM   #2
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
What exactly do you mean by "does not work"? What is the Netgear router's IP address? Please post the output from
Code:
ifconfig
route
ping <Netgear router's IP address>
ping 75.126.162.205
nslookup linuxquestions.org
ping linuxquestions.org
 
Old 11-28-2009, 05:18 AM   #3
dvdljns
Member
 
Registered: Sep 2003
Posts: 210

Original Poster
Rep: Reputation: 30
Unhappy

Quote:
Originally Posted by catkin View Post
What exactly do you mean by "does not work"? What is the Netgear router's IP address? Please post the output from
Code:
ifconfig
route
ping <Netgear router's IP address>
ping 75.126.162.205
nslookup linuxquestions.org
ping linuxquestions.org
Code:
eth0      Link encap:Ethernet  HWaddr 00:13:46:E6:BF:73  
          inet addr:192.168.0.130  Bcast:192.168.0.255  Mask:255.255.255.128
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:15 errors:0 dropped:0 overruns:0 frame:0
          TX packets:34 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:3766 (3.6 KiB)  TX bytes:6850 (6.6 KiB)
          Interrupt:3 Base address:0xd800 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:28 errors:0 dropped:0 overruns:0 frame:0
          TX packets:28 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:1400 (1.3 KiB)  TX bytes:1400 (1.3 KiB)

Code:
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.0.128   *               255.255.255.128 U     0      0        0 eth0
link-local      *               255.255.0.0     U     1000   0        0 eth0
I can ping my windows comp
I can ping the router

I can not ping my internet gateway or anything on the internet.
 
Old 11-28-2009, 05:43 AM   #4
sadiqdm
Member
 
Registered: Nov 2003
Location: London, UK
Distribution: openSUSE, Ubuntu
Posts: 358

Rep: Reputation: 35
Which Netgear router do you have? Are you connecting by ethernet cable or wireless?

I have had problems with some Netgear routers with wireless, but it seems to be a combination of Linux and a particular INPROCOMM wireless adaptor. The symptom is the connection to the router is made, but it won't authenticate if you have encryption turned on - either WEP or WPA.

If you are using a wired connection, then look for a setting that enables connections by MAC address. Alternatively some routers have a built in firewall as well.
 
Old 11-28-2009, 07:33 AM   #5
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
Quote:
Originally Posted by dvdljns View Post
Code:
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.0.128   *               255.255.255.128 U     0      0        0 eth0
link-local      *               255.255.0.0     U     1000   0        0 eth0
...

I can not ping my internet gateway or anything on the internet.
What is the IP address of your router and your internet gateway?

Any particular reason you are using a netmask of 255.255.255.128? AIUI, that means you can only connect to 192.168.0.1-126. For 192.168.x.x addresses the usual netmask is 255.255.255.0.

Looks like you are missing the default gateway. Here's from a Slackware 13.0 system
Code:
root:~# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
localnet        *               255.255.255.0   U     0      0        0 eth0
loopback        *               255.0.0.0       U     0      0        0 lo
default         192.168.1.1     0.0.0.0         UG    1      0        0 eth0
What do you mean by "internet gateway"? Most commonly your router would also be the device that connects to your ISP and thence to the Internet -- so your internet gateway would be your router ... ?

Which distro are you using (methods of configuring the netmask and the default route vary)?
 
Old 11-28-2009, 01:34 PM   #6
dvdljns
Member
 
Registered: Sep 2003
Posts: 210

Original Poster
Rep: Reputation: 30
I reloaded ubuntu and now I am on. There is nothing default or standard about this setup. I connect through a router that connects to a proxy server that connects to a router that connects to a cable modem.but it works.
 
  


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
pinging linksys router from Linux box to internal network not working illscience Linux - Networking 10 07-10-2008 08:18 AM
Apache is not working on my Linux box that is acting as a router notapplicable Linux - Networking 8 06-27-2007 02:49 AM
Netgear router port forwarding not working GATTACA Linux - Networking 6 11-06-2006 11:49 AM
Why doesnt my Mandrake9.1 box recive an IP adress from my Netgear RP614 router? Klas Linux - Networking 12 08-19-2005 06:44 PM
noFTP acces via Internet on Debian 3.0 box on a LAN network with Netgear rp614 router ferry Linux - Networking 2 08-16-2004 12:33 AM

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

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