get subnet mask and gateway from IP address
问题 How can i calculate subnet mask and gateway from an IP address ? Suppose my IP address is 180.12.24.68 Then how can i calculate this IP's subnet mask and gateway? 回答1: You cannot calculate your subnet mask or gateway from just an IP address. You can calculate the range that a potential gateway could be in given an IP address and a netmask. But, the range is basically ((My LAN segment Size) - MyIP). Generally this will be around 253 IP addresses unless you're on a large network. Given a