Subnet Question

Discussion in 'Network+' started by Smegal, Apr 12, 2019.

  1. Smegal

    Smegal New Member

    Have a small network with a single subnet connected to the internet.
    Router is the default gateway is has been assigned

    I needed to figure out the following:
    IP Address
    Subnet Mask

    I figured out the Subnet mask of from the CIDR 28 but I can't figure out how they came up with the IP.

    **Answer is
    Their explanation is with a 28bit mask, the router is on subnet, and valid addresses are to Can't use because its the subnet address. Can't use because its the broadcast address.
  2. JoeCLewis90

    JoeCLewis90 New Member

    Based on the answer they are saying is correct, I assume they are asking for the last usable host IP address. This is how I would answer.

    Break into binary, if you would like, but since the last octect is the one with 4 borrowed could just copy the first 3 octets down, as those will not change in this scenario:


    The last octet of the IP (34) converts to 00100010 (Notation in the "32" and "2" places give you 34). You line this up with the binary of the last subnet mask octet:

    Subnet Mask Binary (240) = 11110000
    Last Octet Binary (34) = 00100010

    In this case the last 4 bits of the last octect of the IP are the only numbers that you would manipulate to get the network and broadcast addy. Use the binary of the last subnet mask octet to tell you where to start manipulating the binary of the IP's last octect....
    (where the 0's begin in the subnet mask)

    Zero out the last 4 bits of the binary of the IP (00100000) =32...hence for the Network Address.
    Put 1's in the last 4 bits of the binary of the IP (00101111) =47...hence for the Broadcast Address

    That leaves the 1st and Last usable host address for us to add one to the Netw. Addy and subtract one from the Broadcast Addy

    00100001 will give you the 1st usable host of =
    00101110 will give you the last usable host of =

    I realize that I am reviving an old thread, but they say you know it if you can teach it. So just trying to lend a hand.

    Hope that explanation wasn't too complicated. I tried my best lol
  3. marksoers

    marksoers New Member

    Thanks for this interesting information!

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.