CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2010
    Posts
    161

    help :IP,subnets,broadcast etc

    Hello everyone,
    I am trying to understand how all this works but right now I am a bit confused. I have done some calculation in finding the solution and need the help of you guys to know wether im doing it right or what i need to do to do it right.
    Question:
    192.228.17.56 which is on the first subnet of a LAN, and a network address
    of 192.228.17.32. List all the subnetworks and broadcast addresses
    associated with this configuration

    So I have these two IP addresses, because they were similar in the first 3 octet I presumed they belong to Class C 255.255.255.0, but how would I find the mask of an IP address if I only had 192.228.17.56 ?

    There are two questions: Finding all the subnetworks and broadcast addresses.
    Now I don't really understand what it means "associated to this confifuration" in that context.
    but this is what I found:

    192.228.17.32 – 11000000.11100100.00010001.00100000
    192.228.17.56- 11000000.11100100.00010001.00111000
    255.255.255.0- 11111111.11111111.11111111.00000000

    The NetID & HostID

    Net id: 192.228.17 >> 11000000.11100100.00010001
    Host id: 32 >>00100000

    Subnetwork: 192.228.17.0 >>11000000.11100100.00010001.00000000
    which is the same for 192.228.17.56

    Broadcast address:

    Broadcast address 1: 11000000.11111111.11111111.11111111 >> 192.255.255.255
    Broadcast address 2: same

    so thats all I found.

    You think this answers the question properly?

    thank you

  2. #2
    Join Date
    Feb 2005
    Posts
    2,160

    Re: help :IP,subnets,broadcast etc

    The netmask is part of the IP configuration for the interface. You can't just guess. With that broadcast address, this looks like a class A network. How come you don't have the netmask information?

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured