思科模拟器试验步骤汇编Word文档下载推荐.docx
《思科模拟器试验步骤汇编Word文档下载推荐.docx》由会员分享,可在线阅读,更多相关《思科模拟器试验步骤汇编Word文档下载推荐.docx(27页珍藏版)》请在冰豆网上搜索。
实验步骤;
(1)步骤一:
配置路由器以太网接口IP地址;
1、交换机上基本操作
Switch>
enable\\进入全局模式
Switch#conft\\进入特权模式
Switch(config)#interfacevlan1\\进入端口
Switch(config-if)#ipaddress192.168.1.10255.255.255.0\\配置IP地址Switch(config-if)#noshutdown\\打开端口
Switch(conffig-if)#exit\\回到上一步
2、配置虚拟终端密码
Switch(config)#linevty04\\进入vty虚拟终端
Switch(config-line)#password123\\配置telnet密码
Switch(config-line)#login\\注册
Switch(config-line)#exit\\回到上一级模式下
4、实验调试
(1)通过telnet访问路由器
在计算机配置网卡的IP地址为192.168.1.1/255.255.255.0,并打开DOS命令行窗口。
首先测试计算机和路由器的IP连通性,在进行Telnet远程登录。
如下:
Pingstatisticsfor192.168.1.10:
Packets:
Sent=4,Received=0,Lost=4(100%loss),
PC>
ping192.168.1.10
Pinging192.168.1.1with32bytesofdata:
Requesttimedout.
Replyfrom192.168.1.10:
bytes=32time=0msTTL=255
Sent=4,Received=3,Lost=1(25%loss),
Approximateroundtriptimesinmilli-seconds:
Minimum=0ms,Maximum=0ms,Average=0ms
//以上表明计算机能ping通路由器接口fastethernet0/1的IP地址
telnet192.168.1.10//从计算机telnet路由器以太网卡上的IP地址
Trying192.168.1.10...Open
UserAccessVerification
Password:
enable
Switch#
//输入vty的密码123、输入enable的密码456,能正常进入路由器的特权模式。
划分VLAN
1、实验目的
1.VLAN的创建方法;
2.把交换机接口划分到特定VLAN的方法;
3.配置交换机接口Trunk的方法;
4.实现不同VLAN间的通信;
2、实验步骤
三、实验步骤
步骤1:
在S1上创建VLAN
S1>
enable\\进入配置模式
S1#conft\\进入全局模式
S1(config)#vlan10\\创建vlan10
S1(config-vlan)#exit\\回到上一级
S1(config)#vlan20\\创建vlan20
步骤2:
将端口划分到指定VLAN中
S1(config)#interfacef0/1\\进入端口
S1(config-if)#switchportmodeaccess\\将模式改为access
S1(config-if)#switchportaccessvlan10\\端口划分到vlan10
S1(config-if)#exit\\回到上一级
S1(config)#interfacef0/2\\进入端口
S1(config-if)#switchportaccessvlan20\\端口划分到vlan20
步骤3:
将指定端口改为Trunk模式
S1(config)#interfacef0/11\\进入端口
S1(config-if)#switchmodetrunk\\将模式改为trunk
S1(config-if)#switchporttrunknativevlan10\\允许vlan10通过
S1(config-if)#switchporttrunknativevlan20\\允许vlan10通过
S1(config-if)#end\\结束
S2交换机上操作
在S2上创建VLAN
S1(config-vlan)#exit\\回到上一级
S1(config)#vlan20\\创建vlan20
S1(config-if)#switchportmodeaccess\\模式改为access
S1(config-if)#switchportaccessvlan10\\端口划分vlan10
S1(config-if)#exit\\回到上一级
S1(config)#interfacef0/2\\进入端口
S1(config-if)#switchportmodeaccess\\将模式改access
S1(config-if)#switchportaccessvlan20\\端口划vlan20
S1(config)#interfacef0/11\\进入端口
S1(config-if)#switchmodetrunk\\模式改为trunk
S1(config-if)#switchporttrunknativevlan10\\允许vlan10通过
S1(config-if)#switchporttrunknativevlan20\\允许vlan10通过
S1(config-if)#end\\结束
在PC机上进行ip地址访问
(1)在PC1下
Pinging192.168.1.3with32bytesofdata:
Replyfrom192.168.1.3:
bytes=32time=0msTTL=128
bytes=32time=4msTTL=128
bytes=32time=1msTTL=128
Pingstatisticsfor192.168.1.3:
Sent=4,Received=4,Lost=0(0%loss),
Minimum=0ms,Maximum=4ms,Average=1ms
//PC1与PC3在同一VLAN下,故能ping通
Pingstatisticsfor192.168.1.4:
ping192.168.1.4
Pinging192.168.1.4with32bytesofdata:
//PC1与PC4不在同一VLAN下,故不能ping通
Etherchannel链路聚合配置
1.Etherchannel的工作原理;
2.Etherchannel的配置;
第二部:
配置Etherchannel
R1路由器上操作
enable\\进入配置模式
S1#conft\\进入全局模式
S1(config)#interfaceport-channel1\\创建以太通道
S1(config)#exit\\返回全局模式
S1(config-if)#interfacerangef0/11-12\\进入端口
S1(config-if-range)#channel-group1modeon\\接口指定到创建的通道中
S1(config-if-range)#exit\\回到上一级
S1(config)#interfaceport-channel1\\进入以太通道中
S1(config-if)#switchportmodetrunk\\将模式改为Trunk模式
S1(config-if)#end\\结束
R2路由器上操作
S1(config-if-range)#channel-group1modeon\