├── IPv4 ├── IPv4.png ├── README.md └── IPv4.txt ├── IPv6 ├── IPv6.png ├── README.md └── IPv6.txt ├── OSPFRoute ├── OSPFRoute.png ├── README.md └── OSPFRoute.txt ├── RIPRoute ├── RIPngRoute.png ├── README.md └── RIPngRoute.txt ├── EIGRPRoute ├── EIGRPRoute.png ├── README.md └── EIGRPRoute.txt ├── RIPv2Route ├── RIPv2Route.png ├── README.md └── RIPv2Route.txt ├── StaticRoute ├── StaticRoute.png ├── README.md └── StaticRoute.txt ├── SpanningTree ├── SpanningTree.png ├── SpanningTree.txt └── README.md ├── SwitchingVTP ├── SwitchingVTP.pkt ├── SwitchingVTP.png ├── README.md └── SwitchingVTP.txt ├── SwitchingVLAN ├── SwitchingVLAN.png ├── README.md └── SwitchingVLAN.txt ├── SwitchingInterVLAN ├── SwitchingInterVLAN.png ├── README.md └── SwitchingInterVLAN.txt └── README.md /IPv4/IPv4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beingRD/Cisco-Packet-Tracer-Scripts-for-Routing-and-Switching/HEAD/IPv4/IPv4.png -------------------------------------------------------------------------------- /IPv6/IPv6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beingRD/Cisco-Packet-Tracer-Scripts-for-Routing-and-Switching/HEAD/IPv6/IPv6.png -------------------------------------------------------------------------------- /OSPFRoute/OSPFRoute.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beingRD/Cisco-Packet-Tracer-Scripts-for-Routing-and-Switching/HEAD/OSPFRoute/OSPFRoute.png -------------------------------------------------------------------------------- /RIPRoute/RIPngRoute.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beingRD/Cisco-Packet-Tracer-Scripts-for-Routing-and-Switching/HEAD/RIPRoute/RIPngRoute.png -------------------------------------------------------------------------------- /EIGRPRoute/EIGRPRoute.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beingRD/Cisco-Packet-Tracer-Scripts-for-Routing-and-Switching/HEAD/EIGRPRoute/EIGRPRoute.png -------------------------------------------------------------------------------- /RIPv2Route/RIPv2Route.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beingRD/Cisco-Packet-Tracer-Scripts-for-Routing-and-Switching/HEAD/RIPv2Route/RIPv2Route.png -------------------------------------------------------------------------------- /StaticRoute/StaticRoute.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beingRD/Cisco-Packet-Tracer-Scripts-for-Routing-and-Switching/HEAD/StaticRoute/StaticRoute.png -------------------------------------------------------------------------------- /SpanningTree/SpanningTree.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beingRD/Cisco-Packet-Tracer-Scripts-for-Routing-and-Switching/HEAD/SpanningTree/SpanningTree.png -------------------------------------------------------------------------------- /SwitchingVTP/SwitchingVTP.pkt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beingRD/Cisco-Packet-Tracer-Scripts-for-Routing-and-Switching/HEAD/SwitchingVTP/SwitchingVTP.pkt -------------------------------------------------------------------------------- /SwitchingVTP/SwitchingVTP.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beingRD/Cisco-Packet-Tracer-Scripts-for-Routing-and-Switching/HEAD/SwitchingVTP/SwitchingVTP.png -------------------------------------------------------------------------------- /SwitchingVLAN/SwitchingVLAN.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beingRD/Cisco-Packet-Tracer-Scripts-for-Routing-and-Switching/HEAD/SwitchingVLAN/SwitchingVLAN.png -------------------------------------------------------------------------------- /SwitchingInterVLAN/SwitchingInterVLAN.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beingRD/Cisco-Packet-Tracer-Scripts-for-Routing-and-Switching/HEAD/SwitchingInterVLAN/SwitchingInterVLAN.png -------------------------------------------------------------------------------- /SpanningTree/SpanningTree.txt: -------------------------------------------------------------------------------- 1 | ! A Switch =================== 2 | ! Enter privilege mode 3 | config t 4 | 5 | ! Change the 'Root Bridge' 6 | spanning tree vlan 1 priority 0 7 | 8 | 9 | ! Disable STP at the given ports for instant access 10 | int range f0 / 1-15 11 | spanning tree portfast 12 | 13 | ! Prevent BPDU frames from accessing the given ports 14 | int range f0 / 1-15 15 | spanning tree bpduguard enable -------------------------------------------------------------------------------- /SpanningTree/README.md: -------------------------------------------------------------------------------- 1 | # Switching Loop 2 | 3 | 4 | To practice this example: 5 | - use PacketTracer 6 | - add 3 Cisco 2960 switch 7 | - connect them with crossover cables 8 | 9 | ![spanningtree](https://user-images.githubusercontent.com/39448332/40281164-5853809e-5c7b-11e8-90e4-8e8840b13695.png) 10 | 11 | 12 | # Objective 13 | Change the "Root Bridge" in a redundant configuration 14 | 15 | ## Commands 16 | `show cdp neighbors` 17 | 18 | Using Utiliser Cisco Packet Tracer 6.2.0 19 | -------------------------------------------------------------------------------- /IPv6/README.md: -------------------------------------------------------------------------------- 1 | 2 | # IPv6 "Dual Stack" configuration 3 | 4 | 5 | To practice this example: 6 | ``` 7 | - use PacketTracer 8 | - Open file ../0.IPv4/IPv4.pkt 9 | - Execute the commands of the .txt file 10 | ``` 11 | 12 | ![ipv6](https://user-images.githubusercontent.com/39448332/40281117-e05c64fc-5c7a-11e8-8020-27f8251bd26b.png) 13 | 14 | 15 | ## Purpose : 16 | 17 | Configure interfaces in IPV6 18 | 19 | ## Commands: 20 | 21 | ``` 22 | SHOW IPV6 INTERFACE BRIEF 23 | ``` 24 | 25 | Using Utiliser Cisco Packet Tracer 6.2.0 26 | -------------------------------------------------------------------------------- /SwitchingVLAN/README.md: -------------------------------------------------------------------------------- 1 | # Switching VLAN 2 | 3 | To practice this example: 4 | - use PacketTracer 5 | - add 3 Cisco 2960 switch 6 | - connect them with crossover cables 7 | 8 | ![switchingvlan](https://user-images.githubusercontent.com/39448332/40281195-cad00822-5c7b-11e8-9be8-ab543ad24242.png) 9 | 10 | 11 | ## Objective 12 | Connect 2 VLANs 13 | 14 | ## Commands 15 | `show vlan` 16 | 17 | `show int trunk` 18 | 19 | `show int switchport` (i.e. shot int f0 / 21 switchport) 20 | 21 | 22 | Using Utiliser Cisco Packet Tracer 6.2.0 23 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Packet Tracer Scripts (CCNA Router & Switching) 2 | 3 | Networking fundamentals, LAN, configured EIGRP and OSPF in IPv4/IPv6, 4 | implemented IP routing technologies, managed switches, VLANs & spanning tree and performed troubleshooting / Cisco Device configurations. 5 | 6 | 7 | ## Router & Switching Scripts List 8 | ``` 9 | - IPv4 10 | - IPV6 11 | - StaticRoute 12 | - RIPv2Route 13 | - RIPRoute 14 | - EIGRPRoute 15 | - OSPFRoute 16 | 17 | - Spanning Tree 18 | - Switching VLAN 19 | - Switching interVLAN 20 | - Switching VTP 21 | ``` 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /StaticRoute/README.md: -------------------------------------------------------------------------------- 1 | # Static Route 2 | 3 | To practice this example: 4 | ``` 5 | - use PacketTracer 6 | - Open file ../0.IPv4/IPv4.pkt 7 | - Execute the commands of the .txt file 8 | ``` 9 | ![staticroute](https://user-images.githubusercontent.com/39448332/40281173-79c86b86-5c7b-11e8-8713-2e8bc280cd39.png) 10 | 11 | 12 | ## Purpose of the exercise: 13 | 14 | Test the routing through the network, from the 1st PC [192.168.100.1] by executing the command 15 | 16 | > ping 192.168.102.1 17 | 18 | ## Commands: 19 | 20 | ``` 21 | SHOW IP ROUTE "Search S and S *" 22 | ``` 23 | 24 | Using Utiliser Cisco Packet Tracer 6.2.0 25 | -------------------------------------------------------------------------------- /EIGRPRoute/README.md: -------------------------------------------------------------------------------- 1 | # EIGRP Route 2 | 3 | 4 | To practice this example: 5 | ``` 6 | - use PacketTracer 7 | - Open file ../0.IPv4/IPv4.pkt 8 | - Execute the commands of the .txt file 9 | ``` 10 | ![eigrproute](https://user-images.githubusercontent.com/39448332/40281098-8bdfec78-5c7a-11e8-8639-12081fc00e23.png) 11 | 12 | ## Purpose of the exercise: 13 | 14 | Test the routing through the network, from the 1st PC [192.168.100.1] by executing the command 15 | 16 | > ping 192.168.102.1 17 | 18 | ## Commands: 19 | 20 | `` ` 21 | SHOW IP ROUTE "Search D" 22 | 23 | SHOW IP EIGRP TOPOLOGY "Search P" 24 | `` ` 25 | 26 | Using Utiliser Cisco Packet Tracer 6.2.0 27 | -------------------------------------------------------------------------------- /SwitchingVTP/README.md: -------------------------------------------------------------------------------- 1 | # Switching-VTP 2 | 3 | 4 | To practice this example: 5 | - use PacketTracer 6 | - add 3 Cisco 2960 switches 7 | - connect them with crossover cables 8 | - execute the text file 9 | 10 | ![switchingvtp](https://user-images.githubusercontent.com/39448332/40281202-ec4a3cc0-5c7b-11e8-873e-eda7a6952b06.png) 11 | 12 | # Objective 13 | 14 | Connect 2 VLANs via a router 15 | Commonly called "Router on a Stick" 16 | 17 | ## Commands 18 | ` show vlan ` 19 | 20 | ` show int trunk ` 21 | 22 | ` show int switchport ` (i.e. shot int f0/21 switchport) 23 | 24 | ` show vtp status ` 25 | 26 | 27 | Using Cisco Packet Tracer 6.2.0 28 | -------------------------------------------------------------------------------- /IPv4/README.md: -------------------------------------------------------------------------------- 1 | # IPv4 2 | 3 | 4 | ## To practice this example: 5 | 6 | ``` 7 | - use PacketTracer 8 | - add 3 Cisco 2911 routers 9 | - add a WIC-2t interface placed in 'Slot 1' for all routers 10 | - respect the 'ports' indicated by the diagram (connect the serial cables manually) 11 | - Execute the commands of the .txt file 12 | ``` 13 | ![ipv4](https://user-images.githubusercontent.com/39448332/40281111-bcdcb4aa-5c7a-11e8-8694-cd1c88629e8f.png) 14 | 15 | 16 | 17 | ## Purpose of the exercise: 18 | 19 | Configure the interfaces 20 | 21 | ## Commands: 22 | 23 | ``` 24 | SHOW IP INTERFACE BRIEF 25 | ``` 26 | 27 | Using Utiliser Cisco Packet Tracer 6.2.0 28 | -------------------------------------------------------------------------------- /SwitchingInterVLAN/README.md: -------------------------------------------------------------------------------- 1 | # Switching Inter VLAN 2 | 3 | ``` 4 | To practice this example: 5 | - use PacketTracer 6 | - add 3 Cisco 2960 switches 7 | - connect them with crossover cables 8 | - execute the text file 9 | ``` 10 | 11 | ![switchingintervlan](https://user-images.githubusercontent.com/39448332/40281187-a5fc843a-5c7b-11e8-8c8c-90728fa9dcce.png) 12 | 13 | # Objective 14 | 15 | Connect 2 VLANs via a router 16 | Commonly called "Router on a Stick" 17 | 18 | ## Commands 19 | `show vlan` 20 | 21 | `show int trunk` 22 | 23 | `show int switchport` (i.e. shot int f0 / 21 switchport) 24 | 25 | `show vtp status` 26 | 27 | Using Utiliser Cisco Packet Tracer 6.2.0 28 | -------------------------------------------------------------------------------- /RIPRoute/README.md: -------------------------------------------------------------------------------- 1 | # RIP Route - IPv6 Configuration 2 | 3 | 4 | To practice this example: 5 | ``` 6 | - use PacketTracer 7 | - Open the file ../IPv6/IPv6.pkt 8 | - Execute the commands of the .txt file 9 | ``` 10 | 11 | ![ripngroute](https://user-images.githubusercontent.com/39448332/40281128-1b2dc7c4-5c7b-11e8-8a5a-5ae6ad7fd0eb.png) 12 | 13 | ## Purpose of the exercise: 14 | 15 | Test the routing through the network, from the 1st PC [2001: 3200: B0EA: 1000 :: 1] by executing the command 16 | 17 | > ping 2001: 3200: B0EA: 1200 :: 1 18 | 19 | ## Commands : 20 | 21 | `` ` 22 | SHOW IPV6 ROUTE "Search R" 23 | 24 | SHOW IPV6 RIP DATABASE 25 | `` ` 26 | 27 | Using Utiliser Cisco Packet Tracer 6.2.0 28 | 29 | -------------------------------------------------------------------------------- /RIPv2Route/README.md: -------------------------------------------------------------------------------- 1 | # RIPv2 Route 2 | 3 | To practice this example: 4 | ``` 5 | - use PacketTracer 6 | - Open file ../0.IPv4/IPv4.pkt 7 | - Add a server and connect it with R3 on the network 192.168.103.0/24 8 | - Execute the commands of the .txt file 9 | ``` 10 | ![ripv2route](https://user-images.githubusercontent.com/39448332/40281142-39a5eb28-5c7b-11e8-985d-b4e87a398d43.png) 11 | 12 | ## Purpose of the exercise: 13 | 14 | Test the routing through the network, from the 1st PC [192.168.100.1] by executing the command 15 | 16 | > ping 192.168.103.1 17 | 18 | ## Commands: 19 | 20 | ``` 21 | SHOW IP ROUTE "Search R" 22 | 23 | SHOW IP RIP DATABASE 24 | ``` 25 | 26 | Using Utiliser Cisco Packet Tracer 6.2.0 27 | -------------------------------------------------------------------------------- /OSPFRoute/README.md: -------------------------------------------------------------------------------- 1 | # OSPF Route - Point To Point 2 | 3 | To practice this example: 4 | ``` 5 | - Use PacketTracer 6 | - Open ../0.IPv4/IPv4.pkt 7 | - Execute the commands of the .txt file 8 | ``` 9 | 10 | ![ospfroute](https://user-images.githubusercontent.com/39448332/40281122-fe1b3900-5c7a-11e8-80a4-4bf238b706ab.png) 11 | 12 | ## Purpose of the exercise: 13 | 14 | 15 | Test the routing through the network, from the 1st PC [192.168.100.1] by executing the command 16 | 17 | > ping 192.168.102.1 18 | 19 | # Commands: 20 | 21 | ``` 22 | SHOW IP ROUTE "Search O" 23 | 24 | SHOW IP OSPF NEIGHBOR 25 | 26 | SHOW IP OSPF DATABASE 27 | 28 | SHOW IP OSPF INT 29 | ``` 30 | 31 | Using Utiliser Cisco Packet Tracer 6.2.0 32 | -------------------------------------------------------------------------------- /SwitchingVLAN/SwitchingVLAN.txt: -------------------------------------------------------------------------------- 1 | ! ===================== First Switch ======================= 2 | ! Enter privilege mode 3 | config t 4 | hostname SW1 5 | 6 | ! Create a VLAN (Other than the default one) 7 | vlan 2 8 | name ADMINISTRATION 9 | 10 | ! Give access to port f0 / 2 at vlan 2 11 | int f0 / 2 12 | switchport mode access 13 | switchport access vlan 2 14 | do wr 15 | 16 | ! Pass port f0 / 21 in trunk mode 17 | int f0 / 21 18 | switchport mode trunk 19 | do wr 20 | 21 | ! ===================== Second Switch ======================= 22 | ! Enter privilege mode 23 | config t 24 | hostname SW2 25 | 26 | ! Create a VLAN (Other than the default one) 27 | vlan 2 28 | name ADMINISTRATION 29 | 30 | ! Give access to port f0 / 2 at vlan 2 31 | int f0 / 2 32 | switchport mode access 33 | switchport access vlan 2 34 | do wr -------------------------------------------------------------------------------- /EIGRPRoute/EIGRPRoute.txt: -------------------------------------------------------------------------------- 1 | ! ===================== First Router ======================= 2 | ! Enter privilege mode 3 | config t 4 | ! Configure the Autonomous System - Autonomous System 5 | router eigrp 100 6 | network 192.168.100.0 7 | network 10.10.10.4 8 | no auto-summary 9 | 10 | do wr 11 | exit 12 | exit 13 | 14 | 15 | ! ===================== Second Router ======================= 16 | ! Enter privilege mode 17 | config t 18 | ! Configure the Autonomous System - Autonomous System 19 | router eigrp 100 20 | network 192.168.101.0 21 | network 10.0.0.0 22 | no auto-summary 23 | 24 | do wr 25 | exit 26 | exit 27 | 28 | ! Third ==================== 29 | ! Enter privilege mode 30 | config t 31 | ! Configure the Autonomous System - Autonomous System 32 | router eigrp 100 33 | network 192.168.102.0 34 | network 10.0.0.0 35 | no auto-summary 36 | 37 | do wr 38 | exit 39 | exit -------------------------------------------------------------------------------- /IPv6/IPv6.txt: -------------------------------------------------------------------------------- 1 | ! First Router 2 | ! Set to privilege mode 3 | config t 4 | 5 | ! Configure interfaces in IPv6 6 | int g0 / 0 7 | ipv6 address 2001: 3200: B0EA: 1000 :: E / 56 8 | 9 | int s0 / 1/1 10 | ipv6 address 2001: 3200: B0EA: 1300 :: 1/56 11 | 12 | exit 13 | exit 14 | wr 15 | 16 | ! Second Router 17 | ! Set to privilege mode 18 | config t 19 | 20 | ! Configure interfaces in IPv6 21 | int g0 / 0 22 | ipv6 address 2001: 3200: B0EA: 1100 :: E / 56 23 | 24 | int s0 / 1/0 25 | ipv6 address 2001: 3200: B0EA: 1300 :: 2/56 26 | 27 | int s0 / 1/1 28 | ipv6 address 2001: 3200: B0EA: 1400 :: 1/56 29 | 30 | exit 31 | exit 32 | wr 33 | 34 | ! Third Router 35 | ! Set to privilege mode 36 | config t 37 | 38 | ! Configure interfaces in IPv6 39 | int g0 / 0 40 | ipv6 address 2001: 3200: B0EA: 1200 :: E / 56 41 | 42 | int s0 / 1/0 43 | ipv6 address 2001: 3200: B0EA: 1400 :: 1/56 44 | 45 | exit 46 | exit 47 | wr 48 | -------------------------------------------------------------------------------- /StaticRoute/StaticRoute.txt: -------------------------------------------------------------------------------- 1 | 2 | ! ===================== First Router ======================= 3 | ! Enter privilege mode 4 | 5 | ! Configure static routes 6 | config t 7 | ip route 192.168.101.0 255.255.255.0 s0 / 1/1 150 8 | ip route 192.168.102.0 255.255.255.0 s0 / 1/1 150 9 | ip route 10.10.10.4 255.255.255.252 s0 / 1/1 150 10 | 11 | do wr 12 | exit 13 | 14 | ! ===================== Second Router ======================= 15 | ! Enter privilege mode 16 | 17 | ! Configure static routes 18 | config t 19 | ip route 192.168.100.0 255.255.255.0 s0 / 1/0 150 20 | ip route 10.10.10.4 255.255.255.252 s0 / 1/0 150 21 | ip route 192.168.102.0 255.255.255.0 s0 / 1/1 150 22 | ip route 10.10.10.8 255.255.255.252 s0 / 1/1 150 23 | 24 | do wr 25 | exit 26 | 27 | ! Third ==================== 28 | ! Enter privilege mode 29 | 30 | ! Configure the default route 31 | config t 32 | ip route 0.0.0.0 0.0.0.0 s0 / 1/0 33 | 34 | do wr 35 | exit -------------------------------------------------------------------------------- /RIPRoute/RIPngRoute.txt: -------------------------------------------------------------------------------- 1 | ! First Router 2 | ! Set to privilege mode 3 | config t 4 | 5 | ! Allow IPv6 routing 6 | ipv6 unicast-routing 7 | 8 | ! Configuring RIPng with a Process ID a 1 9 | ipv6 router rip 1 10 | 11 | ! Configure routes 12 | int g0 / 0 13 | ipv6 rip 1 enable 14 | 15 | int s0 / 1/1 16 | ipv6 rip 1 enable 17 | 18 | exit 19 | exit 20 | wr 21 | 22 | ! Second Router 23 | ! Set to privilege mode 24 | config t 25 | 26 | ! Allow IPv6 routing 27 | ipv6 unicast-routing 28 | 29 | ! Configuring RIPng with a process 1 30 | ! ipv6 router rip 1 31 | 32 | ! Configure routes 33 | int g0 / 0 34 | ipv6 rip 1 enable 35 | 36 | int s0 / 1/0 37 | ipv6 rip 1 enable 38 | 39 | int s0 / 1/1 40 | ipv6 rip 1 enable 41 | 42 | exit 43 | exit 44 | wr 45 | 46 | ! Last Router 47 | ! Set to privilege mode 48 | config t 49 | 50 | ! Allow IPv6 routing 51 | ipv6 unicast-routing 52 | 53 | ! Configuring RIPng with a process 1 54 | ! ipv6 router rip 1 55 | 56 | ! Configure routes 57 | int g0 / 0 58 | ipv6 rip 1 enable 59 | 60 | int s0 / 1/0 61 | ipv6 rip 1 enable 62 | 63 | exit 64 | exit 65 | wr -------------------------------------------------------------------------------- /RIPv2Route/RIPv2Route.txt: -------------------------------------------------------------------------------- 1 | ! ===================== First Router ======================= 2 | ! Enter privilege mode 3 | config t 4 | 5 | ! Configure RIP v2 6 | router rip 7 | version 2 8 | network 10.10.10.4 9 | network 192.168.100.0 10 | no auto-summary 11 | 12 | do wr 13 | exit 14 | exit 15 | 16 | 17 | ! ===================== Second Router ======================= 18 | ! Enter privilege mode 19 | config t 20 | 21 | ! Configure RIP v2 22 | router rip 23 | version 2 24 | network 10.0.0.0 25 | network 192.168.101.0 26 | no auto-summary 27 | 28 | do wr 29 | exit 30 | exit 31 | 32 | ! Third ==================== 33 | ! Enter privilege mode 34 | config t 35 | 36 | ! Configure RIP v2 37 | config t 38 | router rip 39 | version 2 40 | network 10.0.0.0 41 | network 192.168.102.0 42 | no auto-summary 43 | 44 | do wr 45 | exit 46 | exit 47 | 48 | ! Configure RIP v2 Gateway of last resort 49 | config t 50 | router rip 51 | default-information originate 52 | 53 | do wr 54 | exit 55 | exit 56 | 57 | ! Configure the router interfaces for the external server 58 | int g0 / 1 59 | ip address 192.168.103.254 255.255.255.0 60 | no shut 61 | 62 | do wr 63 | exit 64 | exit -------------------------------------------------------------------------------- /OSPFRoute/OSPFRoute.txt: -------------------------------------------------------------------------------- 1 | 2 | ! ===================== First Router ======================= 3 | ! Enter privilege mode 4 | config t 5 | 6 | ! Configure OSPF 7 | ! 1 will be the Process ID on 64Ko 8 | router ospf 1 9 | 10 | ! Enter the network, the Wildcard Mask, the unique area number SINGLE AREA 11 | network 192.168.100.0 0.0.0.255 area 51 12 | network 10.10.10.4 0.0.0.3 area 51 13 | do wr 14 | exit 15 | exit 16 | 17 | 18 | ! ===================== Second Router ======================= 19 | ! Enter privilege mode 20 | config t 21 | 22 | ! Configure OSPF 23 | ! 1 will be the Process ID on 64Ko 24 | router ospf 1 25 | 26 | ! Enter the network, the Wildcard Mask, the unique area number SINGLE AREA 27 | network 192.168.101.0 0.0.0.255 area 51 28 | network 10.10.10.4 0.0.0.3 area 51 29 | network 10.10.10.8 0.0.0.3 area 51 30 | do wr 31 | exit 32 | exit 33 | 34 | ! Third ==================== 35 | ! Enter privilege mode 36 | config t 37 | 38 | ! Configure OSPF 39 | ! 1 will be the Process ID on 64Ko 40 | router ospf 1 41 | 42 | ! Enter the network, the Wildcard Mask, the unique area number SINGLE AREA 43 | network 192.168.102.0 0.0.0.255 area 51 44 | network 10.10.10.8 0.0.0.3 area 51 45 | do wr 46 | exit 47 | exit -------------------------------------------------------------------------------- /IPv4/IPv4.txt: -------------------------------------------------------------------------------- 1 | 2 | ! ===================== First Router ======================= 3 | 4 | en 5 | config t 6 | hostname R1 7 | enable password cisco 8 | enable secret etudiant 9 | 10 | line con 0 11 | password cisco 12 | login 13 | logging synchronous 14 | 15 | line vty 0 15 16 | password cisco 17 | login 18 | logging synchronous 19 | 20 | do wr 21 | exit 22 | exit 23 | 24 | 25 | 26 | en 27 | config t 28 | int g0/0 29 | ip address 192.168.100.254 255.255.255.0 30 | no shut 31 | 32 | int s0/1/1 33 | ip address 10.10.10.5 255.255.255.252 34 | clock rate 4000000 35 | no shut 36 | 37 | do wr 38 | exit 39 | exit 40 | 41 | ! ===================== Second Routeur ======================= 42 | 43 | en 44 | config t 45 | hostname R2 46 | 47 | username inf1023 privilege 15 password 0 cisco 48 | 49 | line con 0 50 | login local 51 | 52 | do wr 53 | exit 54 | exit 55 | 56 | 57 | en 58 | config t 59 | int g0/0 60 | ip address 192.168.101.254 255.255.255.0 61 | no shut 62 | 63 | int s0/1/0 64 | ip address 10.10.10.6 255.255.255.252 65 | no shut 66 | 67 | int s0/1/1 68 | ip address 10.10.10.9 255.255.255.252 69 | clock rate 4000000 70 | no shut 71 | 72 | do wr 73 | exit 74 | exit 75 | 76 | 77 | copy run start 78 | 79 | 80 | ! ===================== Third Router ======================= 81 | 82 | en 83 | config t 84 | hostname R3 85 | enable password cisco 86 | enable secret etudiant 87 | 88 | line con 0 89 | password cisco 90 | login 91 | logging synchronous 92 | 93 | line vty 0 15 94 | password cisco 95 | login 96 | logging synchronous 97 | 98 | do wr 99 | exit 100 | exit 101 | 102 | 103 | en 104 | config t 105 | int g0/0 106 | ip address 192.168.102.254 255.255.255.0 107 | no shut 108 | 109 | int s0/1/0 110 | ip address 10.10.10.10 255.255.255.252 111 | no shut 112 | 113 | do wr 114 | exit 115 | exit 116 | 117 | 118 | copy run start -------------------------------------------------------------------------------- /SwitchingInterVLAN/SwitchingInterVLAN.txt: -------------------------------------------------------------------------------- 1 | 2 | ! ===================== First Switch (Core) ======================= 3 | ! Enter privilege mode 4 | config t 5 | hostname CORE_SW1 6 | 7 | ! Create VLANs using STP on the 'Root Bridge' 8 | spanning tree VLAN 1,100,200 priority 0 9 | 10 | ! First VLAN (except the default one) 11 | 100 vlan 12 | name ADMINISTRATION 13 | 14 | ! Second VLAN 15 | vlan 200 16 | name STUDENTS 17 | 18 | ! Create a VTP domain (default server mode for Core, clients for others) 19 | vtp domain BOREAL 20 | 21 | ! Pass the f0 / 22-23 ports in trunk mode 22 | int range f0 / 22-23 23 | switchport mode trunk 24 | 25 | ! Pass port g0 / 1 in trunk mode 26 | int g0 / 1 27 | switchport mode trunk 28 | 29 | do wr 30 | end 31 | 32 | ! ===================== Second Switch ======================= 33 | ! Enter privilege mode 34 | config t 35 | hostname ADMINISTRATION 36 | 37 | ! VTP mode (allows downlink copy of VLANs) 38 | vtp client mode 39 | 40 | ! Assign ports F0 / 1-15 to VLAN 100 41 | int range f0 / 1-15 42 | switchport mode access 43 | switchport access vlan 100 44 | 45 | ! Enable minimal protection at ports of access 46 | switchport port-security mac sticky 47 | switchport port-security max 1 48 | switchport port-security vio shut 49 | 50 | ! Disable STP at ports 51 | spanning tree portfast 52 | spanning tree bpduguard enable 53 | 54 | do wr 55 | end 56 | 57 | ! Third ==================== 58 | ! Enter privilege mode 59 | config t 60 | hostname STUDENTS 61 | 62 | ! VTP mode 63 | vtp client mode 64 | 65 | ! Assign ports F0 / 1-15 to the VLAN 200 66 | int range f0 / 1-15 67 | switchport mode access 68 | switchport access vlan 200 69 | 70 | ! Enable minimal protection at ports of access 71 | switchport port-security mac sticky 72 | switchport port-security max 1 73 | switchport port-security vio shut 74 | 75 | ! Disable STP at ports 76 | spanning tree portfast 77 | spanning tree bpduguard enable 78 | 79 | do wr 80 | end 81 | 82 | ! Router ================= 83 | ! Enter privilege mode 84 | config t 85 | hostname R1 86 | 87 | ! No IP address on the interface 88 | int g0 / 0 89 | no shut 90 | 91 | ! Configuring subinterfaces by VLANs 92 | ! 93 | 94 | ! VLAN 100 95 | int g0 / 0.100 96 | encap dot1q 100 97 | ip address 192.168.100.254 255.255.255.0 98 | 99 | ! VLAN 200 100 | int g0 / 0.200 101 | encap dot1q 200 102 | ip address 192.168.200.254 255.255.255.0 103 | 104 | ! Configure the server address 105 | int g0 / 1 106 | ip address 10.10.10.5 255.255.255.252 107 | no shut 108 | 109 | do wr 110 | end -------------------------------------------------------------------------------- /SwitchingVTP/SwitchingVTP.txt: -------------------------------------------------------------------------------- 1 | 2 | ! ===================== First Switch : (Core) ======================= 3 | ! Enter privilege mode 4 | config t 5 | hostname CORE_SW1 6 | 7 | ! Create VLANs using STP on the 'Root Bridge' 8 | spanning tree VLAN 1,100,200 priority 0 9 | 10 | ! First VLAN (except the default one) 11 | 100 vlan 12 | name ADMINISTRATION 13 | 14 | ! Second VLAN 15 | vlan 200 16 | name STUDENTS 17 | 18 | ! Create a VTP domain (default server mode for Core, clients for others) 19 | vtp domain BOREAL 20 | 21 | ! Pass the f0 / 22-23 ports in trunk mode 22 | int range f0 / 22-23 23 | switchport mode trunk 24 | 25 | ! Pass port g0 / 1 in trunk mode 26 | int g0 / 1 27 | switchport mode trunk 28 | 29 | 30 | do wr 31 | end 32 | 33 | ! ===================== Second Switch ======================= 34 | ! Enter privilege mode 35 | config t 36 | hostname ADMINISTRATION 37 | 38 | ! VTP mode (allows downlink copy of VLANs) 39 | vtp client mode 40 | 41 | ! Assign ports F0 / 1-15 to VLAN 100 42 | int range f0 / 1-15 43 | switchport mode access 44 | switchport access vlan 100 45 | 46 | ! Enable minimal protection at ports of access 47 | switchport port-security mac sticky 48 | switchport port-security max 1 49 | switchport port-security vio shut 50 | 51 | ! Disable STP at ports 52 | spanning tree portfast 53 | spanning tree bpduguard enable 54 | 55 | do wr 56 | end 57 | 58 | ! Third ==================== 59 | ! Enter privilege mode 60 | config t 61 | hostname STUDENTS 62 | 63 | ! VTP mode 64 | vtp client mode 65 | 66 | ! Assign ports F0 / 1-15 to the VLAN 200 67 | int range f0 / 1-15 68 | switchport mode access 69 | switchport access vlan 200 70 | 71 | ! Enable minimal protection at ports of access 72 | switchport port-security mac sticky 73 | switchport port-security max 1 74 | switchport port-security vio shut 75 | 76 | ! Disable STP at ports 77 | spanning tree portfast 78 | spanning tree bpduguard enable 79 | 80 | do wr 81 | end 82 | 83 | ! Router ================= 84 | ! Enter privilege mode 85 | 86 | config t 87 | hostname R1 88 | 89 | ! No IP address on the interface 90 | int g0 / 0 91 | no shut 92 | 93 | ! Configuring subinterfaces by VLANs 94 | ! 95 | 96 | ! VLAN 100 97 | int g0 / 0.100 98 | encap dot1q 100 99 | ip address 192.168.100.254 255.255.255.0 100 | 101 | ! VLAN 200 102 | int g0 / 0.200 103 | encap dot1q 200 104 | ip address 192.168.200.254 255.255.255.0 105 | 106 | ! Configure the server address 107 | int g0 / 1 108 | ip address 10.10.10.5 255.255.255.252 109 | no shut 110 | 111 | do wr 112 | end --------------------------------------------------------------------------------