Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
07-05-2001, 09:27 AM
|
#1
|
Member
Registered: Apr 2001
Location: MA
Distribution: redhat 7.2
Posts: 182
Rep:
|
Network Configuration
I'm setting up redhat 7.1 as a web/file server on my internal lan to replace a win98 server. I have a netgear ro318 router which I can reach thru netscape but I can't get to the outside. I'm confused by the hostname and domain settings in Linux. I have a registered DNS which points to my static IP which is my router. What domain to I use on my linux box? Is hostname required? I seem to remember have to set this stuff before I had a hardware router and was using two NIC's.
My linux box has a static IP. My win98 server also has a static IP and all I set is the gateway IP (router address). No host or domain is required and apache runs fine.
thanks.
|
|
|
07-05-2001, 09:32 AM
|
#2
|
Senior Member
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243
Rep:
|
If your servers are only available internally then its upto you what host and domain name you use, but I'd advise you don't use one that exists in the realworld as you'll find you have some 'difficulties' when you try to get to the 'real' one on the web.
HTH
Jamie...
|
|
|
07-05-2001, 10:08 AM
|
#3
|
Member
Registered: Apr 2001
Location: MA
Distribution: redhat 7.2
Posts: 182
Original Poster
Rep:
|
I want my server to be available from the outside but my domain name points to my router, not an actual server so maybe a mock hostname and domain will do. I'll give it a try.
Thanks, Tom
|
|
|
07-05-2001, 11:03 AM
|
#4
|
Senior Member
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243
Rep:
|
Do the machines behind the router have a valid IP addresses or is the router NAT'ing (IP Masquerading)? Just changing the names won't solve the problem, if your 'internal' machines have valid IPs then you can just moved the DNS mapping, otherwise you'll need to setup youur router to port forward, if it supports this. This will pass any incomming requests on port 80 (for example) to the internal machine, the reply will then be NAT'd by the router on the way out to the client so will come out fine. Can't say that I've ever played with this config myself though. I have my www server running on the router, but I have a linux box doing the routing for my LAN so it the easiest way for me to do this - you using a hardware router??
Cheers
Jamie...
|
|
|
07-05-2001, 11:26 AM
|
#5
|
Member
Registered: Apr 2001
Location: MA
Distribution: redhat 7.2
Posts: 182
Original Poster
Rep:
|
I have a hardware router that does NAT and DHCP. My internal addresses are 192.168.0.*
I have one of 4 machines set to a static IP. The router forwards port 80 to that machine and Apache works fine. Once Linux is up and running I will forward port 80 to the Linux static IP. I haven't setup and servers yet, I'm just trying to see if I can browse the internet. I can ping the internal IP's, I can get to my router gateway ( http://192.168.0.1) but when if I try and go to www.linuxquestions.org I get a netscape error (Unable to browse network, TCP error, blah, blah).
It has to be a simple setting in a network configuration file. I noticed in GNOME under network settings there is an uneditable field called network which is set to 192.162.0.0 which is invalid. It must pick this up from a file.
-Tom
|
|
|
07-05-2001, 11:39 AM
|
#6
|
Senior Member
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243
Rep:
|
Quote:
Originally posted by te_conway
It has to be a simple setting in a network configuration file. I noticed in GNOME under network settings there is an uneditable field called network which is set to 192.162.0.0 which is invalid. It must pick this up from a file.
|
Na - thats correct - if your using 192.168.0.* then 192.168.0.0 is your network address! Can you do DNS lookups? Try hopefully you'll get a response (208.247.106.177), if you don't have a look at /etc/resolv.conf. If you do get a response then check that your router is set as your default gateway (dunno where you'll find this on RH!).
(this is a seperate problem to earlier yeah? Or have I been answering the wrong question this whole time!! (sorry if I have) )
HTH
Jamie...
|
|
|
07-05-2001, 08:01 PM
|
#7
|
Member
Registered: Apr 2001
Location: MA
Distribution: redhat 7.2
Posts: 182
Original Poster
Rep:
|
All set. Looks like hostname and domain are unimportant if using a hardware router. They are set to localhost/localdomain. I had to put the address of my router in the nameservers field in netcfg and that did the trick!
|
|
|
All times are GMT -5. The time now is 11:00 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|