IP地址划分(有兴趣的朋友可将代码保存为.hta文件)
时间:2007-02-14 来源:evegl
|
编号 | IP地址 | 掩码 | 网络地址 | 广播地址 |
1 | ||||
2 | ||||
3 | ||||
4 | ||||
5 |
<html>
<head>
<title>Additional Subnets</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<style type="text/css">
<!--
a:link { text-decoration: none; color: #0000FF}
a:hover { color: #FF6666; text-decoration: none}
a:active { text-decoration: none}
a:visited { text-decoration: none }
-->
</style></head>
<body bgcolor="#336699">
<table border=0 cellspacing=0 cellpadding=0 width="95%" height="16" rows="3">
<tr valign=baseline bgcolor="#C4C6C3" align="center">
<td valign=baseline height="182">
<h2 align="center"><br></h2>
<h2 align="center">网络地址配置<br></h2>
<center>
<form method="post" name="myform" action="/admin-cgi-bin/subnetlist.cgi?eth1" onSubmit="return CheckForm()">
<table width="90%" bordercolor="#AEAEAE" border="2" cellspacing="1" cellpadding="1">
<tr>
<td height="26" bgcolor="#AEAEAE" width="10%"><div align="center"><b>编号</b></div></td>
<td height="26" bgcolor="#AEAEAE" width="18%"><div align="center"><b>IP地址</b></div></td>
<td height="26" bgcolor="#AEAEAE" width="18%"><div align="center"><b>掩码</b></div></td>
<td height="26" bgcolor="#AEAEAE" width="18%"><div align="center"><b>网络地址</b></div></td>
<td height="26" bgcolor="#AEAEAE" width="18%"><div align="center"><b>广播地址</b></div></td>
</tr>
<tr><td height=21 width=3%><div align=center>1</div></td>
<td height=21 width=18%><div align=center><input type=text name="ip_addr_2" size=16 maxlength=15 value="" onBlur="SetNetAddr(2)"></div></td>
<td height=21 width=18%><div align=center><input type=text name="netmask_2" size=16 maxlength=15 value="" onBlur="SetNetAddr(2)"></div></td>
<td height=21 width=18%><div align=center><input type=text name="netaddr_2" size=16 maxlength=15 value=""></div></td>
<td height=21 width=18%><div align=center><input type=text name="broadcast_2" size=16 maxlength=15 value=""></div></td>
<tr><td height=21 width=3%><div align=center>2</div></td>
<td height=21 width=18%><div align=center><input type=text name="ip_addr_3" size=16 maxlength=15 value="" onBlur="SetNetAddr(3)"></div></td>
<td height=21 width=18%><div align=center><input type=text name="netmask_3" size=16 maxlength=15 value="" onBlur="SetNetAddr(3)"></div></td>
<td height=21 width=18%><div align=center><input type=text name="netaddr_3" size=16 maxlength=15 value=""></div></td>
<td height=21 width=18%><div align=center><input type=text name="broadcast_3" size=16 maxlength=15 value=""></div></td>
<tr><td height=21 width=3%><div align=center>3</div></td>
<td height=21 width=18%><div align=center><input type=text name="ip_addr_4" size=16 maxlength=15 value="" onBlur="SetNetAddr(4)"></div></td>
<td height=21 width=18%><div align=center><input type=text name="netmask_4" size=16 maxlength=15 value="" onBlur="SetNetAddr(4)"></div></td>
<td height=21 width=18%><div align=center><input type=text name="netaddr_4" size=16 maxlength=15 value=""></div></td>
<td height=21 width=18%><div align=center><input type=text name="broadcast_4" size=16 maxlength=15 value=""></div></td>
<tr><td height=21 width=3%><div align=center>4</div></td>
<td height=21 width=18%><div align=center><input type=text name="ip_addr_5" size=16 maxlength=15 value="" onBlur="SetNetAddr(5)"></div></td>
<td height=21 width=18%><div align=center><input type=text name="netmask_5" size=16 maxlength=15 value="" onBlur="SetNetAddr(5)"></div></td>
<td height=21 width=18%><div align=center><input type=text name="netaddr_5" size=16 maxlength=15 value=""></div></td>
<td height=21 width=18%><div align=center><input type=text name="broadcast_5" size=16 maxlength=15 value=""></div></td>
<tr><td height=21 width=3%><div align=center>5</div></td>
<td height=21 width=18%><div align=center><input type=text name="ip_addr_6" size=16 maxlength=15 value="" onBlur="SetNetAddr(6)"></div></td>
<td height=21 width=18%><div align=center><input type=text name="netmask_6" size=16 maxlength=15 value="" onBlur="SetNetAddr(6)"></div></td>
<td height=21 width=18%><div align=center><input type=text name="netaddr_6" size=16 maxlength=15 value=""></div></td>
<td height=21 width=18%><div align=center><input type=text name="broadcast_6" size=16 maxlength=15 value=""></div></td>
<input type=hidden name="count" value=7>
</table>
</form>
<br><br>
</center>
</td>
</tr>
</table>
<br><br>
</body>
</html>