1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
3 (c) 2005 U.S. Robotics Corporation
9 <link href="usr_main.css" rel="stylesheet" type="text/css">
10 <link href="usr_menus.css" rel="stylesheet" type="text/css"><script src="usr_menus.js" type="text/javascript"></script><script src="usr_menus_build.js" type="text/javascript"></script>
11 <script src="usr_common.js" type="text/javascript"></script>
13 <meta HTTP-EQUIV='Pragma' CONTENT='no-cache'>
15 <script type="text/javascript" src="util.js"></script>
16 <script type="text/javascript">
19 setPageTitle("<%ejGetWlJS(wlInterface)%>");
22 with ( document.forms[0] ) {
30 var loc = 'rtroutecfg.cmd?action=add';
31 with ( document.forms[0] ) {
32 if ( isValidIpAddress(dstAddr.value) == false ) {
33 alert('Destination "' + dstAddr.value + '" has invalid IP address.');
36 if ( isValidIpAddress(dstMask.value) == false && dstMask.value != '255.255.255.255') {
37 alert('Subnet mask "' + dstMask.value + '" has invalid IP address.');
40 loc += '&dstAddr=' + dstAddr.value;
41 loc += '&dstMask=' + dstMask.value;
42 if (gwStr.checked == false && ifStr.checked == false) {
43 alert('Need to select <b>Use gateway IP Address</b> and/or <b>Use Interface</b>.');
46 if (gwStr.checked == true) {
47 if ( isValidIpAddress(dstGtwy.value) == false ) {
48 alert('Default gateway "' + dstGtwy.value + '" has invalid IP address.');
51 loc += '&dstGtwy=' + dstGtwy.value;
53 loc += '&dstGtwy=' + '0.0.0.0';
54 if (ifStr.checked == true) {
55 var idx = dstWanIf.selectedIndex;
56 var ifc = dstWanIf.options[idx].value;
57 // if chosen interface is MER but does not specify static IP address then display error
58 if ( ifc.indexOf('nas_') != -1 && gwStr.checked == false ) {
59 alert('Gateway IP address should be specified since MER interface is selected.');
62 loc += '&dstWanIf=' + ifc;
65 loc += '&dstWanIf=' + '';
67 var code = 'location = "' + loc + '"';
74 <body onload="initMenu();">
76 <script type="text/javascript">
77 writeHeader("Routing", "<%ejGetJS(curUserName)%>", "<%ejGetOther(sysInfo, adslStd)%>", "<%ejGetOther(sysInfo, noBrPrtcl)%>", <%ejGetOther(sysInfo, pppIpExtension)%>, <%ejGetOther(sysInfo, enblFirewall)%>, <%ejGetOther(sysInfo, enblNat)%>, "<%ejGetWlJS(wlInterface)%>", <%ejGetJS(enblQos)%>);
81 <h3>Add Static Route</h3>
83 <p>Enter the destination network address, subnet mask, gateway, or available
84 WAN interface then press <b>Apply</b> to add the entry to the routing table.</p>
86 <table border="0" cellpadding="1" cellspacing="0">
88 <td><label for="dstAddr">Destination network address:</label></td>
89 <td><input type='text' name='dstAddr' id='dstAddr'></td>
92 <td><label for="dstMask">Subnet mask:</label></td>
93 <td><input type='text' name='dstMask' id='dstMask'></td>
99 <td><input type="checkbox" name='gwStr' id='gwStr'> <label for="gwStr">Use gateway IP address:</label></td>
100 <td><input type='text' name='dstGtwy' id='dstGtwy'></td>
103 <td><input type="checkbox" name='ifStr' id='ifStr' checked> <label for="ifStr">Use interface:</label></td>
104 <td><select name='dstWanIf' id='dstWanIf'>
105 <script type="text/javascript">
109 var interfaceInfo = '<%ejGetOther(wanInterfaceInfo, route)%>';
110 var interfaces = interfaceInfo.split('|');
112 for ( i = 0; i < interfaces.length; i++ ) {
113 var names = interfaces[i].split('/');
114 document.write(" <option value='" + names[1] + "'>");
115 document.writeln(interfaces[i]);
117 document.writeln(" <option value='br0'> LAN/br0");
125 <p><input type='button' onClick='btnApply()' value='Apply'></p>
128 <script type="text/javascript">