📄 hosttablelab.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>HOME LESSON</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, Arial, Helvetica" color="#008000" size="4"><b>Lab:
Creating a Host table</b></font></p>
<p><font face="Arial"><i>Objective</i>: Our goal of this
lab is to become familiarized with the Routers Host Table. We can use a host
table to set names for commonly used IP addresses. This will help us with
troubleshooting or make our lives easier if we are testing a lot with pings.
<br>
<i>Lab Equipment</i>: We will be using eRouter 1. To select eRouter 1 click
on the button labeled "eRouter 1" at the top of the screen.</font></p>
<p><font color="#FF00FF">1.</font>
<span style="font-size: 12.0pt; font-family: Times New Roman">Connect to Router
1 and enter Privilege mode</span></p>
<p><select size="1" name="D1">
<option selected>- Click here to View Answer</option>
<option>Router></option>
<option>Router>enable</option>
<option>Router#</option>
</select></p>
<p><font color="#FF00FF">2.</font> Enter configuration mode and set the hostname
to <b>California</b>.</p>
<p><select size="1" name="D1">
<option selected>- Click here to View Answer</option>
<option>Router#config t</option>
<option>Router(config)#</option>
<option>Router(config)#hostname California</option>
<option>California(config)#</option>
</select></p>
<p><font color="#FF00FF">3.</font>
<span style="font-size: 12.0pt; font-family: Times New Roman"> Set an IP
address of 195.42.36.10 255.255.255.240 on Ethernet 0抯 interface, make sure to
enable the interface. </span></p>
<p><select size="1" name="D1">
<option selected>- Click here to View Answer -</option>
<option>California(config)#interface ethernet 0</option>
<option>California(config-if)#</option>
<option>California(config-if)#ip address 195.42.36.10 255.255.255.240</option>
<option>California(config-if)#no shutdown</option>
</select><b><span style="FONT-FAMILY: 'Courier New'"><strong><font color="#0000ff"></O:P>
</font></strong></span></b></p>
<p><font color="#FF00FF">4.</font>
<span style="font-size: 12.0pt; font-family: Times New Roman">Now that we have
an IP address connect to eRouter 2 and enter privilege mode.</span></p>
<p><select size="1" name="D1">
<option selected>- Click here to View Answer</option>
<option>Router>enable</option>
<option>Router#</option>
</select></p>
<p><font color="#FF00FF">5.</font>
<span style="font-size: 12.0pt; font-family: Times New Roman">Enter
Configuration mode and set the hostname to <b>Tampa</b>.</span> </p>
<p><select size="1" name="D1">
<option selected>- Click here to View Answer -</option>
<option>Router#config t</option>
<option>Router(config)#</option>
<option>Router(config)#hostname Tampa</option>
<option>Tampa(config)#</option>
</select></p>
<p><font color="#FF00FF">6.</font>
<span style="font-size: 12.0pt; font-family: Times New Roman">Set an IP address
of 195.42.36.12 255.255.255.240 on Ethernet 0抯 interface, make sure to enable
the interface.</span> </p>
<p><select size="1" name="D1">
<option selected>- Click here to View Answer -</option>
<option>Tampa(config)#interface ethernet 0</option>
<option>Tampa(config-if)#</option>
<option>Tampa(config-if)#ip address 195.42.36.12 255.255.255.240</option>
<option>Tampa(config-if)#no shutdown</option>
</select></p>
<p><font color="#FF00FF">7.</font>
<span style="font-size: 12.0pt; font-family: Times New Roman">Exit out of
interface mode and now we are going to make a host table entry. We do not want
to have to type California抯 Ethernet 0 IP address every time we try to ping it
so we are going to set a host table entry for California using the IP address
195.42.36.10</span>. </p>
<p><select size="1" name="D1">
<option selected>- Click here to View Answer -</option>
<option>Tampa(config-if)#exit</option>
<option>Tampa(config)#</option>
<option>Tampa(config)#ip host California 195.42.36.10</option>
</select></p>
<p><font color="#FF00FF">8.</font>
<span style="font-size: 12.0pt; font-family: Times New Roman">After we have done
this we should be able to ping California抯 Ethernet 0 IP address just by typing
ping California.</span> </p>
<p><select size="1" name="D1">
<option selected>- Click here to View Answer -</option>
<option>Tampa(config#)exit</option>
<option>Tampa#ping California</option>
</select></p>
<p><font color="#FF00FF">9.</font>
<span style="font-size: 12.0pt; font-family: Times New Roman">You can now verify
that the entry is made in the router by using the command </span>
<font face="Terminal" size="2">show hosts</font><span style="font-size: 12.0pt; font-family: Times New Roman">.</span> </p>
<p><select size="1" name="D1">
<option selected>- Click here to View Answer -</option>
<option>Tampa#show hosts</option>
</select></p>
<p> </p>
<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 + -