当前位置:高等教育资讯网  >  中国高校课件下载中心  >  大学文库  >  浏览文档

《VLAN、TRUNK、VTP和VLAN间路由的使用和配置》实验1

资源类别:文库,文档格式:DOC,文档页数:17,文件大小:962.5KB,团购合买
一.VLAN 的配置 本实验需要 2900 交换机一台,PC 机两台,console 线一条 Step 1 配置交换机
点击下载完整版文档(DOC)

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线一条 FA/C FA/04 Switch Switch Enable Enable, VTY and VLAN 1 IP Default Subnet Designation Name Secret Console Address Gateway IP Mask Password Passwords Switch t Switch A class 92168.121921681.1 255255.255.0 Straighl-through cable Serial cable Console(Rollover Crossover cable step1配置交换机 Switch> Switch>enable Switch#configure terminal Switch(config)#hostname Switch A Switch A(config)#enable secret class Switch A(config)#enable password cisco Switch A(config)#line con 0 Switch A(config-line)#password cisco Switch A(config-line)#login Switch A(config-line)#line vty0 15 Switch A(config-line)#password cisco Switch A(config-line)#login Switch A(config-line)#exi Switch A(config)#interface Vlan1 Switch A(config-if)#ip address 192. 168. 1.2 255.255.255.0 Switch A(config-if)#no shutdown Switch A(config-if)#exit Switch A(config)#ip default-gateway 192. 168. 1.1

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 线一条 Step 1 配置交换机 Switch> Switch>enable Switch#configure terminal Switch(config)#hostname Switch_A Switch_A(config)#enable secret class Switch_A(config)#enable password cisco Switch_A(config)#line con 0 Switch_A(config-line)#password cisco Switch_A(config-line)#login Switch_A(config-line)#line vty 0 15 Switch_A(config-line)#password cisco Switch_A(config-line)#login Switch_A(config-line)#exit Switch_A(config)#interface Vlan1 Switch_A(config-if)#ip address 192.168.1.2 255.255.255.0 Switch_A(config-if)#no shutdown Switch_A(config-if)#exit Switch_A(config)#ip default-gateway 192.168.1.1

Switch A(config)#end Step2为PC配置正确的IP地址,子网掩码和缺省网关 Step3检测连通性 由 switch ping两台PC机,检测连通性 step4显示VLAN的接口信息 2900: Switch a#show vlan 1900 Switch A#show vlan-membership Step5创建,命名VAN 2900: Switch A#vlan database Switch A(vlan)#vlan 2 name VLAl Switch A(vlan)#vlan 3 name VLAN3 Switch A(vlan)#exit 1900 Switch A#configure terminal Switch A(config)#vlan 2 name VLAN2 Switch A(config)#vlan 3 name VLAN3 Step6安排4,5,6端口到AN2 2900 Switch A#configure terminal Switch A(config)#interface fastethernet 0/4 Switch A(config-if)#switchport mode access Switch A(config-if)#switchport access vlan 2 Switch A(config-if)#interface fastethernet 075 Switch A(config-if)#switchport mode access Switch A(config-if)#switchport access vlan 2 Switch A(config-if)#interface fastethernet 0/6 Switch A(config-if)#switchport mode access Switch A(config-if)#switchport access vlan 2 Switch A(config-if)#end 1900: Switch A#configure terminal Switch A(config)#interface Ethernet 0/4 Switch A(config-if)#vlan static 2 Switch A(config-if)#interface Ethernet 0/5 Switch A(config-if)#vlan static 2 Switch A(config-if)#interface Ethernet 0/6 Switch A(config-if)#vlan static 2 Switch A(config)#end Step7显示VAN的接口信息 2900

Switch_A(config)#end Step 2 为PC配置正确的IP地址,子网掩码和缺省网关 Step 3 检测连通性 由switch ping两台PC机,检测连通性 Step 4 显示VLAN的接口信息 2900: Switch_A#show vlan 1900: Switch_A#show vlan-membership Step 5 创建,命名VLAN 2900: Switch_A#vlan database Switch_A(vlan)#vlan 2 name VLAN2 Switch_A(vlan)#vlan 3 name VLAN3 Switch_A(vlan)#exit 1900: Switch_A#configure terminal Switch_A(config)#vlan 2 name VLAN2 Switch_A(config)#vlan 3 name VLAN3 Step 6 安排4,5,6端口到VLAN 2 2900: Switch_A#configure terminal Switch_A(config)#interface fastethernet 0/4 Switch_A(config-if)#switchport mode access Switch_A(config-if)#switchport access vlan 2 Switch_A(config-if)#interface fastethernet 0/5 Switch_A(config-if)#switchport mode access Switch_A(config-if)#switchport access vlan 2 Switch_A(config-if)#interface fastethernet 0/6 Switch_A(config-if)#switchport mode access Switch_A(config-if)#switchport access vlan 2 Switch_A(config-if)#end 1900: Switch_A#configure terminal Switch_A(config)#interface Ethernet 0/4 Switch_A(config-if)#vlan static 2 Switch_A(config-if)#interface Ethernet 0/5 Switch_A(config-if)#vlan static 2 Switch_A(config-if)#interface Ethernet 0/6 Switch_A(config-if)#vlan static 2 Switch_A(config)#end Step 7 显示VLAN的接口信息 2900:

Switch A#show vlan 1900 Switch A#show vlan-membership Step8安排7,8,9端口到WAN3 Switch A#configure terminal Switch A(config-if)#interface fastethernet 0/7 Switch A(config-if)#switchport mode access Switch A(config-if)#switchport access vlan 3 Switch A(config-if)#interface fastethernet 0/8 Switch A(config-if)#switchport mode access Switch A(config-if)#switchport access vlan 3 Switch A(config-if)#interface fastethernet 0/9 Switch A(config-if)#switchport mode access Switch A(config-if)#switchport access vlan 3 Switch A(config-if)#end Step9显示VLAN的接口信息 2900 Switch A#show vlan 1900: Switch A#show vlan-membership step10测试 VLANs step11解除ⅥAN与端口的绑定 2900 Switch A#configure terminal Switch A(config)#interface fastethernet 0/4 Switch A(config-if)#no switchport access vlan 2 1900 Switch A#configure terminal Switch A(config)#interface Ethernet 0/4 Switch_ A(config-if)#no vlan-membership 2 Switch A(config-if)#end step12显示VLAN的接口信息 2900 Switch a#show vlan 1900: Switch A#show vlan-membership step13删除VLAN 2900 Switch a#vlan database Switch A(vlan)#no vlan 3 DeletingⅥLAN3 Switch A(vlan)#exit 1900: Switch A#configure terminal

Switch_A#show vlan 1900: Switch_A#show vlan-membership Step 8 安排7,8,9端口到VLAN 3 Switch_A#configure terminal Switch_A(config-if)#interface fastethernet 0/7 Switch_A(config-if)#switchport mode access Switch_A(config-if)#switchport access vlan 3 Switch_A(config-if)#interface fastethernet 0/8 Switch_A(config-if)#switchport mode access Switch_A(config-if)#switchport access vlan 3 Switch_A(config-if)#interface fastethernet 0/9 Switch_A(config-if)#switchport mode access Switch_A(config-if)#switchport access vlan 3 Switch_A(config-if)#end Step 9 显示VLAN的接口信息 2900: Switch_A#show vlan 1900: Switch_A#show vlan-membership Step 10 测试VLANs Step 11 解除VLAN与端口的绑定 2900: Switch_A#configure terminal Switch_A(config)#interface fastethernet 0/4 Switch_A(config-if)#no switchport access vlan 2 1900: Switch_A#configure terminal Switch_A(config)#interface Ethernet 0/4 Switch_A(config-if)#no vlan-membership 2 Switch_A(config-if)#end Step 12 显示VLAN的接口信息 2900: Switch_A#show vlan 1900: Switch_A#show vlan-membership Step 13 删除VLAN 2900: Switch_A#vlan database Switch_A(vlan)#no vlan 3 Deleting VLAN 3 Switch_A(vlan)#exit 1900: Switch_A#configure terminal

Switch A(config)#interface ethernet o/7 Switch A(config-if)#no vlan 3 Switch A(config-if)#exit step14显示VLAN的接口信息 2900 Switch a#show vlan 1900 Switch A#show vlan-membership 二.VLAN的 TRUNK配置 本实验需要2900交换机两台,PC机两台, console线一条 (一)ISL FA0/12 FAO/ Switch 1 Trunk ISL Switch 2 FA0/12 switch Switch Enable Enable VTY VLAN 1 IP Subnet VLAN Names Switch Port Designation Name Secret and Console Address Mask and Numbers Assignments Password Passwords Switch 1 SwitchA dass 92.168.1.2255255.2550 VLAN 1 Native fao/2.or3 VLAN 10 fa0/4-06 VLAN 20 07.09 VLAN 30 a0/10.0/12 Switch 2 SwitchB class cisco 19216813255255250VLAN1 Nativefao/2-03 VLAN 10 VLAN 20 fa0/100/12 Engineering straight-through cable Seral cable Console(Rollover)..... Crossover cable -" step1配置交换机的基本参数 参考上面的实验 Step2为PC配置正确的IP地址,子网掩码和缺省网关 Step3检测连通性 由 switch ping两台PC机,检测连通性 step4显示VAN的接口信息 Switch a#show vlan Step5在 Switch a上创建,命名VLAN Switch A#vlan databas Switch A(vlan)#vlan 10 name accounting Switch A(vlan)#vlan 20 name Marketing Switch A(vlan)#vlan 30 name Engineering

Switch_A(config)#interface ethernet 0/7 Switch_A(config-if)#no vlan 3 Switch_A(config-if)#exit Step 14 显示VLAN的接口信息 2900: Switch_A#show vlan 1900: Switch_A#show vlan-membership 二.VLAN 的 TRUNK 配置 本实验需要 2900 交换机两台,PC 机两台,console 线一条 (一)ISL Step 1 配置交换机的基本参数 参考上面的实验 Step 2 为PC配置正确的IP地址,子网掩码和缺省网关 Step 3 检测连通性 由switch ping两台PC机,检测连通性 Step 4 显示VLAN的接口信息 Switch_A#show vlan Step 5 在Switch_A上创建,命名VLAN Switch_A#vlan database Switch_A(vlan)#vlan 10 name Accounting Switch_A(vlan)#vlan 20 name Marketing Switch_A(vlan)#vlan 30 name Engineering

Switch A(vlan)#exit step6安排4,5,6端口到WAN10 Switch A(config)#interface fastethernet 0/4 Switch A(config-if)#switchport mode access Switch A(config-if)#switchport access vlan 10 Switch A(config-if)#interface fastethernet 0/5 Switch A(config-if)#switchport mode access Switch A(config-if)#switchport access vlan 10 Switch A(config-if)#interface fastethernet/6 Switch A(config-if)#switchport mode access Switch A(config-if)#switchport access vlan 10 Switch A(config-if)#end Step7安排端口7,8,9到WAN20 Switch A#configure terminal Switch A(config)#interface fastethernet 0/7 Switch A(config-if)#switchport mode access Switch A(config-if)#switchport access vlan 20 Switch A(config-if)#interface fastethernet0/8 Switch A(config-if)#switchport mode access Switch A(config-if)#switchport access vlan 20 Switch A(config-if)#interface fastethernet 0/9 Switch A(config-if)#switchport mode access Switch A(config-if)#switchport access vlan 20 Switch A(config-if)#end Step8安排端口10,11,12到AN30 Switch A#configure terminal Switch A(config)#interface fastethernet 0/10 Switch A(config-if)#switchport mode access Switch A(config-if)#switchport access vlan 30 Switch A(config-if)#interface fastethernet 0/11 Switch A(config-if)#switchport mode access Switch A(config-if)#switchport access vlan 30 Switch A(config-if)#interface fastethernet 0/12 Switch A(config-if)#switchport mode access Switch A(config-if)#switchport access vlan 30 Switch A(config-if)#end Step9在 Switch B上创建,命名VLAN 重复5-8步,在 Switch b创建,命名VLAN step10显示VLAN的接口信息 Switch A#show vlan Step11测试 VLANs step12创建 ISL trunk Switch A(config)#interface fastethernet 0/1 Switch A(config-if)#switchport mode trunk

Switch_A(vlan)#exit Step 6 安排4,5,6端口到VLAN 10 Switch_A(config)#interface fastethernet 0/4 Switch_A(config-if)#switchport mode access Switch_A(config-if)#switchport access vlan 10 Switch_A(config-if)#interface fastethernet 0/5 Switch_A(config-if)#switchport mode access Switch_A(config-if)#switchport access vlan 10 Switch_A(config-if)#interface fastethernet 0/6 Switch_A(config-if)#switchport mode access Switch_A(config-if)#switchport access vlan 10 Switch_A(config-if)#end Step 7 安排端口7,8,9到VLAN 20 Switch_A#configure terminal Switch_A(config)#interface fastethernet 0/7 Switch_A(config-if)#switchport mode access Switch_A(config-if)#switchport access vlan 20 Switch_A(config-if)#interface fastethernet 0/8 Switch_A(config-if)#switchport mode access Switch_A(config-if)#switchport access vlan 20 Switch_A(config-if)#interface fastethernet 0/9 Switch_A(config-if)#switchport mode access Switch_A(config-if)#switchport access vlan 20 Switch_A(config-if)#end Step 8 安排端口10,11,12到VLAN 30 Switch_A#configure terminal Switch_A(config)#interface fastethernet 0/10 Switch_A(config-if)#switchport mode access Switch_A(config-if)#switchport access vlan 30 Switch_A(config-if)#interface fastethernet 0/11 Switch_A(config-if)#switchport mode access Switch_A(config-if)#switchport access vlan 30 Switch_A(config-if)#interface fastethernet 0/12 Switch_A(config-if)#switchport mode access Switch_A(config-if)#switchport access vlan 30 Switch_A(config-if)#end Step 9 在Switch_B上创建,命名VLAN 重复5-8步,在Switch_B创建,命名VLAN Step 10 显示VLAN的接口信息 Switch_A#show vlan Step 11 测试VLANs Step 12 创建ISL trunk Switch_A(config)#interface fastethernet 0/1 Switch_A(config-if)#switchport mode trunk

Switch A(config-if)#switchport trunk encapsulation isl Switch A(config-if)#end Switch B(config)#interface fastethernet 0/1 Switch B(config-if)#switchport mode trunk Switch B(config-if)#switchport trunk encapsulation isl Switch B(config-if)#end Step13测试 ISL trunk (二)dotl FA/12 FAO/1 FA0/1 Switch 1 Trunk 802.1q Switch2 FA0/12 Switch Switch Enable Enable, VTY, VLAN 1 IP Subnet VLAN Names Switch Port Designation Name Secret and Console Address Mask and Numbers Assignments Password Passwords Swich 1 Switch A class 92168122552552550AN1 Native faora2.03 30/4.06 Accounting VLAN 30 fa0/10·0/12 Engineering Switch Class 192168132552552550VAN1 Native fao2.03 VLAN 10 Accounting VLAN 2 fa0/7.09 Marketi VLAN 3 fa0/10·0/12 straight-through cable Serial cable console(ove)·· Crossover cable=- step1配置交换机的基本参数 参考上面的实验 Step2为PC配置正确的IP地址,子网掩码和缺省网关 Step3检测连通性 由 switch ping两台PC机,检测连通性 step4显示VLAN的接口信息 Switch a#show vlan Step5在 Switch a上创建,命名VLAN Switch a#vlan database Switch A(vlan)#vlan 10 name Accounting Switch A(vlan)#vlan 20 name Marketing Switch A(vlan)#vlan 30 name Engineering Switch A(vlan)#exit

Switch_A(config-if)#switchport trunk encapsulation isl Switch_A(config-if)#end Switch_B(config)#interface fastethernet 0/1 Switch_B(config-if)#switchport mode trunk Switch_B(config-if)#switchport trunk encapsulation isl Switch_B(config-if)#end Step 13 测试ISL trunk (二)dot1q Step 1 配置交换机的基本参数 参考上面的实验 Step 2 为PC配置正确的IP地址,子网掩码和缺省网关 Step 3 检测连通性 由switch ping两台PC机,检测连通性 Step 4 显示VLAN的接口信息 Switch_A#show vlan Step 5 在Switch_A上创建,命名VLAN Switch_A#vlan database Switch_A(vlan)#vlan 10 name Accounting Switch_A(vlan)#vlan 20 name Marketing Switch_A(vlan)#vlan 30 name Engineering Switch_A(vlan)#exit

step6安排4,5,6端口到AN10 Switch A(config)#interface fastethernet 0/4 Switch A(config-if)#switchport mode access Switch A(config-if)#switchport access vlan 10 Switch A(config-if)#interface fastethernet 0/5 Switch A(config-if)#switchport mode access Switch A(config-if)#switchport access vlan 10 Switch A(config-if)interface fastethernet0/6 Switch A(config-if)#switchport mode access Switch A(config-if)#switchport access vlan 10 Switch A(config-if)#end Step7安排端口7,8,9到VLAN20 Switch A#configure terminal Switch A(config)#interface fastethernet 0/7 Switch A(config-if)#switchport mode access Switch A(config-if)#switchport access vlan 20 Switch A(config-if)#interface fastethernet 0/8 Switch A(config-if)#switchport mode access Switch A(config-if)#switchport access vlan 20 Switch A(config-if)#interface fastethernet 0/9 Switch A(config-if)#switchport mode access Switch A(config-if)#switchport access vlan 20 h A(conf ig Step8安排端口10,11,12到VAN30 Switch A#configure terminal Switch A(config)#interface fastethernet 0/10 Switch A(config-if)#switchport mode access Switch A(config-if)#switchport access vlan 30 Switch A(config-if)#interface fastethernet 0/11 Switch A(config-if)#swite Wl tchport mode access Switch A(config-if)#switchport access vlan 30 Switch A(config-if)#interface fastethernet 0/12 Switch A(config-if)#switchport mode access Switch A(config-if)#switchport access vlan 30 Switch A(config-if)#end Step9在 Switch B上创建,命名VLAN 重复5-8步,在 Switch b创建,命名VLAN step10显示VLAN的接口信息 Switch a#show vlan step11测试 VLANs Step12创建 dotlq trunk Switch A(config)#interface fastethernet 0/1 Switch A(config-if)#switchport mode trunk Switch A(config-if)#switchport trunk encapsulation dotlq

Step 6 安排4,5,6端口到VLAN 10 Switch_A(config)#interface fastethernet 0/4 Switch_A(config-if)#switchport mode access Switch_A(config-if)#switchport access vlan 10 Switch_A(config-if)#interface fastethernet 0/5 Switch_A(config-if)#switchport mode access Switch_A(config-if)#switchport access vlan 10 Switch_A(config-if)#interface fastethernet 0/6 Switch_A(config-if)#switchport mode access Switch_A(config-if)#switchport access vlan 10 Switch_A(config-if)#end Step 7 安排端口7,8,9到VLAN 20 Switch_A#configure terminal Switch_A(config)#interface fastethernet 0/7 Switch_A(config-if)#switchport mode access Switch_A(config-if)#switchport access vlan 20 Switch_A(config-if)#interface fastethernet 0/8 Switch_A(config-if)#switchport mode access Switch_A(config-if)#switchport access vlan 20 Switch_A(config-if)#interface fastethernet 0/9 Switch_A(config-if)#switchport mode access Switch_A(config-if)#switchport access vlan 20 Switch_A(config-if)#end Step 8 安排端口10,11,12到VLAN 30 Switch_A#configure terminal Switch_A(config)#interface fastethernet 0/10 Switch_A(config-if)#switchport mode access Switch_A(config-if)#switchport access vlan 30 Switch_A(config-if)#interface fastethernet 0/11 Switch_A(config-if)#switchport mode access Switch_A(config-if)#switchport access vlan 30 Switch_A(config-if)#interface fastethernet 0/12 Switch_A(config-if)#switchport mode access Switch_A(config-if)#switchport access vlan 30 Switch_A(config-if)#end Step 9 在Switch_B上创建,命名VLAN 重复5-8步,在Switch_B创建,命名VLAN Step 10 显示VLAN的接口信息 Switch_A#show vlan Step 11 测试VLANs Step 12 创建dot1q trunk Switch_A(config)#interface fastethernet 0/1 Switch_A(config-if)#switchport mode trunk Switch_A(config-if)#switchport trunk encapsulation dot1q

Switch A(config-if)#end Switch B(config)#interface fastethernet 0/1 Switch B(config-if)#switchport mode trunk Switch B(config-if)#switchport trunk encapsulation dot1q Switch B(config-if)#end Step13测试 dotlq trunk 三.VLAN的VTP配置 本实验需要2900交换机两台,PC机两台, console线一条 FA0/12 FAO/1 FAO/1 Switch 1 Trunk 802.1q 2/FAO/12 Switch Switch Enable Enable, VTY, VLAN 1 IP Subnet VLAN Names Switch Port Designation Name Secret and Console Address Mask and Numbers Assignments Password Passwords Switch witchA cass 192168122552552550VLAN1 Native/2.03 Accounting VLAN 20 faon7·09 Switch 2 Switch_B class 102168132552552550VAN1 Native fao2.03 VLAN 1 fa014-06 VLAN 2 fao/7.09 VLAN 30 fa0/100/12 Serial cable step1配置交换机 参考上面的实验 step2为PC配置正确的IP地址,子网掩码和缺省网关 Step3测试连接性 由 switch ping两台PC机,检测连通性 step4显示VAN接口信息 Switch a#showⅴ1 step5配置vTP服务器端 Switch a#vlan database Switch A(vlan)#vtp server Switch A(vlan)#vtp domain groupl Switch A(vlan)#exit Step6创建,命名VANs Switch a#ylan database

Switch_A(config-if)#end Switch_B(config)#interface fastethernet 0/1 Switch_B(config-if)#switchport mode trunk Switch_B(config-if)#switchport trunk encapsulation dot1q Switch_B(config-if)#end Step 13 测试dot1q trunk 三.VLAN 的 VTP 配置 本实验需要 2900 交换机两台,PC 机两台,console 线一条 Step 1 配置交换机 参考上面的实验 Step 2 为PC配置正确的IP地址,子网掩码和缺省网关 Step 3 测试连接性 由switch ping两台PC机,检测连通性 Step 4 显示VLAN接口信息 Switch_A#show vlan Step 5 配置VTP服务器端 Switch_A#vlan database Switch_A(vlan)#vtp server Switch_A(vlan)#vtp domain group1 Switch_A(vlan)#exit Step 6 创建,命名VLANs Switch_A#vlan database

Switch A(vlan)#vlan 10 name accounting Switch A(vlan)#v lan 20 name Marketing Switch A(vlan)#v lan 30 name Engineering Switch A(vlan)#exit Step7安排端口4,5,6到VAN10 Switch A#configure terminal Switch A(config)#interface fastethernet 0/4 Switch A(config-if)#switchport mode access Switch A(config-if)#switchport access vlan 10 Switch A(config-if)#interface fastethernet 0/5 Switch A(config-if)#switchport mode access Switch A(config-if)#switchport access vlan 10 Switch A(config-if)#interface fastethernet 0/6 Switch A(config-if)#switchport mode access Switch A(config-if)#switchport access vlan 10 Switch A(config-if)#end Step8安排端口7,8,9到VLAN20 Switch A#configure terminal Switch A(config)#interface fastethernet 0/7 Switch A(config-if)#switchport mode access Switch A(config-if)#switchport access vlan 20 Switch A(config-if)#interface fastethernet 0/8 Switch A(config-if)#switchport mode access Switch A(config-if)#switchport access vlan 20 Switch A(config-if)#interface fastethernet 0/9 Switch A(config-if)#switchport mode access Switch A(config-if)#switchport access vlan 20 Switch A(config-if)#end Step9安排端口10,11,12到vAN30 Switch A#configure termina Switch A(config)#interface fastethernet 0/10 Switch A(config-if)#switchport mode access Switch A(config-if)#switch s vlan 30 Switch A(config-if)#interface fastethernet 0/11 Switch A(config-if)#switchport mode access Switch A(config-if)#switchport access vlan 30 Switch A(config-if)#interface fastethernet 0/12 Switch A(config-if)#switchport mode access Switch A(config-if)#switchport access vlan 30 Switch A(config-if)#end Step10显示VAN接口信息 Switch A#show vlan step11配置VTP客户端 Enter the following commands to configure Switch b to be a VTP client

Switch_A(vlan)#vlan 10 name Accounting Switch_A(vlan)#vlan 20 name Marketing Switch_A(vlan)#vlan 30 name Engineering Switch_A(vlan)#exit Step 7 安排端口4,5,6到VLAN 10 Switch_A#configure terminal Switch_A(config)#interface fastethernet 0/4 Switch_A(config-if)#switchport mode access Switch_A(config-if)#switchport access vlan 10 Switch_A(config-if)#interface fastethernet 0/5 Switch_A(config-if)#switchport mode access Switch_A(config-if)#switchport access vlan 10 Switch_A(config-if)#interface fastethernet 0/6 Switch_A(config-if)#switchport mode access Switch_A(config-if)#switchport access vlan 10 Switch_A(config-if)#end Step 8 安排端口7,8,9到VLAN 20 Switch_A#configure terminal Switch_A(config)#interface fastethernet 0/7 Switch_A(config-if)#switchport mode access Switch_A(config-if)#switchport access vlan 20 Switch_A(config-if)#interface fastethernet 0/8 Switch_A(config-if)#switchport mode access Switch_A(config-if)#switchport access vlan 20 Switch_A(config-if)#interface fastethernet 0/9 Switch_A(config-if)#switchport mode access Switch_A(config-if)#switchport access vlan 20 Switch_A(config-if)#end Step 9 安排端口10,11,12到VLAN 30 Switch_A#configure terminal Switch_A(config)#interface fastethernet 0/10 Switch_A(config-if)#switchport mode access Switch_A(config-if)#switchport access vlan 30 Switch_A(config-if)#interface fastethernet 0/11 Switch_A(config-if)#switchport mode access Switch_A(config-if)#switchport access vlan 30 Switch_A(config-if)#interface fastethernet 0/12 Switch_A(config-if)#switchport mode access Switch_A(config-if)#switchport access vlan 30 Switch_A(config-if)#end Step 10 显示VLAN接口信息 Switch_A#show vlan Step 11 配置VTP客户端 Enter the following commands to configure Switch_B to be a VTP client:

Switch B#vlan database Switch B(vlan)#vtp client Switch B(vlan)#vtp domain group1 Switch B(vlan)#exit Step12创建 trunk Switch A(config)#interface fastethernet 0/1 Switch A(config-if)#switchport mode trunk Switch A(config-if)#end Switch B(config)#interface fastethernet 0/1 Switch B(config-if)#switchport mode trunk Switch B(config-if)#end 2900: Note that it is necessary to specify the encapsulation on a 2924XL since it supports 802. 1Qand ISL Switch A(config)#interface fastetherneto/1 Switch A(config-if)#switchport mode trunk Switch A(config-if)#switchport trunk encapsulation dotlq Switch A(config-if)#end Switch B(config)#interface fastetherneto/1 Switch B(config-if)#switchport mode trunk Switch B(config-if)#switchport trunk encapsulation dotlq Switch B(config-if)#end Step13测试 trunk show interface fastethernet 0/1 switchport step14显示VLAN接口信息 Switch b#show vlan step15安排端口4,5,6到VAN10 Switch B#configure terminal Switch B(config)#interface fastethernet 0/4 Switch B(config-if)#switchport mode access Switch B(config-if)#switchport access vlan 10 Switch B(config-if)#interface fastethernet 0/5 Switch B(config-if)#switchport mode access Switch B(config-if)#switch svlan 10 Switch B(config-if)#interface fastethernet 0/6 Switch B(config-if)#switchport mode access Switch B(config-if)#switchport access vlan 10 Switch B(config-if)#end Step 16 Assign ports to vlan 20 Switch B#configure terminal Switch B(config)#interface fastethernet 0/7 Switch B(config-if)#switchport mode access Switch B(config-if)#switchport access vlan 20 Switch B(config-if)#interface fastethernet 0/8 Switch B(config-if)#switchport mode access

Switch_B#vlan database Switch_B(vlan)#vtp client Switch_B(vlan)#vtp domain group1 Switch_B(vlan)#exit Step 12 创建trunk Switch_A(config)#interface fastethernet 0/1 Switch_A(config-if)#switchport mode trunk Switch_A(config-if)#end Switch_B(config)#interface fastethernet 0/1 Switch_B(config-if)#switchport mode trunk Switch_B(config-if)#end 2900:Note that it is necessary to specify the encapsulation on a 2924XL, since it supports 802.1Qand ISL. Switch_A(config)#interface fastethernet0/1 Switch_A(config-if)#switchport mode trunk Switch_A(config-if)#switchport trunk encapsulation dot1q Switch_A(config-if)#end Switch_B(config)#interface fastethernet0/1 Switch_B(config-if)#switchport mode trunk Switch_B(config-if)#switchport trunk encapsulation dot1q Switch_B(config-if)#end Step 13 测试trunk show interface fastethernet 0/1 switchport Step 14 显示VLAN接口信息 Switch_B#show vlan Step 15 安排端口4,5,6到VLAN 10 Switch_B#configure terminal Switch_B(config)#interface fastethernet 0/4 Switch_B(config-if)#switchport mode access Switch_B(config-if)#switchport access vlan 10 Switch_B(config-if)#interface fastethernet 0/5 Switch_B(config-if)#switchport mode access Switch_B(config-if)#switchport access vlan 10 Switch_B(config-if)#interface fastethernet 0/6 Switch_B(config-if)#switchport mode access Switch_B(config-if)#switchport access vlan 10 Switch_B(config-if)#end Step 16 Assign ports to VLAN 20 Switch_B#configure terminal Switch_B(config)#interface fastethernet 0/7 Switch_B(config-if)#switchport mode access Switch_B(config-if)#switchport access vlan 20 Switch_B(config-if)#interface fastethernet 0/8 Switch_B(config-if)#switchport mode access

点击下载完整版文档(DOC)VIP每日下载上限内不扣除下载券和下载次数;
按次数下载不扣除下载券;
24小时内重复下载只扣除一次;
顺序:VIP每日次数-->可用次数-->下载券;
共17页,试读已结束,阅读完整版请下载
相关文档

关于我们|帮助中心|下载说明|相关软件|意见反馈|联系我们

Copyright © 2008-现在 cucdc.com 高等教育资讯网 版权所有