FRIHOSTFORUMSFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

Router IP on different subnet?

 


alienjones
I have a home-LAN on Subnet 192.168.0.0.

Is it possible setting up an internet-router for this LAN on another Subnet (e.g. 10.0.0.0) and declaring it to each LAN-client as the default gateway? Will the packages still be routed to the Internet?
Ranfaroth
Yes.
alexchan28
of course you can,
and also, you can have few subnet in one network
Bikerman
alienjones wrote:
I have a home-LAN on Subnet 192.168.0.0.

Is it possible setting up an internet-router for this LAN on another Subnet (e.g. 10.0.0.0) and declaring it to each LAN-client as the default gateway? Will the packages still be routed to the Internet?


Quick lesson on subnetting:
As you know the IP address consists of 4 x 8bit values (0-255). This gives a total of 32 bits for the address.
One could, therefore, define a single network with the address of each device on the network specified by the 32 bits (2^32 = 4294967296 devices).
In practice addresses come in 5 types - class A - E as follows:



In real life most people will use a Class B or C address for their home PC (which will normally be allocated by the ISP. A static address is yours to keep but most use a pool of addresses on a first-come-first-served basis which is allocated by a system called DHCP (Dynamic Host Control Protocol).

The 10.xxx.xxx.xxx network address is one of the private reserved networks for local use and is not passed by routers on the internet.
The others are
192.168.0.0 to 192.168.255.255 and
172.16.0.0 to 172.31.255.255

Therefore your own local devices can use one of the above schemes but when connecting to the internet they must have a return address which is internet legal.

Subnetting
You can divide the range chosen into different networks using a subnet mask.
Technically the operation is :
Host-ID = IP-address AND(NOT(Subnet-mask))
Net-ID = IP-address AND Subnet-mask
AND is a logical operator with the following rules :-
0 AND 0 = 0
0 AND 1 = 0
1 AND 0 = 0
1 AND 1 = 1

Ideally a small home network will use the 192.168 address with a subnet of /24 (which is 255.255.255.0) - this gives you 255 devices on the same net (with 254 nets for expansion). Your addressing scheme would then be :
Router = 192.168.0.1 and ISP supplied address
Devices = 192.168.0.2 - 192.168.0.255
Subnet mask 255.255.255.0

All devices would have gateway set to the ISP supplied internet address.
A quick lookup for subnet masks is here :
Reply to topic    Frihost Forum Index -> Computers -> Computer Problems and Support

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.