LinuxQuestions.org
Help answer threads with 0 replies.
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 09-23-2003, 10:16 AM   #1
dhirajsharma
LQ Newbie
 
Registered: Oct 2002
Location: NJ
Posts: 9

Rep: Reputation: 0
Intenet through router and cable modem


I have Linux (RedHat 7.3) and XP computers connected to a NetGear router using ethernet connections. The router is connected to a cable modem. From the XP, I can access the Internet and ping the router, Linux, and ISP. From Linux, I cannot access the Internet and cannot ping the ISP, but I can ping the router and XP.

XP is using DHCP. Linux has fixed IP address on the LAN.

How can I connect from Linux to Internet? Thanks for the help.
 
Old 09-23-2003, 10:21 AM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Can you post the output from this on linux:
route -n
ifocnfig

And this on windows:
ipconfig /all
route print
 
Old 09-23-2003, 01:18 PM   #3
voltron1011
Member
 
Registered: Aug 2003
Location: Tucson, AZ
Distribution: Red Hat 8
Posts: 62

Rep: Reputation: 15
make sure your router is setup to give you a handful of static addresses. Some store bought routers will only let you do DHCP as an all or nothing deal. This means that either all host have to run dhcp, or all hosts have to have static ip addresses. Other routers let you reserve an address range for manual addresses, so DHCP won't take the address and have conficts.
 
Old 09-23-2003, 02:10 PM   #4
dhirajsharma
LQ Newbie
 
Registered: Oct 2002
Location: NJ
Posts: 9

Original Poster
Rep: Reputation: 0
Thanks for the prior suggestions. Here is how I solved my problem:

I ran ipconfig/all in XP command window to get the three DNS addresses.

On the Linux machine, I ran the network configuration utility (Red-hat 7.3), and entered the DNS addresses in the DNS tab. Did not make any changes to the "DNS Search Path" section of that tab -- do not know what it does anyway.

Also, I entered the Gateway IP address (which is a static address) to be the IP address of the router.

Rebooted the machine. I could then access the Internet from the Linux machine.

This way, the Linux has static address and can function as a server on the LAN and access the Internet for downloads, etc.

Thanks again for the help.
 
Old 09-24-2003, 01:45 AM   #5
voltron1011
Member
 
Registered: Aug 2003
Location: Tucson, AZ
Distribution: Red Hat 8
Posts: 62

Rep: Reputation: 15
Oh yeah, forgot about those darn DNS servers.....
 
  


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
LAN with router and cable modem moonmoth Linux - Networking 1 07-15-2005 07:25 PM
Configuring cable modem with router on Redhat 9 jlyon167 Linux - Networking 2 03-16-2004 01:24 PM
Can't get to the internet through cable modem/router Myron Linux - Networking 4 03-03-2004 12:09 AM
For anyone with a cable modem and a router... strago Linux - Hardware 11 09-04-2003 04:04 PM
Cable modem with Netgear router using DHCP yamar Linux - Networking 1 05-26-2003 07:33 PM

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

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