LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   2 pc connected.... (https://www.linuxquestions.org/questions/linux-networking-3/2-pc-connected-67807/)

yenonn 06-24-2003 06:56 PM

2 pc connected....
 
hi,

recently i plan to learn linux in networking... so, i connect 2 pc, one is rh9 and one is winXP, thru a cross-over cable... i plan to do a samba PDC onto my linux, such that my windows client can be logged in... now, my question is how do i assign my ip address for my pcs..since i just have two pcs... so, what is the best ip address that can suit for less than 5 pcs network? class c?? or what? i dun have networking basic... now, i am learning....can u guys give an ip address that normally ppl used for home networking....thanks

ranger_nemo 06-24-2003 09:57 PM

Just use the standard 192.168.0.x . Replace the x with a 1 for the first one, a 2 for the second, and so on. You can change the 0 if you want, but it's easier if you don't.

If you really get a network going, with one computer as a gateway to the internet, it's convention to make that one 1. It's not really necessary, just easier to remember to point all the computers to 1 to get to the internet.

yenonn 06-24-2003 10:48 PM

the submask net will be 255.255.255.0?

biggiefatts 06-24-2003 10:57 PM

That is correct. The subnet mask you will use would be 255.255.255.0. :D

2damncommon 06-24-2003 10:58 PM

IPs reserved for non-net connected LANs:

10.0.0.0 - 10.255.255.255

172.16.0.0 - 172.31.255.255

192.168.0.0 - 192.168.255.255
(yes, 255.255.255.0)

yenonn 06-25-2003 01:18 AM

in other term of representation 192.168.0.0/24?? or what?
i dun understand this representation... what we called this?
some got /16.... some got /24......

Robert0380 06-25-2003 01:29 AM

Quote:

Originally posted by 2damncommon
IPs reserved for non-net connected LANs:

10.0.0.0 - 10.255.255.255

172.16.0.0 - 172.31.255.255

192.168.0.0 - 192.168.255.255


or put another way:

10.0.0.0/8 or netmask 255.0.0.0 class A

172.0.0.0/11 or netmask 255.224.0.0 (you dont get all the bits in the second octet, just the 1st 3 for 172.16-172.31) classless

and

192.168.0.0/16 netmask 255.255.0.0 class B


but as said before, you'll just need a class C network (maximum of 254 hosts because the .255 and .0 are special). So you'll take 192.168.0.X and have a netmask of 255.255.255.0.

yenonn 06-25-2003 02:02 AM

i am confusing .... any resource about this... if u have just paste some for my reference anyway, i will start googling about this.... in order to make myself clear....
now, my network is 192.168.0.0/8? correct???

Robert0380 06-25-2003 02:33 AM

no 192.168.0.0/24 which is the same as

192.168.0.X netmask 255.255.255.0

you said you have 5 computers:


the gateway: 192.168.0.1
comp1: 192.168.0.2
comp2: 192.168.0.3
comp3: 192.168.0.4
comp4: 192.168.0.5
and so on and so forth

the mask is : 255.255.255.0


here is a tutorial i found on google

http://www.networkingnext.com/beginners.html not sure how good it is but i liked animated illustratoins.


All times are GMT -5. The time now is 10:46 PM.