LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 08-29-2006, 09:25 AM   #1
jonathan_guichard
LQ Newbie
 
Registered: Aug 2006
Posts: 4

Rep: Reputation: 0
Internet gateway problems


I have redhat 7 running which I would like to have connected to the internet. The station is connected to a local network using the 192.168.0.xxx range of adresses with a subnet mask 255.255.255.0

The modem has its own ip: 192.168.0.1

The linux station has the ip 192.168.0.200
with the mask 255.255.255.0
and the default gateway 192.168.0.1

Configured hosts:
127.0.0.1 localhost.localdomain

Primary DNS: 192.168.0.10 (this is the network server which also serves as a DNS address)

I can ping all computers on the network, I can ping the modem but when I try to surf the net nothing works. Is it just something I need to configure in Mozilla??
 
Old 08-29-2006, 10:46 AM   #2
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,214

Rep: Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849
First of all, lets see if we can straight things out. A device that has an IP address is either a host ( your system ) or a router, the thing you are calling Modem. Modems modulate and demodulate, they don't route and have IP addresses.

I would bet you have a dual purpose machine, modem/router. This is common these days. The modem part just adapts to the media you have, ADSL or Cable.

You should be able to point your web browser at it, type the IP addess in the location bar, press enter, and get to it. Try the gateway address. Most are password protected, and all too many people never change the default factory password. Great for people wanting to use your service for free, or hack your network.

The ISP side of your router will have a IP address assigned by your ISP, most, but not all ISP's use DHCP to assign an address. The rest require you to configure in the ISP side IP address.

An address on 192.168.xxx.xxx is a private address, and gets translated in your router. Don't worry about that, it will work unless the router is broken.

It sounds like you assigned the IP address to your linux system. Is that correct? If yes, you need to look at the router config to see what range of addresses it is configured for, and make sure you are part of the same sub-net. If you are not, then the router will not route your packetts. The masks look good, that is a standard class C mask.

The primary DNS IP address doesn't look right to me. Most routers will aquire the DNS addresses from the ISP, and pass them to the systems using the router using DHCP. If you assigned the IP, you need to find out the correct DNS address from the ISP, or your router. Mine displays the DNS addresses. Once again, look at your router config to wee what you can find out your self. Ask your ISP if you can not see the info in your router.

Valid addresses for the internet will not be private IP addresses such as 192.168.xxx.xxx. Your side is a private network and an address of 192.168.xxx.xxx there is O.K.

You will have a resolv.conf file some where on your system, usually in /etc directory, or it may be a sim link to the real resolv.conf file. Have a look at it and see what addresses are in it. As an example only, here is mine.

Code:
cat resolv.conf
nameserver 67.69.184.148
nameserver 206.47.244.56
/sbin/ifconfig in mine shows:

Code:
/sbin/ifconfig
ath0      Link encap:Ethernet  HWaddr 00:11:95:4B:F8:28
          inet addr:192.168.1.14  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::211:95ff:fe4b:f828/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:76660 errors:35745 dropped:0 overruns:0 frame:35704
          TX packets:67010 errors:0 dropped:1 overruns:0 carrier:0
          collisions:0 txqueuelen:199
          RX bytes:22249799 (21.2 MiB)  TX bytes:8770567 (8.3 MiB)
          Interrupt:10 Memory:cc540000-cc550000
Note the IP address, I'm running DHCP, my router assigns the address. The third field is the sub-net. In my case it is 1, yours is 0. That is OK as long as it matches your router config.

Have a look at things, and post pack what you can discover. It helps if you post as much info as you can gather, such as your /etc/resolv.conf file, /etc/hosts file and the output of /sbin/ifonfig.

Hope this helps.
 
Old 08-29-2006, 11:06 AM   #3
jonathan_guichard
LQ Newbie
 
Registered: Aug 2006
Posts: 4

Original Poster
Rep: Reputation: 0
Ok..

The modem acts as a gateway and has been assigned an ip address. All computers on the network are connected to a hub and use the modem's ip (192.168.0.1) as the default gateway. We have a DNS on the network which we use ip: 192.168.0.10
The internet provider's DNS ip is 216.252.64.75

Simply putting this information in the network config utility simply doesn't work.
Here is my resolv.conf file:

nameserver 192.168.0.10
nameserver 216.252.64.75 (which i can't even ping but i still put it there)

ifconfig
eth0 Link encap:Ethernet HWaddr 00:40:33:5A:69:F1
inet addr:192.168.0.200 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:23 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:0 (0.0 b) TX bytes:966 (966.0 b)
Interrupt:9 Base address:0xe800
 
Old 08-29-2006, 12:19 PM   #4
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,214

Rep: Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849
I think the problem has to do with the nameserver 192.168.0.10. It is the first nameserver your work station would go to to resolve a name to IP address. The only way I can see for you to work this out would be to find out what your name server does if it can not resolve a name. What other servers does it go to? Or does it just return a host not found message to the requestor? Most private servers are set up to resolve internal ( comapny wide ) names, and not resolve the public side. You will probably have to talk to who ever configured the private DNS server.

It would be interesting if you could remove the 192.168.0.10 address and try your work station, with just the ISP's name server. I wouldn't get too excited about not being able to ping it. You can configure a device not to respond to pings. This is often done on busy servers to cut down on unnecessary traffic.

Point of interest, I can ping 216.252.64.75 , 'm connected to the public internet. So the server does respond to a ping. That would lead me to believe your station is not getting routed to the internet.

I think it is time to also look into the router configuration; as stated above.

Last edited by camorri; 08-29-2006 at 12:23 PM.
 
Old 08-29-2006, 01:43 PM   #5
nuxrl
Member
 
Registered: Jun 2006
Location: NY, USA
Distribution: Slackware, Arch
Posts: 176

Rep: Reputation: 35
216.252.64.75 has dns1.enter-net.com as fully qualified dns name. And indeed, the DNS server is running on that host. You should be able to ping this IP from your home network. If not, the router is the problem. Can you post the output of

Code:
$ping 192.168.01

and

$/sbin/route
 
  


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
Gateway (to the internet) Pedroski Linux - Networking 11 06-05-2004 04:17 PM
Gateway for internet mfeoli Linux - Newbie 4 01-19-2004 11:14 AM
Networking problems with gateway - no internet Belize Linux - Networking 4 12-17-2003 11:39 AM
internet gateway problems (iptables configuration) woranl Linux - Networking 11 08-27-2003 11:41 PM
Internet gateway fxlee Linux - Networking 1 01-06-2002 10:33 AM

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

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