This shows you the differences between two versions of the page.
rl:labs:04:contents:06 [2013/08/24 13:34] 127.0.0.1 external edit |
rl:labs:04:contents:06 [2023/10/27 09:18] (current) laura.ruse |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ==== 06. Lorem ipsum ==== | + | ==== 06. [15p] Configurare legături de tip trunchi cascadate ==== |
- | ... | + | **Topologie**: {{:rl:labs:04:contents:rl_lab-04_vlan-trunchi-cascadat.pkt|download}} |
+ | * Ne propunem să construim rețele locale virtuale (VLAN-uri) pe o topologie cu mai multe switch-uri. Vom folosi legături de tip trunchi între switch-uri. | ||
+ | * Topologia conține 4 stații (''PC0'', ''PC1'', ''PC2'', ''PC3'') și trei switch-uri (''Switch0'', ''Switch1'', ''Switch2''). | ||
+ | * Cele patru stații au deja adresele IP configurate și trebuie să se găsească două câte două în VLAN-uri: | ||
+ | * VLAN ''10'': ''PC0'' și ''PC2'' | ||
+ | * VLAN ''20'': ''PC1'' și ''PC3'' | ||
+ | * Pentru început, după ce switch-urile rulează STP, verificați conectivitatea între **toate** cele patru stații. | ||
+ | * Nefiind realizate configurații de VLAN pe switch-uri, stațiile pot comunica între ele, oricare două. | ||
+ | |||
+ | * Configurați switch-urile astfel încât stațiile să poată comunica doar în cadrul VLAN-ului propriu (să existe separație la nivelul 2). | ||
+ | |||
+ | <note important> | ||
+ | Atenție, trebuie create toate VLAN-urile (10 si 20) pe toate switch-urile. | ||
+ | </note> | ||
+ | |||
+ | * Verificați transmițând pachete între oricare două stații. | ||
+ | |||
+ | <hidden> | ||
+ | <solution> | ||
+ | Procesul de configurare pe switch-ul ''Switch0'' este următorul: | ||
+ | <code> | ||
+ | Switch0>en | ||
+ | Switch0#conf t | ||
+ | Enter configuration commands, one per line. End with CNTL/Z. | ||
+ | Switch1(config)#vlan 10 | ||
+ | Switch1(config-vlan)#name zece | ||
+ | Switch1(config-vlan)#exit | ||
+ | Switch1(config)#vlan 20 | ||
+ | Switch1(config-vlan)#name douazeci | ||
+ | Switch1(config-vlan)#exit | ||
+ | Switch0(config)# int fa0/1 | ||
+ | Switch0(config-if)#switchport mode access | ||
+ | Switch0(config-if)#switchport access vlan 10 | ||
+ | Switch0(config-if)#exit | ||
+ | Switch0(config)# int fa1/1 | ||
+ | Switch0(config-if)#switchport mode access | ||
+ | Switch0(config-if)#switchport access vlan 20 | ||
+ | Switch0(config-if)#exit | ||
+ | Switch0(config)#int fa2/1 | ||
+ | Switch0(config-if)#switchport mode trunk | ||
+ | Switch0(config-if)#switchport trunk allowed vlan 10,20 | ||
+ | Switch0(config)# | ||
+ | </code> | ||
+ | |||
+ | Procesul de configurare pe switch-ul ''Switch1'' este următorul: | ||
+ | <code> | ||
+ | Switch1#conf t | ||
+ | Enter configuration commands, one per line. End with CNTL/Z. | ||
+ | Switch1(config)#vlan 10 | ||
+ | Switch1(config-vlan)#name zece | ||
+ | Switch1(config-vlan)#exit | ||
+ | Switch1(config)#vlan 20 | ||
+ | Switch1(config-vlan)#name douazeci | ||
+ | Switch1(config-vlan)#exit | ||
+ | Switch1(config)#int fa0/1 | ||
+ | Switch1(config-if)#swith | ||
+ | Switch1(config-if)#switchport mode trunk | ||
+ | Switch1(config-if)#switchport trunk allowed vlan 10,20 | ||
+ | Switch1(config-if)#exit | ||
+ | Switch1(config)#int fa1/1 | ||
+ | Switch1(config-if)#switchport mode trunk | ||
+ | Switch1(config-if)#switchport trunk allowed vlan 10,20 | ||
+ | Switch1(config-if)#exit | ||
+ | Switch1(config)# | ||
+ | </code> | ||
+ | |||
+ | Procesul de configurare pe switch-ul ''Switch2'' este următorul: | ||
+ | <code> | ||
+ | Switch2>en | ||
+ | Switch2#conf t | ||
+ | Enter configuration commands, one per line. End with CNTL/Z. | ||
+ | Switch2(config)#vlan 10 | ||
+ | Switch2(config-vlan)#name zece | ||
+ | Switch2(config-vlan)#exit | ||
+ | Switch2(config)#vlan 20 | ||
+ | Switch2(config-vlan)#name douazeci | ||
+ | Switch2(config-vlan)#exit | ||
+ | Switch2(config)#int fa1/1 | ||
+ | Switch2(config-if)#switchport mode access | ||
+ | Switch2(config-if)#switchport access vlan 10 | ||
+ | Switch2(config-if)#exit | ||
+ | Switch2(config)#int fa2/1 | ||
+ | Switch2(config-if)#switchport mode access | ||
+ | Switch2(config-if)#switchport access vlan 20 | ||
+ | Switch2(config-if)#exit | ||
+ | Switch2(config)#int fa0/1 | ||
+ | Switch2(config-if)#switchport mode trunk | ||
+ | Switch2(config-if)#switchport trunk all | ||
+ | Switch2(config-if)#switchport trunk allowed vlan 10,20 | ||
+ | Switch2(config-if)#exit | ||
+ | Switch2(config)# | ||
+ | </code> | ||
+ | </solution> | ||
+ | </hidden> |