📄 sysloglab.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>
<p><font face="Arial"><b><font size="4" color="green">Lab: </font></b><font size="4" color="#008000"><b>Syslog
Logging Lab</b></font></font></p>
<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" size="2"><i>Objective</i>: To understand how
to setup logging to a Syslog server<br>
<i>Lab Equipment</i><font color="maroon">:</font> We will be using eRouter 1. 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">
<p><font color="#FF00FF"><b>1.</b></font> This lab is very easy yet very important for the CCIE certification.
What you will do is setup the router to log certain messages to a syslog server
somewhere on your network. Syslog enables you to centrally log your
configuration events and error messages such as interface status and security
alerts. You can also use Syslog to capture client output in real-time. </p>
<p>Since we do not have a syslog server we will assume there is one running on
our network with the ip address 200.134.23.10 with subnet 255.255.255.0. The first thing you need to
do is set an ip address on your eRouter 1 Ethernet 0 interface. </p>
</font>
<font face="Arial, Helvetica">
<p><font face="Courier New"><select size="1" name="name">
<option>- Click Here to View Answer -</option>
<option>Router>enable</option>
<option>Router#</option>
<option>Router#conf t</option>
<option>Router(config)#hostname eRouter1</option>
<option>eRouter1(config)#interface E0</option>
<option>eRouter1(config)#</option>
<option>eRouter1(config-if)#ip address 200.134.23.1 255.255.255.0</option>
<option>eRouter1(config-if)#no shut</option>
<option>eRouter1(config-if)#exit</option>
</select></font><br>
<br>
</font>
<font face="Times New Roman">
<b><font color="#FF00FF">2.</font></b> Now you will need to tell the router the address of the syslog server.
What command would do this?</p>
</font>
<font face="Arial, Helvetica">
<p><font face="Courier New"><select size="1" name="name">
<option>- Click Here to View Answer -</option>
<option>eRouter1(config)#logging 200.134.23.10</option>
</select></font></p>
</font>
<font face="Times New Roman">
<p><font color="#FF00FF"><b>3.</b></font> Now that we have setup the syslog's IP address we need to tell it what
level of messages to log. When I mention level I mean the severity of
messages that we should log on the Syslog server. I have included a table below
to show the most common levels.</p>
</font>
<font face="Arial, Helvetica">
<div style="border-left:medium none; border-right:medium none; border-top:medium none; border-bottom:1.5pt solid windowtext; width:741; height:17; padding-left:0in; padding-right:0in; padding-top:0in; padding-bottom:1.0pt">
<p class="MsoNormal" style="border: medium none; padding: 0in">
<span style="font-size:10.0pt;
font-family:"Courier New""> </span></div>
<div style="border-left:medium none; border-right:medium none; border-top:medium none; border-bottom:1.5pt solid windowtext; width:732; height:297; padding-left:0in; padding-right:0in; padding-top:0in; padding-bottom:1.0pt">
<p class="MsoNormal" style="border: medium none; padding: 0in">
<span style="font-family:"Times New Roman"">!</span></font><font face="Terminal" size="2">
When the history level is set each lower level is also logged</p>
</font>
<font face="Arial, Helvetica">
<p class="MsoNormal" style="border: medium none; padding: 0in">
<span style="font-family:"Terminal""><font size="2">! emergencies System is
unusable (severity=0)</font></span></p>
<p class="MsoNormal" style="border: medium none; padding: 0in">
<span style="font-family:"Terminal""><font size="2">! alerts Immediate action
needed (severity=1)</font></span></p>
<p class="MsoNormal" style="border: medium none; padding: 0in">
<span style="font-family:"Terminal""><font size="2">! critical Critical
conditions (severity=2)</font></span></p>
<p class="MsoNormal" style="border: medium none; padding: 0in">
<span style="font-family:"Terminal""><font size="2">! errors Error
conditions (severity=3)</font></span></p>
<p class="MsoNormal" style="border: medium none; padding: 0in">
<span style="font-family:"Terminal""><font size="2">! warnings Warning
conditions (severity=4)</font></span></p>
<p class="MsoNormal" style="border: medium none; padding: 0in">
<span style="font-family:"Terminal""><font size="2">! notifications Normal but significant conditions
(severity=5)</font></span></p>
<p class="MsoNormal" style="border: medium none; padding: 0in">
<span style="font-family:"Terminal""><font size="2">! informational Informational
messages (severity=6)</font></span></p>
<p class="MsoNormal" style="border: medium none; padding: 0in">
<span style="font-family:"Terminal""><font size="2">! debugging Debugging
messages (severity=7)</font></span></div>
</font>
<font face="Times New Roman">
<p>For our router we will be using a history level of errors.</p>
</font>
<font face="Arial, Helvetica">
<p><font face="Courier New"><select size="1" name="name">
<option>- Click Here to View Answer -</option>
<option>eRouter2(config)#logging history errors</option>
</select></font></p>
</font>
<font face="Times New Roman">
<p><font color="#FF00FF"><b>4.</b></font> One more thing we need to do is assign our router to a group of routers
all using the same Syslog server. To do this we will assign ourselves to a
facility of <b>local4</b>.</p>
</font>
<font face="Arial, Helvetica">
<p><font face="Courier New"><select size="1" name="name">
<option>- Click Here to View Answer -</option>
<option>eRouter1(config)#logging facility local4</option>
</select></font></p>
</font>
<font face="Times New Roman">
<p><font color="#FF00FF"><b>5. </b></font>Now we have entered all information we need to setup the router to log to
a syslog server. You can verify the information was entered by viewing the
running configuration.</p>
</font>
<font face="Arial, Helvetica">
<p><font face="Courier New"><select size="1" name="name">
<option>- Click Here to View Answer -</option>
<option>eRouter1#show run</option>
</select></font></p>
</font>
<p><font face="Arial" 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 + -