0

I have an IP address 10.1.0.4

and subnet 129

How can I determine Network IP, Gateway and Broadcast IP?

Cœur
  • 37,241
  • 25
  • 195
  • 267
user1483959
  • 3
  • 1
  • 2
  • What platform? And manually, or programmatically? This question should be clarified or moved or closed. – Matt Jun 26 '12 at 21:20

1 Answers1

-1

You can't determine the gateway, your ISP or sysadmin should have told you what gateway to use.

I don't know what you mean by "Network IP"; you IP address is a network IP address.

The broadcast depends on the network mask, it's the mask with the trailing zeroes replaced by ones.

WhyNotHugo
  • 9,423
  • 6
  • 62
  • 70
  • thank you. But the thing is I have to calculate it manually. The ip address is 10.1.0.4 and Subnet is /29 what is the broadcast IP ? – user1483959 Jun 27 '12 at 13:32
  • The gateway can be any arbitrarily defined IP address that the sysadmin chose at his own whim the day he set the network up, theres *no way* to know which one it is (other than trying the entire /29 block). – WhyNotHugo Jun 28 '12 at 02:51
  • As for the broadcast address, this may help further: http://stackoverflow.com/questions/777617/calculate-broadcast-address-from-ip-and-subnet-mask – WhyNotHugo Jun 28 '12 at 02:51