6-rasm.
3.2.1. VTP-domen kommutatorini sozlash
Avvalo, VTP asosiy parametrlarini sozlash va VLANlarni qo'shish kerak.
Keyin
portlarning VLANga tegishliligini aniqlang va trunk ni aniqlang. So'ng, VLANlar o'rtasida yo'l-
yo'riq o'rnatish kerak.
3.2.1.1. Sw0 kommutatorini sozlash
Sw0>enable
Sw0#configure terminal
1. VTP asosiy parametrlarini sozlash
Sw0(config)#vtp
mode server
Sw0(config)#vtp domain CCNA
Sw0(config)#vtp password 12345
Sw0(config)#vtp version 2
2. VLAN larni qo’shish
Sw0(config)#vlan 20
Sw0(config-vlan)#name RED
Sw0(config-vlan)#exit
Sw0(config)#vlan 30
Sw0(config-vlan)#name GREEN
Sw0(config-vlan)#exit
Sw0(config)#vlan 40
Sw0(config-vlan)#name BLUE
Sw0(config-vlan)#exit
3. Trunk larni aniqlash
Sw0(config)#interface range FastEthernet 0/1-5
Sw0(config-if-range)#switchport
mode trunk
Sw0(config-if-range)#end
Sw0#copy run
start
3.2.1.2.
Sw1 kommutatorni sozlash
Sw1>enable
Sw1#configure terminal
1. VTP asosiy parametrlarini sozlash
Sw1(config)#vtp
mode client
Sw0(config)#vtp domain CCNA
Sw0(config)#vtp password 12345
2. Portlarning VLAN larga tegishliligini aniqlash
Sw1(config)#interface FastEthernet 0/2
Sw1(config-if)#switchport
mode access
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