⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 vlan.htm

📁 BOSON NETSIM是目前最好的路由器模拟软件
💻 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>Show 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, Arial, Helvetica" color="#008000" size="4"><b>Lab: 
Introduction to VLANS</b></font></p>
<p><font face="Arial, Arial, Helvetica"><i>Objective</i>:&nbsp; 
To become familiar with the benefits of Vlans on your LAN.<br>
<i>Lab Equipment</i>: You will be using eRouter 1, eSwitch 1, eStation 
1 and eStation 2</font></p>
<p><b><font color="#FF0000">IMPORTANT</font></b>! You will need to load a new 
topology file to complete this lab. To do this you must exit the program, open 
it up again and on the &quot;Choose your Topology&quot; screen select the third option, 
&quot;Load Simulator using saved network.&quot; When the open screen comes up select the 
vlans.top file inside of your Boson Router Simulator directory.</p>
<p>&nbsp;</p>
<p align="center">
<img border="0" src="vlans.jpg" width="459" height="425"></p>
<p class="MsoPlainText">We are going to configure our router and switch to 
support VLANs. The goal of this lab is to setup your eStation抯 so that they can ping 
each other through the switch. We will then have you change the VLANs on the 
switch and observe that we cannot ping any longer. Once we notice we cannot ping 
the router we will change the configuration on the switch so that the eStation's are 
on the same VLAN and observe that we can ping each other again.</p>
<p><b><font color="#FF00FF">1. </font></b>Lets start by configuring the ip 
address on eRouter1 Fast Ethernet 0/0. Connect to eRouter 1 enter interface 
<b>Ethernet 0</b> and set the IP address of <b>24.17.2.1 255.255.255.0</b><br>
<br>
<select size="1" name="D1">
  <option selected>- Click here to View Answer -</option>
  <option>Router&gt;enable</option>
  <option>Router#</option>
  <option>Router#conf t</option>
  <option>Router(config)#hostname eRouter1</option>
  <option>eRouter1(config)#</option>
  <option>eRouter1(config)#interface Fast0/0</option>
  <option>eRouter1(config-if)#ip add 24.17.2.1 255.255.255.0</option>
  <option>eRouter1(config-if)#no shut</option>
</select><br>
<br>
<b><font color="#FF00FF">2.</font></b> Next connect to <b>eStation 1</b> and set the IP 
address of <b>24.17.2.3 255.255.255.0</b> with default gateway <b>24.17.2.1</b>.<br>
<br>
<select size="1" name="D1">
  <option selected>- Click here to View Answer -</option>
  <option>C:>winipcfg</option>
</select> <br>
<br>
<b><font color="#FF00FF">3.</font></b> Now connect to <b>eStation 2</b> and set the ip 
address to <b>24.17.2.4 255.255.255.0</b> with default gateway <b>24.17.2.1</b>.<br>
<br>
<select size="1" name="D1">
  <option selected>- Click here to View Answer -</option>
  <option>C:&gt;winipcfg</option>
</select><br>
<br>
<b><font color="#FF00FF">4.</font></b> You should now be able to ping eRouter 1 
and&nbsp; eStation 1 from eStation2<br>
<br>
<select size="1" name="D1">
  <option selected>- Click here to View Answer -</option>
  <option>C:>ping 24.17.2.1</option>
  <option>C:>ping 24.17.2.3</option>
</select><br>
<br>
<font color="#FF00FF"><b>5.</b> </font>Now connect to Switch 1 and lets set the 
VLANs up. The switch automatically has VLAN 1 setup on all ports. In this case 
we will setup a separate VLAN for the eStation's. Start off by creating the vlan.<br>
<br>
<select size="1" name="D1">
  <option selected>- Click here to View Answer -</option>
  <option>&gt;en</option>
  <option>#config t</option>
  <option>(config)#vlan 22 name pcs</option>
</select><br>
<br>
<b><font color="#FF00FF">6.</font> </b>Now that we have created the VLANs we 
need to assign the ports to it. Lets start by assigning port 1 for eStation1 to the new VLAN.<br>
<br>
<select size="1" name="D1">
  <option selected>- Click here to View Answer -</option>
  <option>(config)#int e0/1</option>
  <option>(config-if)#vlan-membership static 22</option>
</select><br>
<br>
<b><font color="#FF00FF">7.</font> </b>Now that we have assigned the VLAN to the 
port lets see if we can ping from eStation2 to eRouter 1 and eStation1. Connect back to 
eStation2 
and try to ping the other two devices.<br>
<select size="1" name="D1">
  <option selected>- Click here to View Answer -</option>
  <option>C:>ping 24.17.2.1</option>
  <option>C:>ping 24.17.2.3</option>
</select><br>
<br>
Lets think about what just happened. We were able to ping from eStation2 to eRouter1 
but we were not able to ping from eStation2 to eStation1. Why? <br>
On the switch we set VLAN 22 to only cover port 1. That means ports 2-12 and the 
two fast Ethernet ports were still on VLAN 1. So when our ping packets came into 
the switch from eStation2 they were tagged with VLAN 1.This&nbsp; means they can only go 
out of ports that are tagged with VLAN 1. (We will find out later there are 
exceptions to this rule.) That means it could not go out port 1 (to eStation 1). <br>
<br>
<b><font color="#FF00FF">8.</font></b> Lets connect back to our switch and setup 
port 2 to be included in VLAN 22.<br>
<br>
<select size="1" name="D1">
  <option selected>- Click here to View Answer -</option>
  <option>(config-if)#exit</option>
  <option>(config)#int e0/2</option>
  <option>(config-if)#vlan-membership static 22</option>
</select><br>
<br>
<b><font color="#FF00FF">9.</font></b> Now connect back to eStation2 and repeat 
the pings again to eRouter1 and eStation1.<br>
<br>
<select size="1" name="D1">
  <option selected>- Click here to View Answer -</option>
  <option>C:>ping 24.17.2.1</option>
  <option>C:>ping 24.17.2.3</option>
</select><br>
<br>
What did we notice that was different? Now we could ping eStation1 but not eRouter 1. When the packet came in it was tagged with VLAN 22.&nbsp; 
This meant it could only 
go out port1,&nbsp; which was eStation 1 for the purposes of this lab. This is what we wanted 
to accomplish. </p>
<p><b><font color="#FF00FF">10. </font></b>Connect back to the switch and lets 
view our VLAN assignments using some new show commands.
<font face="Terminal" size="2">Show VLAN</font> and
<font face="Terminal" size="2">show VLAN-membership</font><b> 
</b>are two different ways to view the VLAN port assignments for the switch.</p>
<p><select size="1" name="D1">
  <option selected>- Click here to View Answer -</option>
  <option>(config-if)#end</option>
  <option>#show vlan</option>
  <option>#show vlan-membership</option>
</select><br>
<br>
Later on we will see how we can create separate 
<span style="text-transform: uppercase">vlan</span>'s but still have the router 
involved in all the VLANs. This is called ISL Routing.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>

<p><font face="Arial" size="2"><span class="724482219-24092001">Copyright (c) 
1998-2003 Boson Software, Inc.&nbsp; All Rights Reserved.</span></font></p>
</body>

</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -