Results 1 to 8 of 8
  1. #1
    Believe. Man Sauce's Avatar
    My Team
    San Antonio Spurs
    Join Date
    Feb 2005
    Post Count
    163
    I am having problems trying to figure this stuff! This is a question I had I have no idea how they got this answer.

    A router interface has been assigned an ip address of 172.16.192.166 with a mask of 255.255.255.248 which subnet does the ip address belong to.

    This is the answer = 172.16.192.160

    Any help would be appreciated or any tips on how to figure this stuff out.
    Thanks

  2. #2
    Veteran fatsack's Avatar
    My Team
    San Antonio Spurs
    Join Date
    Jan 2006
    Post Count
    2,315

  3. #3
    Believe. Man Sauce's Avatar
    My Team
    San Antonio Spurs
    Join Date
    Feb 2005
    Post Count
    163
    Thanks but I already saw that I want to learn how to do it by hand.

  4. #4
    🏆🏆🏆🏆🏆 ElNono's Avatar
    My Team
    San Antonio Spurs
    Join Date
    Apr 2007
    Post Count
    152,607
    Do you know anything about numbers in base 2 (binary)?
    If you don't, go read. While you're at it, read up on boolean operations too (and, or, xor, etc).
    If you do know, then the operation is simple:

    subnet = ip address & mask (where & is the AND boolean operation)

    For example:

    IP: 172.16.192.166 (binary: 10101100.00010000.11000000.10100110)
    MASK: 255.255.255.248 (binary: 11111111.11111111.11111111.11111000)

    10101100.00010000.11000000.10100110
    AND
    11111111.11111111.11111111.11111000
    EQUALS
    10101100.00010000.11000000.10100000

    10101100.00010000.11000000.10100000 = 172.16.192.160 (the subnet)

  5. #5
    Believe. Man Sauce's Avatar
    My Team
    San Antonio Spurs
    Join Date
    Feb 2005
    Post Count
    163
    Yeah I know about binary and the boolean operations, but this does help understand what to do I had no idea where to start but I see now. Thanks I really appreciate it. Can you answer this how can you tell which subnetted address is a valid host address? Thanks again.

  6. #6
    🏆🏆🏆🏆🏆 ElNono's Avatar
    My Team
    San Antonio Spurs
    Join Date
    Apr 2007
    Post Count
    152,607
    Yeah I know about binary and the boolean operations, but this does help understand what to do I had no idea where to start but I see now. Thanks I really appreciate it. Can you answer this how can you tell which subnetted address is a valid host address? Thanks again.
    I'm not sure I understand the question. Can you be more specific?
    The way this work is that the mask determines what is your 'local' network, that is, what nodes in the network are accesible directly without requiring a router/gateway.

    As far as how many valid ips are in a subnet, well, that depends on the mask.

  7. #7
    Take the fcking keys away baseline bum's Avatar
    My Team
    San Antonio Spurs
    Join Date
    Mar 2003
    Post Count
    93,160
    EDIT: Aw ... I was answering El Nono's question.

  8. #8
    Believe. Man Sauce's Avatar
    My Team
    San Antonio Spurs
    Join Date
    Feb 2005
    Post Count
    163
    Well this is what I meant if given these addresses which are valid host addresses?
    172.16.4.127/26
    172.16.4.155/26
    172.16.4.193/26
    172.16.4.95/27
    172.16.4.159/27
    172.16.4.207/27
    The answer is the 2, 3 and 6
    I just don't understand why it's those 3. Thanks.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •