Lab 7: Class Hardware Lab - AidanP017/Aidan-NET-330 GitHub Wiki

Purpose

For this lab, we grouped up and configured internal VLANs that would be used to access a public web server.


Configuration of the Edge Switch

To start, we configured our Edge switch with two VLANs specific to our group:

#1. G5-Admin

  • ID: 500
  • Network Address: 172-16.50.0/24
  • Default Gateway: 172.16.50.1

#2. G5-Staff

  • ID: 510
  • Network Address: 172.16.51.0/24
  • Default Gateway: 172.16.51.1

Configurations were performed by using PuTTY to connect to physical switches.

On the Edge switch, the hostname was first configured.

>enable
#conf t
(config)#hostname "Edge-Switch-5"

Next, we added the VLANs to the switch.

Edge-Switch-5(config)#vlan 500
Edge-Switch-5(config-if)#name g5-admin
Edge-Switch-5(config)#vlan 510
Edge-Switch-5(config-if)#nane g5-staff
Edge-Switch-5(config-if)#exit

Then we configured the interfaces that would use the VLANs as well as the default VLAN (1) and enabled them.

Edge-Switch-5(config)#int gi5/0/1
Edge-Switch-5(config-if)#switchport mode trunk
Edge-Switch-5(config-if)#no shut
Edge-Switch-5(config-if)#exit

Edge-Switch-5(config)#int gi5/0/2
Edge-Switch-5(config-if)#switchport mode access
Edge-Switch-5(config-if)#switchport access vlan 500
Edge-Switch-5(config-if)#no shut
Edge-Switch-5(config-if)#exit

Edge-Switch-5(config)#int gi5/0/3
Edge-Switch-5(config-if)#switchport mode access
Edge-Switch-5(config-if)#switchport access vlan 510
Edge-Switch-5(config-if)#no shut
Edge-Switch-5(config-if)#exit

Lastly, we ended the process and saved the configuration.

Edge-Switch-5(config)#end
Edge-Switch-5#copy run start

Configuration of the Distribution Switch

After this, we configured the Distribution switch in a similar manner to that of the Edge switch---starting with the hostname.

>enable
#conf t
(config)#hostname "DR-5"

VLANs were configured.

DR-5(config)#vlan 500
DR-5(config-if)#g5-admin
DR-5(config)#vlan 510
DR-5(config-if)#g5-staff
DR-5(config-if)#exit

Interfaces were assigned.

DR-5(config)#int gi4/0/24
DR-5(config-if)#switchport trunk encapsulation dot1q
DR-5(config-if)#switchport mode trunk
DR-5(config-if)#no shut
DR-5(config-if)#exit

DR-5(config)#int gi4/0/20
DR-5(config-if)#switchport trunk encapsulation dot1q
DR-5(config-if)#switchport mode trunk
DR-5(config-if)#no shut
DR-5(config-if)#exit

Saved the configuration.

DR-5(config)#end
DR-5#copy run start

From there, routing was enabled and an IP route was configured using the IP address of the Backbone network on the network 153.104.1.50.

(config)#ip routing
(config)#ip route 0.0.0.0 0.0.0.0 153.104.1.1

The port for routing was also configured and assigned to the default VLAN.

(config)#int vlan 1
(config-if)#ip address 153.104.1.50 255.255.255.0

If everything was established appropriately, it should have been possible to access the public web server using internal PCs.

Admin PC:

image

image

Staff PC:

image