Go to TogaWare.com Home Page. GNU/Linux Desktop Survival Guide
by Graham Williams
Duck Duck Go

Understanding IP Addresses


Your IP address bitwise ANDed with the so called netmask yields your network address. The network address bitwise ORed with the negated netmask yields your so called broadcast address. The IP address of the router through which you connect to the Internet is referred to as the gateway.

A simple example is:



  IP:        192.168.0.34    (0xc0a80022)
  Mask:      255.255.255.240 (0xfffffff0)
  Network:   192.168.0.32    (0xc0a80020 = 0xc0a80022 & 0xfffffff0)
  Broadcast: 192.168.0.47    (0xc0a8002f = 0xc0a80020 | ~0x0f)


Copyright © 1995-2018 Togaware Pty Ltd
Support further development through the purchase of the PDF version of the book.
Brought to you by Togaware and the author of the open source software Rattle and wajig.
Also the author of Data Mining with Rattle and Essentials of Data Science.