www.usr.com/support/gpl/USR9107_release.1.4.tar.gz
[bcm963xx.git] / userapps / broadcom / cfm / html / setup_dsl.html
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2 <!--
3    (c) 2004-2005 U.S. Robotics Corporation.
4 -->
5 <html>
6 <head>
7         <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
8         <title>Setup</title>
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()
14 {
15         document.idForm.ntwkPrtcl.focus();
16         changeProtocol();
17
18         // if no wireless, go straight to Setup Login page
19         if ("<%ejGetWlJS(wlInterface)%>" != "1")
20                 document.idForm.action = "setup_login.cgi";
21 }
22
23 function changeProtocol()
24 {
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));
28
29
30         // empty encapsulation choices
31         while (document.idForm.encapMode.options.length > 0)
32                 document.idForm.encapMode.options[0] = null;
33
34         // rebuild encapsulation choices
35         switch (document.idForm.ntwkPrtcl.options.selectedIndex)
36         {
37                 case 0: // PPPoA
38                         document.idForm.encapMode.options[0] = new Option("VC/MUX",                             "0");
39                         document.idForm.encapMode.options[1] = new Option("LLC/SNAP",                           "1");
40                         break;
41
42                 case 1: // PPPoE
43                         document.idForm.encapMode.options[0] = new Option("LLC/SNAP",                           "0");
44                         break;
45
46                 case 2: // MER
47                 case 4: // Bridging
48                         document.idForm.encapMode.options[0] = new Option("LLC/SNAP-Bridging",  "0");
49                         document.idForm.encapMode.options[1] = new Option("VC/MUX",                             "1");
50                         break;
51
52                 case 3: // IPoA
53                         document.idForm.encapMode.options[0] = new Option("LLC/SNAP-Routing",   "0");
54                         document.idForm.encapMode.options[1] = new Option("VC/MUX",     "1");
55                         break;
56
57                 default:
58                         break;
59         }
60
61         // if there's only one encapsulation choice, hide it
62         setVisibility("idEncapsulation", (document.idForm.encapMode.options.length > 1));
63
64         // only PPPoA and PPPoE require a login
65         setVisibility("idLogin", (document.idForm.ntwkPrtcl.options.selectedIndex == 0) || (document.idForm.ntwkPrtcl.options.selectedIndex == 1));
66
67         // IPoA requires WAN IP info
68         setVisibility("idWanStaticIP", (document.idForm.ntwkPrtcl.options.selectedIndex == 3));
69 }
70
71 function validatePage()
72 {
73         if (!inRange("VPI", document.idForm.atmVpi, 0, 255))
74                 return false;
75         if (!inRange("VCI", document.idForm.atmVci, 32, 65535))
76                 return false;
77
78         // if PPPoA/E, validate login
79         if ((document.idForm.ntwkPrtcl.options.selectedIndex == 0) || (document.idForm.ntwkPrtcl.options.selectedIndex == 1))
80         {
81                 if (!validateUsername(document.idForm.pppUserName))
82                         return false;
83         }
84
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);
87
88         return true;
89 }
90         </script>
91 </head>
92
93 <body onload="initializePage();">
94
95 <script type="text/javascript">
96         setPageTitle("<%ejGetWlJS(wlInterface)%>");
97
98         if ("<%ejGetWlJS(wlInterface)%>" == "1")
99                 writeHeaderSetup(1, 3);
100         else
101                 writeHeaderSetup(1, 2);
102 </script>
103
104 <form name="idForm" action="setup_sec.cgi" method="post">
105         <input type="hidden" name="serviceName" id="serviceName" value="">
106
107 <h3>Configure Your Internet Connection</h3>
108
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
111 your DSL connection.
112 You may need to contact your Internet Service Provider for assistance in
113 determining the correct settings.</p>
114
115 <table>
116         <tr>
117                 <td><label for="">Protocol:</label></td>
118                 <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>
125                         </select>
126                 </td>
127         </tr>
128         <tr id="idEncapsulation">
129                 <td><label for="">Encapsulation:</label></td>
130                 <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>
137                         </select>
138                 </td>
139         </tr>
140
141         <tr>
142                 <td><label for="atmVpi">VPI:</label></td>
143                 <td>
144                         <input type="text" size="10" maxlength="3" name="atmVpi" id="atmVpi" class="clsTextfield" value="">
145                         <span class="clsNote">(0-255)</span>
146                 </td>
147         </tr>
148         <tr>
149                 <td><label for="atmVci">VCI:</label></td>
150                 <td>
151                         <input type="text" size="10" maxlength="5" name="atmVci" id="atmVci" class="clsTextfield" value="">
152                         <span class="clsNote">(32-65535)</span>
153                 </td>
154         </tr>
155 </table>
156
157 <p id="idHalfBridge"><input type="checkbox" name="pppIpExtension" id="pppIpExtension"> <label for="pppIpExtension">Half-bridge</label> <span class="clsNote">(also known as &ldquo;IP extension&rdquo;)</span></p>
158 <p id="idQoS"><input type="checkbox" name="enblQos" id="enblQos"> <label for="enblQos">Quality of service</label></p>
159
160
161
162 <div id="idLogin">
163 <h3>DSL Login</h3>
164
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&rsquo;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&rsquo;s <b>Internet</b>
169 page to configure your Internet connection.
170 </p>
171
172 <table>
173         <tr>
174                 <td><label for="pppUserName">User&nbsp;name:</label></td>
175                 <td>
176                         <input type="text" size="20" maxlength="256" name="pppUserName" id="pppUserName" class="clsTextfield" value="">
177                 </td>
178         </tr>
179         <tr>
180                 <td><label for="pppPassword">Password:</label></td>
181                 <td>
182                         <input type="text" size="20" maxlength="32" name="pppPassword" id="pppPassword" class="clsTextfield" value="">
183                 </td>
184         </tr>
185         <tr>
186                 <td><label for="">Authentication:</label></td>
187                 <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>
193                         </select>
194                 </td>
195         </tr>
196 </table>
197 </div>
198
199 <div id="idWanStaticIP">
200 <h3>IP Addresses</h3>
201
202 <table border="0">
203    <tr>
204       <td><label for="wanIpAddress">WAN IP address:</label></td>
205       <td><input type="text" size="20" name="wanIpAddress" id="wanIpAddress" class="clsTextfield"></td>
206    </tr>
207         <tr>
208                 <td><label for="wanSubnetMask">WAN Subnet mask:</label></td>
209                 <td>
210                         <input type="text" size="20" maxlength="15" name="wanSubnetMask" id="wanSubnetMask" class="clsTextfield" value="255.255.255.0">
211                 </td>
212         </tr>
213         <tr>
214                 <td><label for="defaultGateway">Default gateway:</label></td>
215                 <td>
216                         <input type="text" size="20" maxlength="15" name="defaultGateway" id="defaultGateway" class="clsTextfield" value="">
217                 </td>
218         </tr>
219
220         <tr><td>&nbsp;</td><td>&nbsp;</td></tr>
221
222         <tr>
223                 <td><label for="dnsPrimary">DNS servers:</label></td>
224                 <td>
225                         <input type="text" size="20" maxlength="15" name="dnsPrimary" id="dnsPrimary" class="clsTextfield" value="">
226                 </td>
227         </tr>
228         <tr>
229                 <td></td>
230                 <td>
231                         <input type="text" size="20" maxlength="15" name="dnsSecondary" id="dnsSecondary" class="clsTextfield" value="">
232                 </td>
233         </tr>
234 </table>
235 </div>
236
237 <p class="clsSave">When you&rsquo;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. -->
240
241 </form>
242
243 <script type="text/javascript">
244         writeFooter();
245 </script>
246
247 </body>
248 </html>