📄 lab_interfaces.htm
字号:
<html>
<head>
<title>Lab: Introduction to the router command line interface.</title>
<meta name="generator" content="Microsoft FrontPage 5.0">
</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: Introduction to interface configuration.</font></b></p>
<p><font face="Arial"><i>Objective</i>: To understand how
to enable interfaces on a router and what it takes for the interface to be UP.<br>
<i>Lab Equipment</i>: We will be using eRouter 1 &
eRouter 2. To
select eRouter 1 click on the button
labeled "eRouter1" located at the top of the screen.</font></p>
<p><font color="purple"><b>1</b>.</font> On eRouter 1, enter global configuration
mode <br>
</p>
<form name="form1">
<p><select size="1" name="jj">
<option>- Click Here to View Answer -</option>
<option>Router>enable</option>
<option>Router#conf t</option>
<option>Router(config)#</option>
<option>Router(config)#hostname eRouter1</option>
</select></p>
</form>
<p><font color="purple"><b>2.</b></font> We now wish to configure the Ethernet
Interface. To do so, we must enter interface configuration mode. Type
the command to enter interface configuration mode for Ethernet 0.</p>
<form name="form1">
<p><font face="Courier New"><select size="1" name="ll">
<option>- Click Here to View Answer -</option>
<option>eRouter1(config)#interface Ethernet 0</option>
<option>eRouter1(config-if)#</option>
</select></font></p>
</form>
<p><font color="purple"><b>3.</b></font> What can you do to view all the commands
available to you in interface configuration user mode?</p>
<form name="form1">
<p><select size="1" name=" ">
<option>- Click Here to View Answer -</option>
<option>Just type a '?' by itself.</option>
<option>this will show you all the available commands for that mode.</option>
<option>eRouter1(config-if)#?</option>
</select></p>
</form>
<p><font color="purple"><b>4.</b></font> Which command listed, looks like it would
disable or turn off the interface?</p>
<form name="form1">
<p><select size="1" name="jj">
<option>- Click Here to View Answer -</option>
<option>shutdown Shutdown the selected interface</option>
</select></p>
</form>
<p><font color="purple"><b>5.</b></font> We can often do the opposite of a command,
by typing <font face="Terminal" size="2">no</font> in front of it. What
command might enable this interface?</p>
<form name="form1">
<p><select size="1" name="q">
<option>- Click Here to View Answer -</option>
<option>eRouter1(config-if)#no shutdown</option>
</select></p>
</form>
<p><font color="purple"><b>6.</b></font> Now add a description for this interface.</p>
<form name="form1">
<p><select size="1" name="q">
<option>- Click Here to View Answer -</option>
<option>eRouter1(config-if)#description Ethernet interface on eRouter 1</option>
</select></p>
</form>
<p><font color="#800080"><b>7</b></font><font color="purple"><b>.</b></font> To
view your interface description exit back to privilege mode and do a show interface
command. You should see your description under Ethernet 0.</p>
<form name="form1">
<p><select size="1" name="q">
<option>- Click Here to View Answer -</option>
<option>Router(config-if)#end</option>
<option>Router#show interface</option>
</select></p>
</form>
<p><font color="purple"><b>8.</b></font> Now connect to eRouter 2 and enter
the Ethernet 0 interface. </p>
<form name="form1">
<p><select size="1" name="q">
<option>- Click Here to View Answer -</option>
<option>Router#conf t</option>
<option>Router(config)#hostname eRouter2</option>
<option>eRouter2(config)#interface Ethernet 0</option>
</select></p>
</form>
<p><font color="purple"><b>9.</b></font> Now enable the interface.</p>
<form name="form1">
<p><select size="1" name="q">
<option>- Click Here to View Answer -</option>
<option>eRouter2(config-if)#no shutdown</option>
</select></p>
</form>
<p><font color="#800080"><b>10</b></font><font color="purple"><b>.</b></font> Now
that the interfaces on both sides of our Ethernet connection are enabled you
should be able to see one another by CDP. Use the command <font face="Terminal" size="2">show
cdp neighbors</font> to view all directly connected Cisco Routers.</p>
<form name="form1">
<p><select size="1" name="q">
<option>- Click Here to View Answer -</option>
<option>eRouter2(config-if)#end</option>
<option>eRouter2#show cdp neighbors</option>
</select></p>
</form>
<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 + -