LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-27-2003, 06:18 AM   #1
bahuguna_n
LQ Newbie
 
Registered: Jul 2003
Location: India
Posts: 8

Rep: Reputation: 0
Question configuring LAN


hi all. i need to configure my LAN. i have installed RH linux 9.everything went fine during installation but while configuring network, i couldn't understand the concept of hostname and netmasking. i read about giving ip addresses and kept it as 192.168.3.250 for my server. all other pc's in the network have windows installed in the local machine.i need to work through telnet.(dont worry, not connected to outside world) and all the ip addresses in the windows machine have ip's 192.168.3.xx
my question is -
1. how can i configure my network.(there is no problem in the hardware and the network)
2. what ip addresses should i give for the server and the hostname and the netmask, gateways, etc.
3. what entries should i put in the /etc/hosts file? what is hostname for pc's which have windows installed?
4. how to check whether telnet is working or not.

thanks in advance.
Nishchaya
Bangalore, india
 
Old 12-27-2003, 07:50 AM   #2
pablob
Member
 
Registered: Apr 2003
Location: Madrid
Distribution: RHEL, Kubuntu, Solaris, TRU64
Posts: 382

Rep: Reputation: 31
if you are not connecting to the internet, then you can stay with the 192.168 range of IP's:

What I'd do:

192.168.0.0 --> "network" IP address (reserved)
192.168.0.1 --> "gateway" IP address (not reserved, but leave it for future use.)
192.168.0.2 --> linux server

192.168.0.20 to 192.168.0.253 --> use for windows PCs.

192.168.0.254 --> "gateway" IP address (not reserved, but leave it for future use.)
192.168.0.255 --> "broadcast" address (reserved).

This way, you keep some IP's (3 to 19) for adding more servers and knowing they are servers, and you keep all PC's at the range 20 to 253.

If you get dhcp to work on the linux server, you can let it hadle assignment of IP address for PC's automagically for the range you provide (i.e. 20 to 253)

You can set the mask on all machines to 255.255.255.0
NOTE: If you use 192.168.3.X instead of 192.168.0.X for the machines, and a mask of 255.255.255.0, then note that using a 192.168.0.X will not mix well with 192.168.3.X IPs
and viceversa.
Consider the third 255 as a constraint for the IP to mix when the third element of the IP changes.
 
  


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
configuring for internet thru lan jared78 Linux - General 4 05-11-2005 07:13 PM
configuring LAN TiCkO Linux - Networking 1 03-02-2005 04:22 PM
configuring wireless lan on redhat 9 adityabhat2 Linux - Laptop and Netbook 1 02-13-2005 05:25 PM
Help on configuring Lan browsing balam Linux - Networking 1 12-07-2002 09:02 AM
Configuring Apache for LAN only use Jase Linux - Networking 3 05-17-2001 01:47 PM


All times are GMT -5. The time now is 07:40 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration