subnet mask and default gateway

Subnet Mask:-

The mask is used to detrmine that which part of IP belonged to network or which part belong to host. E.g. if u have a IP and its subnet mask is then the 172.16 is network part , and 25.16 is host part. If subneting is enable then we can use some bit of host part in network .Subnet mask mainly use in subneting. for above example subnet mask is the nwk address become 172.16.25. and the host part is 32.

Default gateway:-

For a simple LAN there is no use of default gateway, It is used when network communicate with other network. it is just like a Main gate of home when a person wanna go to outside from home or come inside he can only do the same by main gate. Same Concept used here. In network if the packet have address of same address then switch direct forward the packet to its desired destination. And if packet have another network address it should be come out from Default gate way. Basically it reduces the collision.   subnetmask is just used to identify the class of ip address and its is used for subnetting of ip address for eg:-

ipaddress -
we can find N/W part that is 192.168.1 and Host part that is 2
the class of ip is C

where as default gateway is a ip address given to a router or ASDL modem which is used to communuicate with other N/Ws or internet

Post a Comment