TCLUG Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [TCLUG:12953] IP/netmask pair
Timothy Wilson said:
> What would be the IP/netmask pair for the following (I can't remember how
> to figure it out).
>
> 209.98.170.0/24
^^^^^^^^^^^^ ^^
| |
IP address Number of 1s in netmask
So you've already got the IP (209.98.170.0) and the netmask starts with 24
bits on and the rest are off. 24 = 3 * 8 and 3 bytes of all 1s followed by a
byte of all 0s gives a netmask of 255.255.255.0.
--
Geek Code 3.1: GCS d- s+: a- C++ UL++$ P+>+++ L++>++++ E- W--(++) N+ o+ !K
w---$ O M- !V PS+ PE Y+ PGP t 5++ X+ R++ tv- b++ DI++++ D G e* h+ r++ y+