<p></p>
<div class="tip inlineBlock warning">
因为代码高亮不支持,在这里所以代码以C代替
</div>
<p></p>
<h2>实验目标</h2>
- 掌握交换机基本信息的配置管理。
<h3>技术原理</h3>
- 交换机的管理方式基本分为两种:带内管理和带外管理。
<p>通过交换机的Console端口管理交换机属于带外管理;这种管理方式不占用交换机的网络端口,第一次配置交换机必须利用Console端口进行配置。
通过Telnet、拨号等方式属于带内管理。</p>
- 交换机的命令行操作模式主要包括:
用户模式 Switch>
特权模式 Switch#
全局配置模式 Switch(config)#
端口模式 Switch(config-if)*#
<h3>实验设备</h3>
<p><span class="label bg-dark"> 电脑;手;脑子;思科模拟器;Switch_2960 1台; PC 2台; 直连线</span></p>
<h2>实验步骤</h2>
<h4>1.点击PC0,选择选择Config选项,单击FastEthernet0选项</h4>
<p>将PC0设为100Mbps的速率,运行模式设为全双工模式</p>
<h4>2.点击交换机,选择CLI,进入命令行界面**</h4>
<p></p>
<h4>3.配置交换机</h4>
修改交换机名、端口
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 //退出端口设置
<p></p>
<h4>4.查看交换机配置信息</h4>
查看交换机各项配置参数
Switch#show version //查看交换机版本信息
Switch#show running-config // 查看当前生效的配置信息
Switch#show interface //查看端口信息
Switch#show mac-address-table //查看交换机的MAC地址
<p></p>
<h4>5.密码设置与取消</h4>
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//取消密码
<p></p>
<h2>目的</h2>
<p></p>
<div class="tip inlineBlock success">
目的是让我们学会如何切换交换机的命令模式并配置基本命令本文转自
柚子君
</div>
<p></p>
<div class="entry-content l-h-2x">
<div class="cpright">
<span>本文作者:<span class="sr-only">Author:</span> Catalpa</span> 文章标题:
Packet Tracer 思科模拟器入门教程 (二)
<span>本文地址:https://www.bsgun.cn/509</span>
<span>版权说明:若无注明,本文皆Catalpa Blog原创,转载请保留文章出处。</span>
</div>
</div>
Comment here is closed