Loading... <p></p> <div class="tip inlineBlock warning"> 因为代码高亮不支持,在这里所以代码以C代替 </div> <p></p> <h2>实验目标</h2> <ul> <li>掌握交换机基本信息的配置管理。</li> </ul> <h3>技术原理</h3> <ul> <li>交换机的管理方式基本分为两种:带内管理和带外管理。</li> </ul> <p>通过交换机的Console端口管理交换机属于带外管理;这种管理方式不占用交换机的网络端口,第一次配置交换机必须利用Console端口进行配置。<br> 通过Telnet、拨号等方式属于带内管理。</p> <ul> <li>交换机的命令行操作模式主要包括:</li> </ul> <pre><code class="lang-C">用户模式 Switch> 特权模式 Switch*#* 全局配置模式 Switch(config)*#* 端口模式 Switch(config-if)*#</code></pre> <h3>实验设备</h3> <p><span class="label bg-dark"> 电脑;手;脑子;思科模拟器;Switch_2960 1台; PC 2台; 直连线</span><br><img src="https://img-blog.csdnimg.cn/20181219233120971.png" alt="示意" title="示意" class="aligncenter"style=""></p> <h2>实验步骤</h2> <h4>1.点击PC0,选择选择Config选项,单击FastEthernet0选项</h4> <p>将PC0设为100Mbps的速率,运行模式设为全双工模式<br><img src="https://img-blog.csdnimg.cn/2018121923514518.png" alt="设置" title="设置" class="aligncenter"style=""></p> <h4>2.点击交换机,选择CLI,进入命令行界面**</h4> <p><img src="https://img-blog.csdnimg.cn/20181219235326342.png" alt="命令界面" title="命令界面" class="aligncenter"style=""></p> <h4>3.配置交换机</h4> <pre><code class="lang-C">修改交换机名、端口 Switch>enable //进入特权模式 Switch#conf t //进入配置模式 Switch(config)#hostname S2960 //修改交换机名 S2960(config)#interface fa 0/1 //选择端口 S2960(config-if)#speed 100 //修改端口速率为100Mbps S2960(config-if)#duplex full //修改为全双工模式 S2960(config-if)#exit //退出端口设置</code></pre> <p><img src="https://img-blog.csdnimg.cn/20181219235540791.png" alt="示例" title="示例" class="aligncenter"style=""></p> <h4>4.查看交换机配置信息</h4> <pre><code class="lang-C">查看交换机各项配置参数 Switch#show version //查看交换机版本信息 Switch#show running-config // 查看当前生效的配置信息 Switch#show interface //查看端口信息 Switch#show mac-address-table //查看交换机的MAC地址</code></pre> <p><img src="https://img-blog.csdnimg.cn/20181220000356726.png" alt="示例" title="示例" class="aligncenter"style=""><br><img src="https://img-blog.csdnimg.cn/20181220000429754.png" alt="示例" title="示例" class="aligncenter"style=""><br><img src="https://img-blog.csdnimg.cn/20181220000455724.png" alt="示例" title="示例" class="aligncenter"style=""><br><img src="https://img-blog.csdnimg.cn/2018122000055981.png" alt="示例" title="示例" class="aligncenter"style=""></p> <h4>5.密码设置与取消</h4> <pre><code class="lang-C">Switch#config t Switch(config)#enable password cisco//设置进入特权模式的密码为cisco Switch(config)#no enable password //取消特权模式密码 //switch(config-line)可以设置通过console端口连接设备及Telnet远程登录时所需的密码 Switch(config)#line console 0 //表示配置控制台线路,0是控制台的线路编号 Switch(config-line)#password cisco //设置进入控制台访问的密码 Switch(config-line)#login //用于打开登录认证功能 Switch(config-line)#no password//取消密码</code></pre> <p><img src="https://img-blog.csdnimg.cn/20181220002035535.png" alt="示例" title="示例" class="aligncenter"style=""></p> <h2>目的</h2> <p></p> <div class="tip inlineBlock success"> 目的是让我们学会如何切换交换机的命令模式并配置基本命令本文转自 <a href="https://www.bsgun.cn/go/aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L2dlbmdrdWk5ODk3L2FydGljbGUvZGV0YWlscy84NTEwOTk2Mg==" target="_blank">柚子君</a> </div> <p></p> <div class="entry-content l-h-2x"> <div class="cpright"> <span>本文作者:<span class="sr-only">Author:</span> <a class="meta-value" href="https://www.bsgun.cn/author/1/" rel="author" target="_blank"> Catalpa</a></span> 文章标题: <a href="https://www.bsgun.cn/509" target="_blank">Packet Tracer 思科模拟器入门教程 (二)</a> <br> <span>本文地址:<a href="https://www.bsgun.cn/509" target="_blank">https://www.bsgun.cn/509</a></span> <br> <span>版权说明:若无注明,本文皆<a href="https://www.bsgun.cn/" target="_blank" data-original-title="Catalpa Blog">Catalpa Blog</a>原创,转载请保留文章出处。</span> </div> </div> Last modification:June 26, 2020 © Allow specification reprint Support Appreciate the author Like 0 如果觉得我的文章对你有用,请随意赞赏
Comment here is closed