| sukuvi 2002-06-27, 7:10 pm |
| IP addresses can be written in different ways.
192.168.10.2/26 is one way of writing
ip address 192.168.10.2 with subnet mask 255.255.255.192 and that's what you'll see with routers.
If we convert the subnet mask into binary ( another way of writing IP addresses and that's what computers or routers actually use) this is what we get
the first byte 255 is 11111111
the second byte 255 is 11111111
the third byte 255 is 11111111
the last byte 192 is 11000000
So 255.255.255.192 in binary is
11111111 11111111 11111111 11000000
The 26 1s is the number of bits that form the network portion of the IP address.
The subnet mask tells the router what portion of the IP address is the network address. Then the remaing portion of the IP address becomes the host address.
If we convert 192.168.10.2 into binary we get
11000000 10101000 00001010 00000010
So the netork portion of this address is the first 26 bits and that is
11000000 10101000 00001010 00
or in dotted decimal 192.168.10.0
I hope this is clear enough. |