
Лабораторная работа CCNA #FastPass - STP Lab 1 Basics
Лабораторная работа CCNA по теме STP. Данная лабораторная работа может быть выполнена на реальном оборудовании или в Cisco Packet Tracer. Все необходимые действия указаны по порядку их выполнения. Для начала выполнения лабораторной работы необходимо соединить физическую сеть в соответствии со схемой сети или построить соответствующий проект в Cisco Packet Tracer. Сразу после схемы сети в таблице указана схема адресация, которую нужно применять только тогда, когда это будет явно указано в тексте лабораторной работы.
Используемая топология
План адресации
-
Device
Interface
IP Address
Subnet Mask
Default Gateway
S1
VLAN 1
172.17.10.1
255.255.255.0
N/A
S2
VLAN 1
172.17.10.2
255.255.255.0
N/A
S3
VLAN 1
172.17.10.3
255.255.255.0
N/A
S4
VLAN 1
172.17.10.4
255.255.255.0
N/A
1. Базовая конфигурация оборудования
Настроить hostname.
Отключить DNS lookup.
Установить пароль для EXEC mode
Настроить message-of-the-day banner.
Установить пароль для console
Switch>enable
Switch#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#hostname S1
S1(config)#enable secret class
S1(config)#no ip domain-lookup
S1(config)#line console 0
S1(config-line)#password cisco
S1(config-line)#login
S1(config-line)#line vty 0 15
S1(config-line)#password cisco
S1(config-line)#login
S1(config-line)#end
%SYS-5-CONFIG_I: Configured from console by console
S1#copy running-config startup-config
Destination filename [startup-config]?
Building configuration...
[OK]
Switch>enable
Switch#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#hostname S1
S2(config)#enable secret class
S2(config)#no ip domain-lookup
S2(config)#line console 0
S2(config-line)#password cisco
S2(config-line)#login
S2(config-line)#line vty 0 15
S2(config-line)#password cisco
S2(config-line)#login
S2(config-line)#end
%SYS-5-CONFIG_I: Configured from console by console
S2#copy running-config startup-config
Destination filename [startup-config]?
Building configuration...
[OK]
Switch>enable
Switch#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#hostname S1
S3(config)#enable secret class
S3(config)#no ip domain-lookup
S3(config)#line console 0
S3(config-line)#password cisco
S3(config-line)#login
S3(config-line)#line vty 0 15
S3(config-line)#password cisco
S3(config-line)#login
S3(config-line)#end
%SYS-5-CONFIG_I: Configured from console by console
S3#copy running-config startup-config
Destination filename [startup-config]?
Building configuration...
[OK]
Switch>enable
Switch#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#hostname S1
S4(config)#enable secret class
S4(config)#no ip domain-lookup
S4(config)#line console 0
S4(config-line)#password cisco
S4(config-line)#login
S4(config-line)#line vty 0 15
S4(config-line)#password cisco
S4(config-line)#login
S4(config-line)#end
%SYS-5-CONFIG_I: Configured from console by console
S4#copy running-config startup-config
Destination filename [startup-config]?
Building configuration...
[OK]
Активировать пользовательские порты на каждом из коммутаторов.
S1(config)#interface range fa0/4-24
S1(config-if-range)#switchport mode access
S1(config-if-range)#no shutdown
S2(config)#interface range fa0/4-24
S2(config-if-range)#switchport mode access
S2(config-if-range)#no shutdown
S3(config)#interface range fa0/4-24
S3(config-if-range)#switchport mode access
S3(config-if-range)#no shutdown
S4(config)#interface range fa0/4-24
S4(config-if-range)#switchport mode access
S4(config-if-range)#no shutdown
На каждом из коммутаторов настроить trunk-порты
S1(config-if-range)#interface range fa0/1-3
S1(config-if-range)#switchport mode trunk
S1(config-if-range)#no shutdown
S2(config-if-range)#interface range fa0/1-3
S2(config-if-range)#switchport mode trunk
S2(config-if-range)#no shutdown
S3(config-if-range)#interface range fa0/1-3
S3(config-if-range)#switchport mode trunk
S3(config-if-range)#no shutdown
S4(config-if-range)#interface range fa0/1-3
S4(config-if-range)#switchport mode trunk
S4(config-if-range)#no shutdown
Настроить IP-адреса для интерфейсов управления на S1, S2, S3 и S4.
S1(config)#interface vlan1
S1(config-if)#ip address 172.17.10.1 255.255.255.0
S1(config-if)#no shutdown
S2(config)#interface vlan1
S2(config-if)#ip address 172.17.10.2 255.255.255.0
S2(config-if)#no shutdown
S3(config)#interface vlan1
S3(config-if)#ip address 172.17.10.3 255.255.255.0
S3(config-if)#no shutdown
S4(config)#interface vlan1
S4(config-if)#ip address 172.17.10.4 255.255.255.0
S4(config-if)#no shutdown