Compare commits

..

4 commits

4 changed files with 174 additions and 2 deletions

BIN
Networks/Lab 04.pkt (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Networks/Main.pkt (Stored with Git LFS)

Binary file not shown.

View file

@ -0,0 +1,76 @@
# Lab 02 - Switch Configuration
> ***Objectives:***
> - Ensure PCs and switches are connected properly
> - Cable types
> - PC-SW: straight cables
> - SW-SW: ~~gay~~ crossover cables
> - Connections
> - Connect PCs to ports 1-3 and 11-13 of switches
> - Connect switches together with ports 23 and 24
> - Configure switches properly
> - Rename switches to `SW1`-`SW4`
> - Assign ports 1-10 to VLAN 10
> - Assign ports 11-20 to VLAN 20
> - Set spanning-tree `portfast` on ports 1-20
> - Set ports 22-24 as trunks for VLAN 10 and 20
> - Set spanning-tree `portfast trunk` for ports 22-24
> - Set `SW2` to be spanning-tree root primary for VLAN 10 and root secondary for VLAN 20
> - Set `SW3` to be spanning-tree root secondary for VLAN 20
> - Configure static IP addresses for at least 3 computers per switch
## Basic Configuration
Run this configuration on each Switch replacing `{x}` with the switch number:
```sh
enable
configure terminal
hostname SW{x}
interface range fastEthernet 0/1-10
switchport mode access
switchport access vlan 10
interface range fastEthernet 0/11-20
switchport mode access
switchport access vlan 20
interface range fastEthernet 0/1-20
spanning-tree portfast
interface range fastEthernet 0/22-24
switchport mode trunk
switchport trunk allowed vlan 10,20
spanning-tree portfast trunk
exit
exit
disable
exit
```
## Configuration of `SW2`
```sh
enable
configure terminal
spanning-tree vlan 10 root primary
spanning-tree vlan 20 root secondary
exit
exit
disable
exit
```
## Configuration of `SW3`
```sh
enable
configure terminal
spanning-tree vlan 10 root secondary
spanning-tree vlan 20 root primary
exit
exit
disable
exit
```

View file

@ -0,0 +1,93 @@
# Lab 04 - Dynamic Routing
> ***Objectives:***
> - Replicate Internet configuration by setting up a chain of 3 routers
> - `EE`: Enterprise switch (the switch of the company or home)
> - `ISP`: The router of the internet service provider
> - `NET`: The router of the provider of a website
> - `SERVER` the web server providing the website
> - Set IP address of server and routers
> - Enable OSPF protocol on all routers
> - Try to ping the webserver from the `EE` router
The lab is realized in `./Networks/Lab 04.ptk` in branch `feature/lab-4`
## Router Configuration
Router `EE`:
```sh
enable
configure terminal
hostname EE
interface fastEthernet0/1
ip address 1.0.0.1 255.0.0.0
no shutdown
interface fastEthernet0/0
ip address 10.123.0.3 255.255.0.0
no shutdown
router ospf 1337
network 1.0.0.0 0.255.255.255 area 0
exit
exit
disable
exit
```
Router `ISP`:
```sh
enable
configure terminal
hostname ISP
interface fastEthernet0/0
ip address 1.0.0.2 255.0.0.0
no shutdown
interface fastEthernet0/1
ip address 2.0.0.1 255.0.0.0
no shutdown
router ospf 1337
network 1.0.0.0 0.255.255.255 area 0
network 2.0.0.0 0.255.255.255 area 0
exit
exit
disable
exit
```
Router `NET`:
```sh
enable
configure terminal
hostname NET
interface fastEthernet0/0
ip address 2.0.0.2 255.0.0.0
no shutdown
interface fastEthernet0/1
ip address 3.0.0.1 255.0.0.0
no shutdown
router ospf 1337
network 2.0.0.0 0.255.255.255 area 0
network 3.0.0.0 0.255.255.255 area 0
exit
exit
disable
exit
```
## Test Change
On Router `EE`:
```sh
enable
ping 3.3.3.3
disable
exit
```