您的当前位置:首页正文

rcna实验6 快速生成树配置

2021-12-07 来源:易榕旅网
本实验报告有本人自己所写,详情联系xiamengyu@hotmail.com http://lucygirls.taobao.com

实验6 快速生成树配置

一、【实验目的】

理解快速生成树协议RSTP的原理,掌握如何在交换机上配置快速生成树

二、【实验拓扑】

三、【实验步骤】

步骤1 配置两台交换机主机名和管理IP地址 Switch#configure terminal

L3-SW(config)#interface fastEthernet 0/1

L3-SW(config-if)#switchport mode trun

Command rejected: An interface whose trunk encapsulation is \"Auto\" can not be configured to \"trunk\" mode.

L3-SW(config-if)#switchport trunk encapsulation dot1q L3-SW(config-if)#switchport mode trunk L3-SW(config)#interface fastEthernet 0/2

L3-SW(config-if)#switchport trunk encapsulation dot1q L3-SW(config-if)#switchport mode trunk L2-SW(config)#interface vlan 1

L2-SW (config-if)#ip address 192.168.1.2 255.255.255.0 L2-SW (config-if)#exit

L2-SW (config)#interface range fastEthernet 0/1-2 L2-SW (config-if-range)#switchport mode trunk

步骤2 在两台交换机启用RSTP

L3-SW(config)#spanning-tree mode ?

pvst Per-Vlan spanning tree mode rapid-pvst Per-Vlan rapid spanning tree mode

1

本实验报告有本人自己所写,详情联系xiamengyu@hotmail.com http://lucygirls.taobao.com

L3-SW(config)#spanning-tree mode rapid-pvst

L2-SW(config)#spanning-tree mode ?

pvst Per-Vlan spanning tree mode rapid-pvst Per-Vlan rapid spanning tree mode L2-SW(config)#spanning-tree mode rapid-pvst

四、【查看配置】

L2-SW#show running-config Building configuration...

Current configuration : 1045 bytes !

version 12.1

no service timestamps log datetime msec no service timestamps debug datetime msec no service password-encryption !

hostname L2-SW !

spanning-tree mode rapid-pvst !

interface FastEthernet0/1 switchport mode trunk !

interface FastEthernet0/2 switchport mode trunk !

interface FastEthernet0/3 !

interface FastEthernet0/4 !

interface FastEthernet0/5 !

interface FastEthernet0/6 !

2

本实验报告有本人自己所写,详情联系xiamengyu@hotmail.com http://lucygirls.taobao.com

interface FastEthernet0/7 !

interface FastEthernet0/8 !

interface FastEthernet0/9 !

interface FastEthernet0/10 !

interface FastEthernet0/11 !

interface FastEthernet0/12 !

interface FastEthernet0/13 !

interface FastEthernet0/14 !

interface FastEthernet0/15 !

interface FastEthernet0/16 !

interface FastEthernet0/17 !

interface FastEthernet0/18 !

interface FastEthernet0/19 !

interface FastEthernet0/20 !

interface FastEthernet0/21 !

interface FastEthernet0/22 !

interface FastEthernet0/23 !

interface FastEthernet0/24 !

interface Vlan1

ip address 192.168.1.2 255.255.255.0 shutdown

3

本实验报告有本人自己所写,详情联系xiamengyu@hotmail.com http://lucygirls.taobao.com

!

line con 0 !

line vty 0 4 login

line vty 5 15 login ! End

L3-SW#show running-config Building configuration...

Current configuration : 1207 bytes !

version 12.2

no service timestamps log datetime msec no service timestamps debug datetime msec no service password-encryption !

hostname L3-SW

!

spanning-tree mode rapid-pvst !

interface FastEthernet0/1

switchport trunk encapsulation dot1q switchport mode trunk !

interface FastEthernet0/2

switchport trunk encapsulation dot1q switchport mode trunk !

interface FastEthernet0/3 !

interface FastEthernet0/4 !

interface FastEthernet0/5

4

本实验报告有本人自己所写,详情联系xiamengyu@hotmail.com http://lucygirls.taobao.com

!

interface FastEthernet0/6 !

interface FastEthernet0/7 !

interface FastEthernet0/8 !

interface FastEthernet0/9 !

interface FastEthernet0/10 !

interface FastEthernet0/11 !

interface FastEthernet0/12 !

interface FastEthernet0/13 !

interface FastEthernet0/14 !

interface FastEthernet0/15 !

interface FastEthernet0/16 !

interface FastEthernet0/17 !

interface FastEthernet0/18 !

interface FastEthernet0/19 !

interface FastEthernet0/20 !

interface FastEthernet0/21 !

interface FastEthernet0/22 !

interface FastEthernet0/23 !

interface FastEthernet0/24 !

5

本实验报告有本人自己所写,详情联系xiamengyu@hotmail.com http://lucygirls.taobao.com

interface GigabitEthernet0/1 !

interface GigabitEthernet0/2 !

interface Vlan1

ip address 192.168.1.1 255.255.255.0 !

ip classless !

line con 0 line vty 0 4 login ! end

6

因篇幅问题不能全部显示,请点此查看更多更全内容