logo elektroda
logo elektroda
X
logo elektroda

Choosing Default Gateway & IP Address for Subnetwork A: 192.168.10.161-174, Mask 255.255.255.240

Maltitolu 33948 5
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 17272362
    Maltitolu
    Level 2  
    Hi, I'm trying to learn about computer networks and it's hard for me to find the answer.

    I had the given network IP address, I had to divide the network into subnets A, B, C, D. I counted everything up.

    Now let's take a computer on the A subnetwork for a workshop.
    In it I listed the addresses for hosts 192.168.10.161-192.168.10.174 and the mask 255.255.255.240

    I have to enter in the configuration panel
    IP address: 192.168.10.174
    Mask: 255.255.255.240
    Default gateway: 192.168.10.161

    Did I choose the IP address and default gateway correctly? Is there a rule about which values to choose from?

    I understand that later when I configure the appropriate router interface in PUTTY (in this case g0 / 0) I use the same address that I set earlier in the default gateway?

    Please help :)
  • ADVERTISEMENT
  • Helpful post
    #2 17272422
    przeqpiciel
    Network and Internet specialist
    This is so. If a packet is constructed to a host on your local network it is simply addressed there and pushed to the network card. However, if the packet is addressed to a host outside your network then the packet is directed to the router (default gateway / point that has access to other networks). So, answering your question - what gateway address to provide. One that is within your local network and simultaneously has access to other networks and is capable of routing.

    It is assumed that the first or last address in the range is taken. But it doesn't really matter.
  • ADVERTISEMENT
  • #3 17272553
    Maltitolu
    Level 2  
    Thank you for your answer.

    Choosing Default Gateway & IP Address for Subnetwork A: 192.168.10.161-174, Mask 255.255.255.240


    So according to this scheme, how do I have:
    [previously calculated:]
    available addresses in network A 192.168.10.161 - 192.168.10.174
    available addresses in network B 192.168.10.1 - 192.168.10.126

    It is on computer A that I can configure:
    IP address: 192.168.10.174
    Gate address: 192.168.10.161

    On computer B, I can configure:
    IP address: 192.168.10.126
    Gate address: 192.168.10.1

    Then configuring the interfaces on the router in PUTTY

    int g0 / 0
    description interface g0 / 0
    ip address 192.168.10.161
    no shut

    int g0 / 1
    description interface g0 / 1
    ip address 192.168.10.1
    no shut

    And should it be ok? I'm sorry to ask you that, it's probably clichéd but I just want to be sure
  • ADVERTISEMENT
  • #4 17273405
    dgolf
    Level 15  
    I am not a networker but you set the computers' IP address to the broadcast address.
  • ADVERTISEMENT
  • Helpful post
    #5 17273416
    przeqpiciel
    Network and Internet specialist
    Straightening, my first and last. The first and last are taken, omitting the network address and broadcast address. So for 192.168.0.0/24 you will not send 192.168.0.0 because it is a network address and you will not send 192.168.0.255 because it is a broadcast address. So if you broadcast somewhere it is a mistake.

    Although at the point to point contacts where you have the mask / 31, there is no other output :-)
  • Helpful post
    #6 17310592
    Kpc21
    Level 24  
    dgolf wrote:
    I am not a networker but you set the computers' IP address to the broadcast address.

    He does well.

    In the B .127 network it is broadcast, it gives one lower - .126. And similarly in A. There the whole subnet has 16 addresses from .160 to .175, he gave the first available (.161) to the router's address, and the last available (.174) to the host address. Of course, addresses from .162 to .173 are available all the time, and the host could be assigned even .162 or e.g. .170.

    Just a minor point - you don't configure anything in Putty. Putty is just an SSH client (+ some other protocols) and a terminal emulator. In Putty, you can configure at most the color or size of the font (for example, I like to set light green, larger letters and a sans-serif typeface). However, thanks to Putty, you connect to the router console and configure it all there :) Another popular terminal emulator is Tera Term, for example, and older versions of Windows had the Hyper Terminal program built in.

    / 31 on connection lines is a different matter - this is an exception, an additional "feature", introduced in a separate RFC at all. There, the broadcast address is basically not needed for anything, because there is only one other host in the network, someone noticed it, so they used it and introduced such a possibility.
ADVERTISEMENT