CCNA全部重要实验步骤.docx
《CCNA全部重要实验步骤.docx》由会员分享,可在线阅读,更多相关《CCNA全部重要实验步骤.docx(73页珍藏版)》请在冰豆网上搜索。
CCNA全部重要实验步骤
VLAN,TRUNK,VTP和VLAN间路由的使用和配置
实验目的:
熟练掌握VLAN,TRUNK,VTP和VLAN间路由的使用和配置
实验内容:
在1900系列和2900系列交换机上VLAN的配置
在1900系列和2900系列交换机上TRUNK的配置
在1900系列和2900系列交换机上VTP的配置
在1900系列和2900系列交换机以及2600系列路由器上VLAN间路由的配置
实验条件:
2900系列交换机两台,1900系列交换一台和2600系列路由器各一台
一.VLAN的配置
本实验需要2900交换机一台,PC机两台,console线一条
Step1配置交换机
Switch>
Switch>enable
Switch#configureterminal
Switch(config)#hostnameSwitch_A
Switch_A(config)#enablesecretclass
Switch_A(config)#enablepasswordcisco
Switch_A(config)#linecon0
Switch_A(config-line)#passwordcisco
Switch_A(config-line)#login
Switch_A(config-line)#linevty015
Switch_A(config-line)#passwordcisco
Switch_A(config-line)#login
Switch_A(config-line)#exit
Switch_A(config)#interfaceVlan1
Switch_A(config-if)#ipaddress192.168.1.2255.255.255.0
Switch_A(config-if)#noshutdown
Switch_A(config-if)#exit
Switch_A(config)#ipdefault-gateway192.168.1.1
Switch_A(config)#end
Step2为PC配置正确的IP地址,子网掩码和缺省网关
Step3检测连通性
由switchping两台PC机,检测连通性
Step4显示VLAN的接口信息
2900:
Switch_A#showvlan
1900:
Switch_A#showvlan-membership
Step5创建,命名VLAN
2900:
Switch_A#vlandatabase
Switch_A(vlan)#vlan2nameVLAN2
Switch_A(vlan)#vlan3nameVLAN3
Switch_A(vlan)#exit
1900:
Switch_A#configureterminal
Switch_A(config)#vlan2nameVLAN2
Switch_A(config)#vlan3nameVLAN3
Step6安排4,5,6端口到VLAN2
2900:
Switch_A#configureterminal
Switch_A(config)#interfacefastethernet0/4
Switch_A(config-if)#switchportmodeaccess
Switch_A(config-if)#switchportaccessvlan2
Switch_A(config-if)#interfacefastethernet0/5
Switch_A(config-if)#switchportmodeaccess
Switch_A(config-if)#switchportaccessvlan2
Switch_A(config-if)#interfacefastethernet0/6
Switch_A(config-if)#switchportmodeaccess
Switch_A(config-if)#switchportaccessvlan2
Switch_A(config-if)#end
1900:
Switch_A#configureterminal
Switch_A(config)#interfaceEthernet0/4
Switch_A(config-if)#vlanstatic2
Switch_A(config-if)#interfaceEthernet0/5
Switch_A(config-if)#vlanstatic2
Switch_A(config-if)#interfaceEthernet0/6
Switch_A(config-if)#vlanstatic2
Switch_A(config)#end
Step7显示VLAN的接口信息
2900:
Switch_A#showvlan
1900:
Switch_A#showvlan-membership
Step8安排7,8,9端口到VLAN3
Switch_A#configureterminal
Switch_A(config-if)#interfacefastethernet0/7
Switch_A(config-if)#switchportmodeaccess
Switch_A(config-if)#switchportaccessvlan3
Switch_A(config-if)#interfacefastethernet0/8
Switch_A(config-if)#switchportmodeaccess
Switch_A(config-if)#switchportaccessvlan3
Switch_A(config-if)#interfacefastethernet0/9
Switch_A(config-if)#switchportmodeaccess
Switch_A(config-if)#switchportaccessvlan3
Switch_A(config-if)#end
Step9显示VLAN的接口信息
2900:
Switch_A#showvlan
1900:
Switch_A#showvlan-membership
Step10测试VLANs
Step11解除VLAN与端口的绑定
2900:
Switch_A#configureterminal
Switch_A(config)#interfacefastethernet0/4
Switch_A(config-if)#noswitchportaccessvlan2
1900:
Switch_A#configureterminal
Switch_A(config)#interfaceEthernet0/4
Switch_A(config-if)#novlan-membership2
Switch_A(config-if)#end
Step12显示VLAN的接口信息
2900:
Switch_A#showvlan
1900:
Switch_A#showvlan-membership
Step13删除VLAN
2900:
Switch_A#vlandatabase
Switch_A(vlan)#novlan3
DeletingVLAN3
Switch_A(vlan)#exit
1900:
Switch_A#configureterminal
Switch_A(config)#interfaceethernet0/7
Switch_A(config-if)#novlan3
Switch_A(config-if)#exit
Step14显示VLAN的接口信息
2900:
Switch_A#showvlan
1900:
Switch_A#showvlan-membership
二.VLAN的TRUNK配置
本实验需要2900交换机两台,PC机两台,console线一条
(一)ISL
Step1配置交换机的基本参数
参考上面的实验
Step2为PC配置正确的IP地址,子网掩码和缺省网关
Step3检测连通性
由switchping两台PC机,检测连通性
Step4显示VLAN的接口信息
Switch_A#showvlan
Step5在Switch_A上创建,命名VLAN
Switch_A#vlandatabase
Switch_A(vlan)#vlan10nameAccounting
Switch_A(vlan)#vlan20nameMarketing
Switch_A(vlan)#vlan30nameEngineering
Switch_A(vlan)#exit
Step6安排4,5,6端口到VLAN10
Switch_A(config)#interfacefastethernet0/4
Switch_A(config-if)#switchportmodeaccess
Switch_A(config-if)#switchportaccessvlan10
Switch_A(config-if)#interfacefastethernet0/5
Switch_A(config-if)#switchportmodeaccess
Switch_A(config-if)#switchportaccessvlan10
Switch_A(config-if)#interfacefastethernet0/6
Switch_A(config-if)#switchportmodeaccess
Switch_A(config-if)#switchportaccessvlan10
Switch_A(config-if)#end
Step7安排端口7,8,9到VLAN20
Switch_A#configureterminal
Switch_A(config)#interfacefastethernet0/7
Switch_A(config-if)#switchportmodeaccess
Switch_A(config-if)#switchportaccessvlan20
Switch_A(config-if)#interfacefastethernet0/8
Switch_A(config-if)#switchportmodeaccess
Switch_A(config-if)#switchportaccessvlan20
Switch_A(config-if)#interfacefastethernet0/9
Switch_A(config-if)#switchportmodeaccess
Switch_A(config-if)#switchportaccessvlan20
Switch_A(config-if)#end
Step8安排端口10,11,12到VLAN30
Switch_A#configureterminal
Switch_A(config)#interfacefastethernet0/10
Switch_A(config-if)#switchportmodeaccess
Switch_A(config-if)#switchportaccessvlan30
Switch_A(config-if)#interfacefastethernet0/11
Switch_A(config-if)#switchportmodeaccess
Switch_A(config-if)#switchportaccessvlan30
Switch_A(config-if)#interfacefastethernet0/12
Switch_A(config-if)#switchportmodeaccess
Switch_A(config-if)#switchportaccessvlan30
Switch_A(config-if)#end
Step9在Switch_B上创建,命名VLAN
重复5-8步,在Switch_B创建,命名VLAN
Step10显示VLAN的接口信息
Switch_A#showvlan
Step11测试VLANs
Step12创建ISLtrunk
Switch_A(config)#interfacefastethernet0/1
Switch_A(config-if)#switchportmodetrunk
Switch_A(config-if)#switchporttrunkencapsulationisl
Switch_A(config-if)#end
Switch_B(config)#interfacefastethernet0/1
Switch_B(config-if)#switchportmodetrunk
Switch_B(config-if)#switchporttrunkencapsulationisl
Switch_B(config-if)#end
Step13测试ISLtrunk
(二)dot1q
Step1配置交换机的基本参数
参考上面的实验
Step2为PC配置正确的IP地址,子网掩码和缺省网关
Step3检测连通性
由switchping两台PC机,检测连通性
Step4显示VLAN的接口信息
Switch_A#showvlan
Step5在Switch_A上创建,命名VLAN
Switch_A#vlandatabase
Switch_A(vlan)#vlan10nameAccounting
Switch_A(vlan)#vlan20nameMarketing
Switch_A(vlan)#vlan30nameEngineering
Switch_A(vlan)#exit
Step6安排4,5,6端口到VLAN10
Switch_A(config)#interfacefastethernet0/4
Switch_A(config-if)#switchportmodeaccess
Switch_A(config-if)#switchportaccessvlan10
Switch_A(config-if)#interfacefastethernet0/5
Switch_A(config-if)#switchportmodeaccess
Switch_A(config-if)#switchportaccessvlan10
Switch_A(config-if)#interfacefastethernet0/6
Switch_A(config-if)#switchportmodeaccess
Switch_A(config-if)#switchportaccessvlan10
Switch_A(config-if)#end
Step7安排端口7,8,9到VLAN20
Switch_A#configureterminal
Switch_A(config)#interfacefastethernet0/7
Switch_A(config-if)#switchportmodeaccess
Switch_A(config-if)#switchportaccessvlan20
Switch_A(config-if)#interfacefastethernet0/8
Switch_A(config-if)#switchportmodeaccess
Switch_A(config-if)#switchportaccessvlan20
Switch_A(config-if)#interfacefastethernet0/9
Switch_A(config-if)#switchportmodeaccess
Switch_A(config-if)#switchportaccessvlan20
Switch_A(config-if)#end
Step8安排端口10,11,12到VLAN30
Switch_A#configureterminal
Switch_A(config)#interfacefastethernet0/10
Switch_A(config-if)#switchportmodeaccess
Switch_A(config-if)#switchportaccessvlan30
Switch_A(config-if)#interfacefastethernet0/11
Switch_A(config-if)#switchportmodeaccess
Switch_A(config-if)#switchportaccessvlan30
Switch_A(config-if)#interfacefastethernet0/12
Switch_A(config-if)#switchportmodeaccess
Switch_A(config-if)#switchportaccessvlan30
Switch_A(config-if)#end
Step9在Switch_B上创建,命名VLAN
重复5-8步,在Switch_B创建,命名VLAN
Step10显示VLAN的接口信息
Switch_A#showvlan
Step11测试VLANs
Step12创建dot1qtrunk
Switch_A(config)#interfacefastethernet0/1
Switch_A(config-if)#switchportmodetrunk
Switch_A(config-if)#switchporttrunkencapsulationdot1q
Switch_A(config-if)#end
Switch_B(config)#interfacefastethernet0/1
Switch_B(config-if)#switchportmodetrunk
Switch_B(config-if)#switchporttrunkencapsulationdot1q
Switch_B(config-if)#end
Step13测试dot1qtrunk
三.VLAN的VTP配置
本实验需要2900交换机两台,PC机两台,console线一条
Step1配置交换机
参考上面的实验
Step2为PC配置正确的IP地址,子网掩码和缺省网关
Step3测试连接性
由switchping两台PC机,检测连通性
Step4显示VLAN接口信息
Switch_A#showvlan
Step5配置VTP服务器端
Switch_A#vlandatabase
Switch_A(vlan)#vtpserver
Switch_A(vlan)#vtpdomaingroup1
Switch_A(vlan)#exit
Step6创建,命名VLANs
Switch_A#vlandatabase
Switch_A(vlan)#vlan10nameAccounting
Switch_A(vlan)#vlan20nameMarketing
Switch_A(vlan)#vlan30nameEngineering
Switch_A(vlan)#exit
Step7安排端口4,5,6到VLAN10
Switch_A#configureterminal
Switch_A(config)#interfacefastethernet0/4
Switch_A(config-if)#switchportmodeaccess
Switch_A(config-if)#switchportaccessvlan10
Switch_A(config-if)#interfacefastethernet0/5
Switch_A(config-if)#switchportmodeaccess
Switch_A(config-if)#switchportaccessvlan10
Switch_A(config-if)#interfacefastethernet0/6
Switch_A(config-if)#switchportmodeaccess
Switch_A(config-if)#switchportaccessvlan10
Switch_A(config-if)#end
Step8安排端口7,8,9到VLAN20
Switch_A#configureterminal
Switch_A(config)#interfacefastethernet0/7
Switch_A(config-if)#switchportmodeaccess
Switch_A(config-if)#switchportaccessvlan20
Switch_A(config-if)#interfacefastethernet0/8
Switch_A(config-if)#switchportmodeaccess
Switch_A(config-if)#switchportaccessvlan20
Switch_A(config-if)#interfacefastethernet0/9
Switch_A(config-if)#switchportmodeaccess
Switch_A(config-if)#switchportaccessvlan20
Switch_A(config-if)#end
Step9安排端口10,11,12到VLAN30
Switch_A#configureterminal
Switch_A(config)#interfacefastethernet0/10
Switch_A(config-if)#switchportmodeaccess
Switch_A(config-if)#switchportaccessvlan30
Switch_A(config-if)#interfacefastethernet0/11
Switch_A(config-if)#switchportmodeaccess
Switch_A(config-if)#switchportaccessvlan30
Switch_A(config