Sw1(config-if)#switchport access vlan 20
Sw1(config-if)#exit
Sw1(config)#interface FastEthernet 0/3
Sw1(config-if)#switchport mode access
Sw1(config-if)#switchport access vlan 30
Sw1(config-if)#exit
Sw1(config)#interface FastEthernet 0/4
Sw1(config-if)#switchport mode access
Sw1(config-if)#switchport access vlan 40
Sw1(config-if)#exit
3. Trunklarni aniqlash
Sw1(config)#interface FastEthernet 0/1
Sw1(config-if)#switchport mode trunk
Sw1(config-if)#end
Sw1#copy run start
3.2.1.3.
Sw2 kommutatorni sozlash
Sw2>enable
Sw2#configure terminal
1. VTP asosiy parametrlarini sozlash
Sw2(config)#vtp mode client
Sw0(config)#vtp domain CCNA
Sw0(config)#vtp password 12345
2. Portlarning VLAN larga tegishliligini aniqlash
Sw2(config)#interface FastEthernet 0/2
Sw2(config-if)#switchport mode access
Sw2(config-if)#switchport access vlan 20
Sw2(config-if)#exit
Sw2(config)#interface FastEthernet 0/3
Sw2(config-if)#switchport mode access
Sw2(config-if)#switchport access vlan 30
Sw2(config-if)#exit
Sw2(config)#interface FastEthernet 0/4
Sw2(config-if)#switchport mode access
Sw2(config-if)#switchport access vlan 40
Sw2(config-if)#exit
3. Trunklari aniqlsh
Sw2(config)#interface FastEthernet 0/1
Sw2(config-if)#switchport mode trunk
Sw2(config-if)#end