📄 ntpauthlab.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><b><font size="4" color="green" face="Arial">Lab: Network Time Protocol
(NTP) with Authentication</font></b></p>
<p><i><font face="Arial, Helvetica, sans-serif">Objective</font></i><font face="Arial, Helvetica, sans-serif">:
To understand how to setup NTP with Authentication on Cisco Routers.<br>
<i>Lab Equipment</i><font color="maroon">:</font></font> <font face="Arial, Helvetica, sans-serif"> We
will be using eRouter 1 & eRouter 2 To select eRouter 1 click on the
button eRouter1 at the top of your screen. Connect to eRouter 1 now. You
can always use the Tile button to view multiple windows at once.</font></p>
<font face="Times New Roman, Times, serif"><font face="Times New Roman"> </font>
<p><font color="#FF00FF" face="Times New Roman, Times, serif"><b>1.</b></font><font face="Times New Roman, Times, serif">
Setup the connection between eRouter 1 (hostname <b>eRouter1</b>), and Router
2 (hostname <strong>eRouter2</strong>). eRouter 1 will have an IP address of
1.1.1.1 with a 255.255.255.0 subnet mask . </font></p>
<font face="Arial, Helvetica">
<p><font face="Times New Roman, Times, serif">
<select size="1" name="name">
<option>- Click Here to View Answer -</option>
<option>Router>enable</option>
<option>Router#conf t</option>
<option>Router(config)#hostname eRouter1</option>
<option>eRouter1(config)#interface E0</option>
<option>eRouter1(config-if)#ip address 1.1.1.1 255.255.255.0</option>
<option>eRouter1(config-if)#no shut</option>
<option>eRouter1(config-if)#end</option>
</select>
</font></p>
<font face="Times New Roman">
<p><font face="Times New Roman, Times, serif">Now connect to eRouter 2 by clicking
on the eRouter 2 button and give it an ip address of 1.1.1.2 with a 255.255.255.0
subnet mask.</font></p>
</font>
<p><font face="Times New Roman, Times, serif">
<select size="1" name="name">
<option>- Click Here to View Answer -</option>
<option>Router>enable</option>
<option>Router#conf t</option>
<option>Router(config)#hostname eRouter2</option>
<option>eRouter2(config)#interface e0</option>
<option>eRouter2(config-if)#ip address 1.1.1.2 255.255.255.0</option>
<option>eRouter2(config-if)#no shut</option>
</select>
</font></p>
<font face="Times New Roman">
<p><font face="Times New Roman, Times, serif"><b><font color="#FF00FF">2.</font></b>
Configure NTP between eRouter 1 and eRouter 2. eRouter 1 should be a client
and learn the time from eRouter 2. eRouter 2 will be the master. On eRouter
2 set the clock.</font></p>
</font>
<p><font face="Times New Roman, Times, serif">
<select size="1" name="name">
<option>- Click Here to View Answer -</option>
<option>eRouter2#clock set 09:21:33 October 5 2001</option>
</select>
</font></p>
<font face="Times New Roman">
<p><font face="Times New Roman, Times, serif"><b><font color="#FF00FF">3.</font></b>
Now set eRouter 2 to act as the NTP MASTER.</font></p>
</font>
<p><font face="Times New Roman, Times, serif">
<select size="1" name="name">
<option>- Click Here to View Answer -</option>
<option>eRouter2#conf t</option>
<option>eRouter2(config)#ntp master 1</option>
</select>
</font></p>
<font face="Times New Roman">
<p><font color="#FF00FF" face="Times New Roman, Times, serif"><b>4.</b></font><font face="Times New Roman, Times, serif">
Since we are using Authentication we will need to tell eRouter 2 to use authentication</font></p>
</font>
<p><font face="Times New Roman, Times, serif">
<select size="1" name="name">
<option>- Click Here to View Answer -</option>
<option>eRouter2(config)#ntp authenticate</option>
</select>
</font></p>
</font> <font face="Times New Roman">
<p><font face="Times New Roman, Times, serif"><b><font color="#FF00FF">5.</font></b>
Also set the Authentication key and the password we will use is boson</font></p>
</font> <font face="Arial, Helvetica">
<p><font face="Times New Roman, Times, serif">
<select size="1" name="name">
<option>- Click Here to View Answer -</option>
<option>eRouter2(config)#ntp authentication-key 1 md boson</option>
</select>
</font></p>
</font> <font face="Times New Roman">
<p><font color="#FF00FF" face="Times New Roman, Times, serif"><b>6.</b></font><font face="Times New Roman, Times, serif">
Next specify which key will be trusted.</font></p>
</font> <font face="Arial, Helvetica">
<p><font face="Times New Roman, Times, serif">
<select size="1" name="name">
<option>- Click Here to View Answer -</option>
<option>eRouter2(config)#ntp trusted-key 1</option>
</select>
</font></p>
<font face="Times New Roman">
<p><font face="Times New Roman, Times, serif"><b><font color="#FF00FF">7.</font></b>
Connect to eRouter1 and make sure you can ping eRouter 2. </font></p>
</font>
<p><font face="Times New Roman, Times, serif">
<select size="1" name="name">
<option>- Click Here to View Answer -</option>
<option>eRouter1#ping 1.1.1.2</option>
</select>
</font></p>
<font face="Times New Roman">
<p><font face="Times New Roman, Times, serif"><b><font color="#FF00FF">8.</font></b>
Since we are using Authentication we will need to tell eRouter 1 to use authentication.</font></p>
</font>
<p><font face="Times New Roman, Times, serif">
<select size="1" name="name">
<option>- Click Here to View Answer -</option>
<option>eRouter1#config t</option>
<option>eRouter1(config)#ntp authenticate</option>
</select>
</font></p>
<font face="Times New Roman">
<p><font face="Times New Roman, Times, serif"><b><font color="#FF00FF">9.</font></b>
Also set the Authentication key and the password we will use is <b>boson</b></font></p>
</font>
<p><font face="Times New Roman, Times, serif">
<select size="1" name="name">
<option>- Click Here to View Answer -</option>
<option>eRouter1(config)#ntp authentication-key 1 md boson</option>
</select>
</font></p>
<font face="Times New Roman">
<p><font face="Times New Roman, Times, serif"><b><font color="#FF00FF">10.</font></b>
Next specify which key will be trusted.</font></p>
</font>
<p><font face="Times New Roman, Times, serif">
<select size="1" name="name">
<option>- Click Here to View Answer -</option>
<option>eRouter1(config)#ntp trusted-key 1</option>
</select>
</font></p>
<font face="Times New Roman">
<p><font face="Times New Roman, Times, serif"><b><font color="#FF00FF">11.</font></b>
Set the IP address of the NTP Server on eRouter 1.</font></p>
</font>
<p><font face="Times New Roman, Times, serif">
<select size="1" name="name">
<option>- Click Here to View Answer -</option>
<option>eRouter1(config)#ntp server 1.1.1.2 </option>
</select>
</font></p>
<font face="Times New Roman">
<p><font face="Times New Roman, Times, serif"><b><font color="#FF00FF">12 .</font></b>
Ensure that the time becomes synchronized between the two routers.<br>
Verify that the NTP master is properly synched. </font></p>
</font>
<p><font face="Times New Roman, Times, serif">
<select size="1" name="name">
<option>- Click Here to View Answer -</option>
<option>eRouter1(config)#exit</option>
<option>eRouter1#show ntp status</option>
</select>
</font></p>
<font face="Times New Roman, Times, serif"><font face="Times New Roman"> </font>
<p> <font face="Times New Roman, Times, serif"><br>
<b><font color="#FF00FF">13.</font></b> Verify NTP connectivity to the NTP master
from Router A. </font><br>
<br>
<font face="Times New Roman">
<select size="1" name="name">
<option>- Click Here to View Answer -</option>
<option>eRouter1#show ntp associations</option>
</select></font></p>
<font face="Times New Roman">
<p><br>
<br>
<b>Did I Succeed?</b></p>
<p>On eRouter 1 you should be able to view the NTP associations, you should also
see the IP address of eRouter 2 listed with an '*' to the left of it:</p>
</font>
<p><font face="Terminal" size="2">eRouter1#sh ntp associations<br>
<br>
address ref clock st when poll reach delay offset disp<br>
*~1.1.1.2 .LOCL. 1 58 64 377 1.8
-0.37 0.3<br>
* master (synced), # master (unsynced), + selected, - candidate, ~ configured<br>
eRouter1#</font></p>
</font>
</font>
<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 + -