LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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-14-2003, 01:46 PM   #1
twsnnva
Member
 
Registered: Oct 2003
Location: Newport News, Va
Distribution: Debian
Posts: 246

Rep: Reputation: 30
Connecting to internet with cable modem.


Hello,
I am trying to replace win2k server running NAT, with a RH9 Linux box using ip masq. I wanted to do this so I can allow or disallow connection based on mac addresses. The 2k server also runs dhcp and dns, dns for LAN addresses and forwards to my isp's dns (68.0.16.25) for other queries. The linux box was originally on the behind the 2k server. I ping "whatever".com from and get a reply. I was using my 2k server to answer all dns queries.

Now I have put the linux box on the cable modem and set eth1 (public) with dhcp. I restart the network services and ping my isp's dns (68.0.16.25) by ip and get a response. Now I ping google.com or whatever and get "unknown host, unable to resolve". /etc/resolv.conf shows 3 dns servers listed including the one that i can ping by ip (68.0.16.25). Ip masq. is set up correctly because I can ping 68.0.16.25 from any client on the network. Im almost there!!! Any help would be greatly appreciated. The dns is the only problem I have left...I hope.

Thomas
twsnnva@cox.net
 
Old 10-14-2003, 02:53 PM   #2
twsnnva
Member
 
Registered: Oct 2003
Location: Newport News, Va
Distribution: Debian
Posts: 246

Original Poster
Rep: Reputation: 30
Ok, I figured out what the problem but I still have no clear resolution path. For whatever reason my Linux box is not getting a gateway ip from my isp's dhcp. This is why I could ping the isp's dns (it is on the same subnet as me) I connected the modem back to my 2k server and connected without a problem. I ran ipconfig /all and got all of the information about my connection (IP, subnet, gateway, and dns servers) I manually edited /etc/sysconfig/ifcfg-eth1 and added all of the proper info in. Restarted the network services and can now connect to yahoo or whatever by domain name. Before I edited ifcfg-eth1 I ran a ifconfig eth1 so I know that the same IP and subnet were in place that only leaves the gateway. Does anyone have any suggestions as to why I'm not getting a gateway from my isp only when using my linux box? ifconfig will not show it, is there another way to see what gateway I have been issued if any? Thanks

Thomas
twsnnva@cox.net

Last edited by twsnnva; 10-14-2003 at 02:55 PM.
 
Old 10-14-2003, 10:57 PM   #3
thack111
LQ Newbie
 
Registered: Sep 2003
Posts: 18

Rep: Reputation: 0
if you have a windows, or a normal dhcp linux box, try putting them on and pull a ip from your isp, see if it is different. I have seen it with the gateway being the first ip on the subnet ###.###.###.1

Todd
 
  


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
Problem connecting to the Internet with a Cable Modem desmith1944 Linux - Networking 4 10-24-2004 07:32 PM
Connecting to internet via Cable Modem Marc19 Linux - Newbie 1 08-06-2004 06:23 AM
Cable Internet not connecting zarathaz Mandriva 2 07-06-2004 10:05 AM
connecting to internet via cable modem with Peanut PenguinEgg Linux - Networking 1 03-13-2003 08:53 PM
Problem connecting Suse 8.0 to internet via cable modem traveler Linux - Newbie 2 09-25-2002 12:22 PM


All times are GMT -5. The time now is 03:32 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration