forked from davidc/subnets
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
69 lines (66 loc) · 2.72 KB
/
Copy pathindex.html
File metadata and controls
69 lines (66 loc) · 2.72 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<html>
<head>
<title>Visual Subnet Calculator</title>
<script src="js/subnet.js" language="javascript" type="text/javascript"></script>
<link href="css/subnet.css" rel="stylesheet" type="text/css" />
<link href="css/bootstrap.min.css" rel="stylesheet" crossorigin="anonymous">
</head>
<body>
<h1>Visual Subnet Calculator</h1>
<p>Enter the network you wish to subnet.</p>
<form name="calc" onsubmit="updateNetwork(); return false;">
<table class="table">
<thead>
<tr>
<td class="label">Network Address</td>
<td class="label">Mask bits</td>
</tr>
<tr>
<td><input type="text" name="network" size="15" maxlength="15" value="192.168.0.0"></td>
<td>/<input type="text" name="netbits" size="2" maxlength="2" value="16"></td>
<td><input type="submit" value="Update">
<input type="button" value="Reset" onclick="if (confirm('This will reset all subnet divisions you have made. Proceed?')) startOver();">
</td>
</tr>
</thead>
</table>
<!-- Modified Show columns options below to toggleColumn function fix and removed divide/join checkboxes -->
<p>Show columns:
<input type="checkbox" id="cb_subnet" checked onclick="toggleColumn(this)"><label for="cb_subnet">Subnet address</label>
<input type="checkbox" id="cb_netmask" checked onclick="toggleColumn(this)"><label for="cb_netmask">Netmask</label>
<input type="checkbox" id="cb_range" checked onclick="toggleColumn(this)"><label for="cb_range">Range of addresses</label>
<input type="checkbox" id="cb_useable" checked onclick="toggleColumn(this)"><label for="cb_useable">Useable IPs</label>
<input type="checkbox" id="cb_hosts" checked onclick="toggleColumn(this)"><label for="cb_hosts">Hosts</label>
</p>
<p>Azure Options:
<input type="checkbox" id="cb_azgw" checked onclick="toggleColumn(this)"><label for="cb_azgw">Azure Gateway</label>
</p>
</form>
<p>Click below to split and join subnets.</p>
<hr noshade color="black" size="1">
<table id="subnettable" class="calc" cellspacing="0" cellpadding="2">
<thead>
<tr>
<td id="col_subnet">Subnet address</td>
<td id="col_netmask">Netmask</td>
<td id="col_range">Range of addresses</td>
<td id="col_useable">Useable IPs</td>
<td id="col_hosts">Hosts</td>
<td id="col_divide">Divide</td>
<td id="joinHeader">Join</td>
</tr>
</thead>
<tbody id="calcbody">
<!--tr>
<td>130.94.203.0/24</td>
<td>130.94.203.0 - 130.94.203.255</td>
<td>130.94.203.1 - 130.94.203.254 (254)</td>
<td>Divide</td>
</tr-->
</tbody>
</table>
<p><br>If you wish to save this subnetting for later, bookmark <a href="index.html" id="saveLink">this hyperlink</a>.<br>
Copyright © 2009-2020 <a href="http://www.davidc.net/" target="_blank">David C. A. Croft</a>.</p>
<script src="/js/bootstrap.min.js" crossorigin="anonymous"></script>
</body>
</html>