Вы находитесь на странице: 1из 6

Chapter 6 Solution PT Scripts and Solutions for PTskills 6 - LAN-Switching-and-Wireless Each page of this document corresponds with the

device that is stated. Where it says begin script it needs to be copied to Notepad to remove all format encoding. If there is a noted break (i.e. in S2 I put a break in to explain the Vlan assignment process for Task 5) then it needs to be removed and all the corresponding text needs to be pasted as one swipe. I find it much easier this way to type it all in here and then copy and paste to nullify myself from the ulgy flashing seizure causing packet tracer software. Hope this helps and if anyone has any suggestions or if for some reason you cant get it to work the comments link at the top is open. These are to 100%. I urge you to only use this as a last resort or if you are stuck. I learned more by making each and every one of these scripts than I have the entire way. Also, the case for doing things this way is we can compare and solve problems as apposed to being lost as to what you might have done that stuck packet tracer into an infinite loop that it cant get out of.

S#? if this were a real switch you would start with enable erase startup-config del flash:vlan.dat (erases all the vlan assignments that are stored on the switch) reload (then y, y, after reload n)
Since this is Packet Tracer that we are dealing with it doesnt care so I left this out of the script to avoid bugs in that may result from future and or past versions.

S2 en conf term hostname S2 ip default 172.17.99.1 vlan 99 int vlan 99 ip address 172.17.99.32 255.255.255.0 exi vtp mode client vtp domain CCNA vtp password cisco int range fa0/1 -5 swi mode trunk swit trunk native vlan 99 exit !Vlan script Task 5 for S2! int range fa0/6 -10 swi mode access swit access vlan 30 exit int range fa0/11 -17 swi mode access swit access vlan 10 exit int range fa0/18 -24 swit mode access swit access vlan 20 exit vlan 10 name Faculty/Staff vlan 20 name Students vlan 30 name Guest(Default) vlan 99 name Management&Native

S3 en conf term hostname S3 ip default 172.17.99.1 vlan 99 int vlan 99 ip address 172.17.99.33 255.255.255.0 exi vtp mode client vtp domain CCNA vtp password cisco int range fa0/1 -5 swi mode trunk swit trunk native vlan 99 exit

S1 en conf term hostname S1 ip default 172.17.99.1 vlan 99 int vlan 99 ip address 172.17.99.31 255.255.255.0 exi vtp mode server vtp domain CCNA vtp password cisco int range fa0/1 -5 swi mode trunk swit trunk native vlan 99 vlan 10 name Faculty/Staff vlan 20 name Students vlan 30 name Guest(Default) vlan 99 name Management&Native exi

!Spanning Tree for Task 6! - to make S1 the root bridge. This really is easy once you understand what each command means and does. What this command does in essence is sets S1 as the master switch, and via the priority number. The default priority for switches is 32768. When you
set the priority with this command, you force the selection of S1 as the root switch because S1 has the lowest priority. S2 and S3 retain the priority of 32768. ?make sense? :)

spanning-tree vlan 1,10,20,30,99 priority 4096 then you can use this command to verify the priority of each switch in the network. S1#show spanning-tree
!By default, spanning tree runs on every port. The spanning tree feature cannot be turned off in switches on a perport basis. Although it is not recommended, you can turn off STP on a per-VLAN basis, or globally on the switch. Extreme care should be taken whenever you disable spanning tree because this creates Layer 2 loops within the network.!

The later part starting at the interface range command should only have to be sent to the root bridge. If

not then you will create loop issues as mentioned earlier. The switch will then sync the Vlan data with the other routers, while retaining it lowest priority.

ROUTERS If this were a real router in any scenario make sure to run the following commands. enable erase startup-config reload (y,y, and then after reload N) !Packet Tracer does not require this command nor does it check for it! I would say just do it out of habit but who knows what is causing the thing to jam so I omit anything it doesnt ask for.! R1 - To link it to the switch. I am omitting the server commands in this cause they are not needed. en conf t hostname R1 int fa0/1 no ip address no shut int fa0/1.10 encapsulation dot1q 10 descript VLAN 10 - Faculty/Staff ip add 172.17.10.1 255.255.255.0 int fa0/1.20 encapsulation dot1q 20 description VLAN 20 - Students ip address 172.17.20.1 255.255.255.0 int fa0/1.30 encapsulation dot1q 30 descript VLAN 30 - Guest(Default) ip add 172.17.30.1 255.255.255.0 int fa0/1.99 encapsulation dot1q 99 native descript VLAN 99 - Management&Native ip address 172.17.99.1 255.255.255.0

Вам также может понравиться