Understanding Default IP Address for a Router with Assigned IP and Subnet Mask

  • Thread starter Thread starter jekyllz
  • Start date Start date
Join the discussion
Registration is free. Start your own thread to ask a follow-up.
2 replies · 2K views
jekyllz
Messages
1
Reaction score
0
If we assign the IP address 00001010.11111110.00000001.00001001 and the subnet mask 11111111.11111111.11111111.11111000 to a switch, what is the default IP address for the router?

Answer: 00001010.11111110.00000001.00001110

Why? Why 00001010.11111110.00000001.00001110 and not something else?
 
Physics news on Phys.org
could you pls provide more context to the question? The IP address in your answer is correct, but it is not the only correct possibility.

First of all, switch is a L2 device, there are no IP addresses assigned to its ports (maybe just admin IP for remote management?) There exists L3 switches which operate at the network layer and needs IP addressing for their ports, but their usage is very specific. Is this your case?

Regardless the above, let me ask you question:
if you define a subnet with a mask 11111111.11111111.11111111.11111000 (/29), how many hosts (devices) you can actually address within that subnet?