1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
3 (c) 2004-2005 U.S. Robotics Corporation.
7 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
9 <link href="usr_main.css" rel="stylesheet" type="text/css">
10 <script src="usr_common.js" type="text/javascript"></script>
11 <script src="usr_custom.js" type="text/javascript"></script>
12 <script type="text/javascript">
13 function initializePage()
15 document.idForm.ntwkPrtcl.focus();
18 // if no wireless, go straight to Setup Login page
19 if ("<%ejGetWl(wlInterface)%>" != "1")
20 document.idForm.action = "setup_login.cgi";
23 function changeProtocol()
25 // PPPoA and PPPoE only have these options
26 setVisibility("idHalfBridge", (document.idForm.ntwkPrtcl.options.selectedIndex <= 1));
27 setVisibility("idQoS", (document.idForm.ntwkPrtcl.options.selectedIndex <= 3));
30 // empty encapsulation choices
31 while (document.idForm.encapMode.options.length > 0)
32 document.idForm.encapMode.options[0] = null;
34 // rebuild encapsulation choices
35 switch (document.idForm.ntwkPrtcl.options.selectedIndex)
38 document.idForm.encapMode.options[0] = new Option("VC/MUX", "0");
39 document.idForm.encapMode.options[1] = new Option("LLC/SNAP", "1");
43 document.idForm.encapMode.options[0] = new Option("LLC/SNAP", "0");
48 document.idForm.encapMode.options[0] = new Option("LLC/SNAP-Bridging", "0");
49 document.idForm.encapMode.options[1] = new Option("VC/MUX", "1");
53 document.idForm.encapMode.options[0] = new Option("LLC/SNAP-Routing", "0");
54 document.idForm.encapMode.options[1] = new Option("VC/MUX", "1");
61 // if there's only one encapsulation choice, hide it
62 setVisibility("idEncapsulation", (document.idForm.encapMode.options.length > 1));
64 // only PPPoA and PPPoE require a login
65 setVisibility("idLogin", (document.idForm.ntwkPrtcl.options.selectedIndex == 0) || (document.idForm.ntwkPrtcl.options.selectedIndex == 1));
67 // IPoA requires WAN IP info
68 setVisibility("idWanStaticIP", (document.idForm.ntwkPrtcl.options.selectedIndex == 3));
71 function validatePage()
73 if (!inRange("VPI", document.idForm.atmVpi, 0, 255))
75 if (!inRange("VCI", document.idForm.atmVci, 32, 65535))
78 // if PPPoA/E, validate login
79 if ((document.idForm.ntwkPrtcl.options.selectedIndex == 0) || (document.idForm.ntwkPrtcl.options.selectedIndex == 1))
81 if (!validateUsername(document.idForm.pppUserName))
85 document.idForm.serviceName.value = buildServiceName(document.idForm.ntwkPrtcl.options.selectedIndex, document.idForm.atmVpi.value, document.idForm.atmVci.value);
86 //alert("Example of building a service name: " + document.idForm.serviceName.value);
93 <body onload="initializePage();">
95 <script type="text/javascript">
96 setPageTitle("<%ejGetWl(wlInterface)%>");
98 if ("<%ejGetWl(wlInterface)%>" == "1")
99 writeHeaderSetup(1, 3);
101 writeHeaderSetup(1, 2);
104 <form name="idForm" action="setup_sec.cgi" method="post">
105 <input type="hidden" name="serviceName" id="serviceName" value="">
107 <h3>Configure Your Internet Connection</h3>
109 <p>In order for your router to connect to the Internet, you will need to
110 enter the information your Internet Service Provider (ISP) gave you for
112 You may need to contact your Internet Service Provider for assistance in
113 determining the correct settings.</p>
117 <td><label for="">Protocol:</label></td>
119 <select name="ntwkPrtcl" id="ntwkPrtcl" onchange="changeProtocol();">
120 <option value="1" selected>PPP over ATM (PPPoA)</option>
121 <option value="0">PPP over Ethernet (PPPoE)</option>
122 <option value="2">MAC Encapsulated Routing (MER)</option>
123 <option value="5">IP over ATM (IPoA)</option>
124 <option value="3">Bridging</option>
128 <tr id="idEncapsulation">
129 <td><label for="">Encapsulation:</label></td>
131 <select name="encapMode" id="encapMode">
132 <!-- In case browser doesn't support dynamic options -->
133 <option value="0" selected>VC/MUX</option>
134 <option value="0">LLC/Encapsulation</option>
135 <option value="0">LLC/SNAP-Bridging</option>
136 <option value="0">LLC/SNAP-Routing</option>
142 <td><label for="atmVpi">VPI:</label></td>
144 <input type="text" size="10" maxlength="3" name="atmVpi" id="atmVpi" class="clsTextfield" value="">
145 <span class="clsNote">(0-255)</span>
149 <td><label for="atmVci">VCI:</label></td>
151 <input type="text" size="10" maxlength="5" name="atmVci" id="atmVci" class="clsTextfield" value="">
152 <span class="clsNote">(32-65535)</span>
157 <p id="idHalfBridge"><input type="checkbox" name="pppIpExtension" id="pppIpExtension"> <label for="pppIpExtension">Half-bridge</label> <span class="clsNote">(also known as “IP extension”)</span></p>
158 <p id="idQoS"><input type="checkbox" name="enblQos" id="enblQos"> <label for="enblQos">Quality of service</label></p>
165 <p>If your Internet Service Provider (ISP) provided a user name and password
166 for your Internet connection, please enter them here.
167 If you don’t know this information, you may need to contact your ISP for assistance.
168 In that case, complete the setup, and later use the router’s <b>Internet</b>
169 page to configure your Internet connection.
174 <td><label for="pppUserName">User name:</label></td>
176 <input type="text" size="20" maxlength="256" name="pppUserName" id="pppUserName" class="clsTextfield" value="">
180 <td><label for="pppPassword">Password:</label></td>
182 <input type="text" size="20" maxlength="32" name="pppPassword" id="pppPassword" class="clsTextfield" value="">
186 <td><label for="">Authentication:</label></td>
188 <select name="pppAuthMethod" id="pppAuthMethod">
189 <option value="0" selected>Automatic</option>
190 <option value="1">PAP</option>
191 <option value="2">CHAP</option>
192 <option value="3">MSCHAP</option>
199 <div id="idWanStaticIP">
200 <h3>IP Addresses</h3>
204 <td><label for="wanIpAddress">WAN IP address:</label></td>
205 <td><input type="text" size="20" name="wanIpAddress" id="wanIpAddress" class="clsTextfield"></td>
208 <td><label for="wanSubnetMask">WAN Subnet mask:</label></td>
210 <input type="text" size="20" maxlength="15" name="wanSubnetMask" id="wanSubnetMask" class="clsTextfield" value="255.255.255.0">
214 <td><label for="defaultGateway">Default gateway:</label></td>
216 <input type="text" size="20" maxlength="15" name="defaultGateway" id="defaultGateway" class="clsTextfield" value="">
220 <tr><td> </td><td> </td></tr>
223 <td><label for="dnsPrimary">DNS servers:</label></td>
225 <input type="text" size="20" maxlength="15" name="dnsPrimary" id="dnsPrimary" class="clsTextfield" value="">
231 <input type="text" size="20" maxlength="15" name="dnsSecondary" id="dnsSecondary" class="clsTextfield" value="">
237 <p class="clsSave">When you’re finished and are ready to go to the next step, press <b>Next</b>.</p>
238 <p><input type="submit" class="clsBtnSave" name="btnSubmit" value="Next -->" onclick="if (!validatePage()) return false;"></p>
239 <!-- If all entries are valid, Setup-Security is displayed. An error keeps the user here. -->
243 <script type="text/javascript">