![]() ![]() Z2 = D - w2 * wOctet - x2 * xOctet - y2 * yOctet Y2 = math.floor((D - w2 * wOctet - x2 * xOctet) / yOctet) ![]() X2 = math.floor((D - w2 * wOctet) / xOctet) G=int(input("Now supply the prefix length of your gateway subnet: "))ĭ = w * wOctet x * xOctet y * yOctet z Print("Please supply your virtual network address space in the form of w.x.y.z/n.") Print("*** Gateway subnet address space calculator for Azure virtual networks ***") # Collect the values of w.x.y.z/n for your VNet address space and g, the prefix length of your gateway subnet Use this code block to create a console app in Python. Z2 = d - w2 * wOctet - x2 * xOctet - y2 * yOctet Ĭonsole.WriteLine("For the Azure virtual address space ", w2, x2, y2, z2, gwPrefLen) Ĭonsole.WriteLine("Press ENTER to quit.") Y2 = (d - w2 * wOctet - x2 * xOctet) / yOctet GwPrefLen = Convert.ToInt32(Console.ReadLine()) ĭ = w * wOctet x * xOctet y * yOctet z įor (int i = vnetPrefLen 1 i < gwPrefLen 1 i ) VnetPrefLen = Convert.ToInt32(Console.ReadLine()) Ĭonsole.WriteLine("Now supply the prefix length of your gateway subnet:")
0 Comments
Leave a Reply. |