LinuxQuestions.org
Help answer threads with 0 replies.
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 02-02-2002, 09:11 AM   #1
fin
LQ Newbie
 
Registered: Dec 2001
Location: MoorLands UK
Distribution: Red Hat 7.3
Posts: 27

Rep: Reputation: 15
Unhappy IP address which class ?


Hi All,

Iam setting up a home network with three pc's, one linux box & two windows. The linux box RH 7.2 is going to be the main gateway for the net, firewall, samba.. etc

Which class of IP address sould I use for a home Lan network A, B or C At the moment the linux box IP is 127.0.0.1 should I keep this IP number or not ?

Thanks Rich

 
Old 02-02-2002, 09:18 AM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
ummm... a 127.0.0.1 is just a loopback address.. for a internal lan most setup using 192.168.x.x which i believe is a class C. correct me if i am wrong.. been up all night.
 
Old 02-02-2002, 09:28 AM   #3
fin
LQ Newbie
 
Registered: Dec 2001
Location: MoorLands UK
Distribution: Red Hat 7.3
Posts: 27

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by trickykid
ummm... a 127.0.0.1 is just a loopback address.. for a internal lan most setup using 192.168.x.x which i believe is a class C. correct me if i am wrong.. been up all night.
Thanks trickykid
 
Old 02-02-2002, 09:33 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
196.168 is class C, i use a class A (10.x.x.x) tho, as it's so much easier to type... don't really see the problem, just because i'm not actually runnign a class A network...

you'll need to specify an additional ip address for each NIC you install.
 
Old 02-02-2002, 03:08 PM   #5
rusty
LQ Newbie
 
Registered: Feb 2002
Location: Twin Cities Metro Area
Distribution: Debian and Mandrake
Posts: 8

Rep: Reputation: 0
Re: IP address which class ?

Quote:
Originally posted by fin
Hi All,

Iam setting up a home network with three pc's, one linux box & two windows. The linux box RH 7.2 is going to be the main gateway for the net, firewall, samba.. etc

Which class of IP address sould I use for a home Lan network A, B or C At the moment the linux box IP is 127.0.0.1 should I keep this IP number or not ?

Thanks Rich

If you enter root mode, and type ifconfig, you will find that the interface defined with an ip address 127.0.0.1 is the lo interface. For the most part this can be left alone.

If you can enable eth0, ( or whatever interface you are trying to add) you should assign it an ip address in whichever network you are going to participate in. With three machines, you can use any of the classes of private network space, however you will want to be aware of what you are doing.

Pick a class of address, a network address and a subnet to use. With three devices, I would recomend using a class C subnet on any of the classes of address space. You could use 10.20.30.0 as your network address for example. With this as the network address and a subnet mask of 255.255.255.0, you would have the range of addresses from 10.20.30.1 through 10.20.30.254 available to use.

If you are going to set up one of the devices as a nat/proxy to the internet, you will need to set that device's ip address (from the range you select) as the gateway for your other two devices.

I would recomend .1, or .254 as the gateway, but there is not a specific rule.

All devices in the subnet need unique addersses, meaning you can not have two devices in the network with the same ip, 10.20.30.40 for example. (there are exceptions, however those exceptions are outside of the scope of what you are attempting to do.)

That should provide a sufficient start to setting up your network.

-Rusty
 
  


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
Tribes 2 Connection Challenge Error (Class B IP Address) sloik2000 Linux - Games 2 04-08-2007 03:52 PM
Implementing a vector class from a list class purefan Programming 9 04-14-2005 10:48 PM
ip address class division emailssent Linux - Networking 3 10-08-2004 06:38 AM
BlackBox.class & VerifierBug.class virus ??? dalek Linux - Security 4 02-29-2004 08:55 AM
c++ : regarding (inheritence)base class and derived class edreddy Programming 6 07-31-2002 06:33 PM

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

All times are GMT -5. The time now is 06:20 AM.

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