الاجابه دي تقريبا اللي عملتها لما امتحنت السوتش وانا جبت 1000/1000
اولا شكل الرسمه ممكن يحصل فيه شويه تغييرات
علي سبيل المثال في امتحاني السوتش اللي كان واصل بالروتر كان امسه switch A
اللاب دا من اكتر اللابات اللي بتاخد وقت وممكن تنسي منه حجات بسهوله
انا لما وصلت للاب دا طلبت ورقه كمان من المراقب
تقريبا اللاب دا فيه bug بعد لما بعمل no shut علي بورتات السيرفرات مش بيتحولو up
لما بعمل show ip int br في امتحاني فضلو down لغايه مزهقت كملت وطلعت صح
وانته بتعمل الترنك لنك وال etherchannel بين السوتشين يفضل انك تعمل ليهم shutdown الاول عشان تعدل ال native vlan بدل متديك رسايل native vlan missmatch
بس متنساش بعد اما تعمل ال configuration بتاعهم عمل no shut ,,,,,,انا كنت هنسي اعمل no shut
دي تقريبا كانت اجابتي
متنساش انو في اجابتي السوتش المتصل بالروتر هوه سوتش A
وممكن يكون في السيناريو بتاعي اختلاف بسيط
1) Distribution Switch (SwitchA)
1) Do not change VTP and STP settings
2) Switch needs to be spanning-tree root for VLAN 11-13,21-23. Other VLAN’s can have default STP priority
3) VLAN’s allowed on the trunk are 1,21-23
Access Switch (SwitchB)
1) STP and VTP settings should be identical to SwitchA
2) Configure VLAN’s as per diagram
3) VLAN 1,21-23 needs to be tagged when traversing the link
4) No routing needed on SwitchB
5) VLAN 1 needs to be configured with IP – 192.168.1.11/24
---------------
My approach was configuring SwitchA (Distribution Switch) first and then moving on to SwitchB. Following is my config as i remember it
SwitchA#show cdp neighbors detail —> Get the IP address of the Router (needed to ping at the end-192.168.1.1)
SwitchA#show vtp status —>Write down the VTP mode (was set to Transparent)
SwitchA#show spanning-tree —>Write down the STP mode (was set to RSTP)
SwitchA#show vlan —> Check if any VLAN is assigned to FastEthernet 0/3 and 0/4 (VLAN 98 was assigned)
SwitchA#show vlan —>Check whats the native VLAN (can be identified by the name “TrunkNative”, VLAN 99)
------------------------
SwitchA(config)#vlan 21
SwitchA(config-vlan)#name Marketing
SwitchA(config)#vlan 22
SwitchA(config-vlan)#name Sales
SwitchA(config)#vlan 23
SwitchA(config-vlan)#name Engineering
SwitchA(config)#spanning-tree vlan 11-13,21-23 root primary
***This completes VLAN configuration***
SwitchA(config)#int range fa0/3 – 4 –> Make sure you put a space between “3 – 4” for it to accept the command
SwitchA(config-int-range)#no shutdown
SwitchA(config-int-range)#no switchport access vlan 98 —> remove VLAN 98
SwitchA(config-int-range)#switchport mode trunk
SwitchA(config-int-range)#switchport trunk encapsulation dot1q —> System might not accept this command, but type it anyway
SwitchA(config-int-range)#switchport trunk native vlan 99
SwitchA(config-int-range)#switchport trunk allowed vlan 1,21-23
SwitchA(config-int-range)#channel-protocol lacp
SwitchA(config-int-range)#channel-group 1 mode active –> Distribution switch needs to be ACTIVE
SwitchA(config-int-range)#exit
SwitchA(config-if)#int port-channel 1
SwitchA(config-if)#switchport mode trunk —> System might not accept this command, but type it anyway
SwitchA(config-if)#switchport trunk encapsulation dot1q
SwitchA(config-if)#switchport trunk native vlan 99
SwitchA(config-if)#switchport trunk allowed vlan 1,21-23
***This complete’s Etherchannel configuration***
Move on to SwitchB (Access Switch)
SwitchB#show vlan —> check if any of the required VLAN’s are pre-configured (Need to configure 21-23,99)
SwitchB#show vtp status —> Check VTP mode of switch (Switch is in Server mode, need to change to Transparent)
SwitchB#show spanning-tree —> Check STP mode (Change to RSTP)
SwitchB(config)#vtp mode transparent
SwitchB(config)#spanning-tree mode rstp
***This complete’s STP and VTP configuration***
SwitchB(config)#vlan 21
SwitchB(config-vlan)#name Marketing (These are the actual Vlan names I got on my test)
SwitchB(config)#vlan 22
SwitchB(config-vlan)#name Sales
SwitchB(config)#vlan 23
SwitchB(config-vlan)#name Engineering
SwitchB(config)#vlan 99
SwitchB(config-vlan)#name TrunkNative
***This completes VLAN configuration***
SwitchB(config)#int range fa0/9 – 10
SwitchB(config-int-range)#switchport mode access
SwitchB(config-int-range)#switchport access vlan 21
SwitchB(config-int-range)#spanning-tree portfast
SwitchB(config-int-range)#no shutdown
SwitchB(config)#int range fa0/13 – 14
SwitchB(config-int-range)#switchport mode access
SwitchB(config-int-range)#switchport access vlan 22
SwitchB(config-int-range)# spanning-tree portfast
SwitchB(config-int-range)#no shutdown
SwitchB(config)#int range fa0/15 – 16
SwitchB(config-int-range)#switchport mode access
SwitchB(config-int-range)#switchport access vlan 23
SwitchB(config-int-range)# spanning-tree portfast
SwitchB(config-int-range)#no shutdown
SwitchB(config)#int vlan 1
SwitchB(config-if)#ip address 192.168.1.11 255.255.255.0
SwitchB(config)#ip default-gateway 192.1.68.1.1 —> You shouldn’t require this command, but i typed it anyway
***This completes access ports configuration***
SwitchB(config)#int range fa0/3 – 4
SwitchB(config-int-range)#no shutdown
SwitchB(config-int-range)#switchport mode trunk
SwitchB(config-int-range)#switchport trunk encapsulation dot1q
SwitchB(config-int-range)#switchport trunk native vlan 99
SwitchB(config-int-range)#switchport trunk allowed vlan 1,21-23
SwitchB(config-int-range)#channel-protocol lacp
SwitchB(config-int-range)#channel-group 1 mode passive –> Access switch needs to be PASSIVE
SwitchB(config-int-range)#exit
SwitchB(config-if)#int port-channel 1
SwitchB(config-if)#switchport mode trunk —> System might not accept this command, but type it anyway
SwitchB(config-if)#switchport trunk encapsulation dot1q
SwitchB(config-if)#switchport trunk native vlan 99
SwitchB(config-if)#switchport trunk allowed vlan 1,21-23
***This complete’s Etherchannel configuration***
SwitchB#ping 192.168.1.1
المفضلات