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 |
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. |
the submask net will be 255.255.255.0?
|
That is correct. The subnet mask you will use would be 255.255.255.0. :D
|
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) |
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...... |
Quote:
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. |
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??? |
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. |