Skip to main content

Determining the Number of IP Subnets and Hosts



Step One

Use the first octet of the IP address to determine the class of address (A, B, or C).

169.199.109.137   = CLASS B
255.255.255.192


Step Two

Use the class of the address to determine which octets are available for hosts.

CLASS B = Network. Network. Host. Host
                                    169.199.109.137
                                    255.255.255.192


Step Three

Look at the host octet(s) in the subnet mask. Use the "Possible Masks" chart to determine which bits are set to one. If no bits are set to one, there are no subnets. If any bits are set to one, proceed to step four.

169.199.109.137
255.255.255.192 = 11111111 11000000 (host octets only)


Step Four

Count the total number of ones in the host octet(s) of the subnet mask. Call this number X. Raise 2 to the power of X. Use the "Powers of 2" chart if necessary. This is the number of potential subnets created by the mask. Two of these potential subnets are normally not usable.

11111111 11000000 = 10 ones.  210 = 1,024 - 2 = 1,022 usable subnets created.


Step Five

Count the total number of zeros in the host octet(s) of the subnet mask. Call this number Y. Raise 2 to the power of Y. Use the "Powers of 2" chart if necessary. This is the number of potential subnets created by the mask. Two of these numbers are never used to address hosts.

11111111 11000000 = 6 zeros.  26 = 64 - 2 = 62 usable host addresses created.

Comments

Popular posts from this blog

Boot process hangs at dracut: Switching root

Environment Red Hat Enterprise Linux 6 Issue When server is booting the boot process hangs at  dracut: Switching root , and never displays anything else. Raw device-mapper: ioctl: 4.33.1-ioctl (2015-8-18) initialised: xx-xxxx@redhat.com udev: starting version 147 dracut: Starting plymouth daemon dracut: rd_NO_DM: removing DM RAID activation dracut: rd_NO_MD: removing MD RAID activation scsi0 : ata_piix scsi1 : ata_piix ata1: PATA max MWDMA2 cmd 0x1f0 ctl 0x3f6 bmdma 0xc120 irq 14 ata2: PATA max MWDMA2 cmd 0x170 ctl 0x376 bmdma 0xc128 irq 15 Refined TSC clocksource calibration: 2599.999 MHz. virtio-pci 0000:00:03.0: PCI INT A -> Link[LNKC] -> GSI 11 (level, high) -> IRQ 11 virtio-pci 0000:00:05.0: PCI INT A -> Link[LNKA] -> GSI 10 (level, high) -> IRQ 10 virtio-pci 0000:00:07.0: PCI INT A -> Link[LNKC] -> GSI 11 (level, high) -> IRQ 11 virtio-pci 0000:00:08.0: PCI INT A -> Link[LNKD] -> GSI 11 (level, high) -> IRQ 11 input: ImExPS/2 Gener

Interpreting the output of lspci

On Linux, the lspci command lists all PCI devices connected to a host (a computer). Modern computers and PCI devices communicate with each other via PCI Express buses instead of the older Conventional PCI and PCI-X buses since the former buses offer many advantages such as higher throughput rates, smaller physical footprint and native hot plugging functionality. The high performance of the PCI Express bus has also led it to take over the role of other buses such as AGP ; it is also expected that SATA buses too will be replaced by PCI Express buses in the future as solid-state drives become faster and therefore demand higher throughputs from the bus they are attached to (see this article for more on this topic). As a first step, open a terminal and run lspci without any flags (note: lspci may show more information if executed with root privileges): lspci   This is the output I get on my laptop: 00:00.0 Host bridge: Intel Corporation Haswell-ULT DRAM Co

How to get the SAN environment information and statistics on AIX, HP-UX, Linux, Solaris, and Windows

How to get the SAN environment information and statistics on AIX, HP-UX, Linux, Solaris, and Windows Description NetBackup SAN Client is supported on the Linux , Solaris, Windows, HP-UX and AIX operating systems.  These environments provide the initiator device driver which can login to the SAN client media server and mount an pseudo   target device “ARCHIVE PYTHON” so that the backup or restore can be use the fiber transport (FT).  If there is an issue in the SAN environment, it is necessary to get the information/statistics from the SAN fabric for analysis.  The commands below can be used, on the respective operating system, to gather the necessary information. If the outputs show many or steadily increasing error counts, that indicates one or more issues with  the fabric  infrastructure. The issue(s) can be caused by cabling, SFP, san switch, DWDM, HBA or ISL and those components will need to be analyzed and evaluated.  Linux Get the hardware information fo