📄 ppplab.htm
字号:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>Cisco Discovery Protocol Lab</title>
</head>
<body>
<script language="Javascript">
<!--
function printpage() {
if (window.print)
window.print()
else
alert("Sorry, your browser doesn't support this feature.");
}
//-->
</script>
<FORM>
<INPUT TYPE="button" VALUE="Print this page" onClick="printpage()">
</FORM>
<p><font face="Arial"><b><font size="4" color="green">Lab: </font></b><font size="4" color="#008000"><b>PPP
with CHAP Authentication</b></font></font></p>
<p><font face="Arial"><i>Objective</i>: To understand how
PPP encapsulation works and how to secure the connection with CHAP
Authentication.<br>
<i>Lab Equipment</i><font color="maroon">:</font> We will be using eRouter 1 &
eRouter 4. To
select eRouter 1 click on the button
eRouter1 at the top of your screen. Connect to eRouter 1
now.</font></p>
<p><font color="#FF00FF"><b><font face="Times New Roman, Times, serif">1.</font></b></font><font face="Times New Roman, Times, serif">
Enter global configuration mode on eRouter 1 </font></p>
<form name="form21">
<p><font face="Times New Roman, Times, serif">
<select size="1">
<option>- Click Here to View Answer -</option>
<option>Router>enable</option>
<option>Router#conf t</option>
<option>Router(config)#</option>
</select>
</font></p>
</form>
<p align="left"><font face="Times New Roman, Times, serif"><b><font color="#FF00FF">2.</font><font color="#800080">
</font></b>On Router 1 change the hostname to <b>R1</b> </font></p>
<form name="form31">
<p><font face="Times New Roman, Times, serif">
<select size="1">
<option>- Click Here to View Answer -</option>
<option>Router(config)#hostname R1</option>
<option>R1(config)#</option>
</select>
</font></p>
</form>
<p><font color="#FF00FF" face="Times New Roman, Times, serif"><b>3.</b> </font><font face="Times New Roman, Times, serif">The
enable secret passwords will be used along with the hostname to pass over to
the other router. You must use the same password on both sides to get CHAP to
work. Set R1's Enable secret password to <b>sameone</b></font></p>
<form name="form81">
<p><font face="Times New Roman, Times, serif">
<select size="1" name="1">
<option>- Click Here to View Answer -</option>
<option>R1(config)#enable secret sameone</option>
</select>
</font></p>
</form>
<p><font color="#FF00FF" face="Times New Roman, Times, serif"><b>4.</b></font><font face="Times New Roman, Times, serif">
On R1, set a username for R4 with password <b>sameone</b></font></p>
<form name="form91">
<p><font face="Times New Roman, Times, serif">
<select size="1" name="1">
<option>- Click Here to View Answer -</option>
<option>R1(config)#username R4 password sameone</option>
</select>
</font></p>
</form>
<p><font color="#FF00FF" face="Times New Roman, Times, serif"><b>5.</b></font><font face="Times New Roman, Times, serif">
On R1 assign a IP address of 10.1.1.1 255.255.255.0 to the Serial 0 interface.</font></p>
<form name="form51">
<p><font face="Times New Roman, Times, serif">
<select size="1" name="1">
<option>- Click Here to View Answer -</option>
<option>R1(config)#interface Serial 0</option>
<option>R1(config-if)#ip address 10.1.1.1 255.255.255.0</option>
</select>
</font></p>
</form>
<p><font face="Times New Roman, Times, serif"><b><font color="#FF00FF">6. </font></b>On
R1 set the encapsulation for the serial interface to PPP</font></p>
<p><font face="Times New Roman, Times, serif">
<select size="1" name="1">
<option>- Click Here to View Answer -</option>
<option>R1(config-if)#encapsulation ppp</option>
</select>
</font></p>
<p><font color="#FF00FF" face="Times New Roman, Times, serif"><b>7.</b></font><font face="Times New Roman, Times, serif"><b>
</b>On R1 set PPP authentication to CHAP on the serial interface</font></p>
<form name="forma1">
<p><font face="Times New Roman, Times, serif">
<select size="1" name="1">
<option>- Click Here to View Answer -</option>
<option>R1(config-if)#ppp authentication chap</option>
</select>
</font></p>
</form>
<p><font face="Times New Roman, Times, serif"><b><font color="#FF00FF">8.</font></b>
Now make sure the Serial 0 interface is enabled</font></p>
<p><font face="Times New Roman, Times, serif">
<select size="1" name="1">
<option>- Click Here to View Answer -</option>
<option>R1(config-if)#no shutdown</option>
<option>R1(config-if)#exit</option>
<option>R1(config)#</option>
</select>
</font></p>
<p><font color="#FF00FF" face="Times New Roman, Times, serif"><b>9</b></font><font face="Times New Roman, Times, serif"><b><font color="#FF00FF">.</font></b>
Select eRouter 4 from the buttons and enter privilege mode, then change the
hostname to <b>R4</b><br>
</font></p>
<form name="form41">
<p><font face="Times New Roman, Times, serif">
<select size="1" name="d">
<option>- Click Here to View Answer -</option>
<option>eRouter#config t</option>
<option>eRouter(config)#hostname R4</option>
<option>R4(config)#</option>
</select>
</font></p>
</form>
<p><font color="#FF00FF" face="Times New Roman, Times, serif"><b>10.</b></font><font face="Times New Roman, Times, serif">
Now on R4 we will need to set a secret password of <b>sameone</b></font></p>
<form name="form71">
<p><font face="Times New Roman, Times, serif">
<select size="1" name="1">
<option>- Click Here to View Answer -</option>
<option>R4(config)#enable secret sameone</option>
</select>
</font></p>
</form>
<p><font face="Times New Roman, Times, serif"><b><font color="#FF00FF">11.</font></b>
Now we need to add a username for R1 with password <b>sameone</b>. What
command will accomplish this?</font></p>
<p><font face="Times New Roman, Times, serif">
<select size="1" name="1">
<option>- Click Here to View Answer -</option>
<option>R4(config)#username R1 password sameone</option>
</select>
</font></p>
<p><font color="#FF00FF" face="Times New Roman, Times, serif"><b>12</b></font><font face="Times New Roman, Times, serif"><b><font color="#FF00FF">.
</font></b>Now enable the Serial 0 interface on R4 and assign an IP address
of 10.1.1.2 255.255.255.0.</font></p>
<p><font face="Times New Roman, Times, serif">
<select size="1" name="1">
<option>- Click Here to View Answer -</option>
<option>R4(config)#interface Serial 0</option>
<option>R4(config-if)#ip address 10.1.1.2 255.255.255.0</option>
<option>R4(config-if)#no shutdown</option>
</select>
</font></p>
<p><font color="#FF00FF" face="Times New Roman, Times, serif"><b>14.</b></font><font face="Times New Roman, Times, serif">
We need to set the Serial 0 PPP authentication to CHAP on R4</font></p>
<p><font face="Times New Roman, Times, serif">
<select size="1" name="1">
<option>- Click Here to View Answer -</option>
<option>R4(config-if)#ppp authentication chap</option>
</select>
</font></p>
<p><font color="#FF00FF" face="Times New Roman, Times, serif"><b>13.</b></font><font face="Times New Roman, Times, serif">
The last thing to do is enable PPP Encapsulation on the Serial 0 interface of
R4 now watch the State change to up!</font></p>
<form name="form61">
<p><font face="Times New Roman, Times, serif">
<select size="1" name="1">
<option>- Click Here to View Answer -</option>
<option>R4(config-if)#encapsulation ppp</option>
<option>R4(config-if)#exit</option>
</select>
</font></p>
</form>
<p> </p>
<p><font face="Times New Roman, Times, serif">A Good link for covering the PPP/CHAP
authentication is found here: <a target="_blank" href="http://www.cisco.com/warp/public/471/understanding_ppp_chap.html">http://www.cisco.com/warp/public/471/understanding_ppp_chap.html</a></font></p>
<p><font face="Times New Roman, Times, serif" size="2"><span class="724482219-24092001">Copyright
(c) 1998-2003 Boson Software, Inc. All Rights Reserved.</span></font></p>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -