Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 10-14-2003, 02:46 PM   #1
Registered: Oct 2003
Location: Newport News, Va
Distribution: Debian
Posts: 246

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

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 ( 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 ( by ip and get a response. Now I ping 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 ( Ip masq. is set up correctly because I can ping 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.

Old 10-14-2003, 03:53 PM   #2
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


Last edited by twsnnva; 10-14-2003 at 03:55 PM.
Old 10-14-2003, 11:57 PM   #3
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



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

All times are GMT -5. The time now is 07:00 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration