LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 07-05-2001, 09:27 AM   #1
te_conway
Member
 
Registered: Apr 2001
Location: MA
Distribution: redhat 7.2
Posts: 182

Rep: Reputation: 30
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.
 
Old 07-05-2001, 09:32 AM   #2
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 47
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...
 
Old 07-05-2001, 10:08 AM   #3
te_conway
Member
 
Registered: Apr 2001
Location: MA
Distribution: redhat 7.2
Posts: 182

Original Poster
Rep: Reputation: 30
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
 
Old 07-05-2001, 11:03 AM   #4
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 47
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...
 
Old 07-05-2001, 11:26 AM   #5
te_conway
Member
 
Registered: Apr 2001
Location: MA
Distribution: redhat 7.2
Posts: 182

Original Poster
Rep: Reputation: 30
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
 
Old 07-05-2001, 11:39 AM   #6
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 47
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
Code:
nslookup www.linuxquestions.org
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...
 
Old 07-05-2001, 08:01 PM   #7
te_conway
Member
 
Registered: Apr 2001
Location: MA
Distribution: redhat 7.2
Posts: 182

Original Poster
Rep: Reputation: 30
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!
 
  


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
Slackware 10 network configuration. Problem with 8139 network card drivers ! Padmakiran Linux - Networking 8 03-27-2007 07:48 AM
Network Configuration Hanging in FC4 After Using Wireless Network Wizard Trip in VA Linux - Wireless Networking 2 07-18-2005 09:32 AM
network configuration ilectrcbob Fedora 2 03-11-2005 02:43 AM
9.2 + Network configuration kmashraf Mandriva 1 11-22-2004 04:40 AM
about configuration over the whole network Rex_chaos Linux - Networking 1 01-06-2004 07:49 AM

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

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