Switching Lab Level 2

Welcome to switching lab level 2



Lab Topology

switch-lab-level-2-topology

Lab Environment

PC Node Configuration Commands & Other Info

To configure an ip address: ifconfig eth0 <ip address> netmask <mask> up

To confirm the ip address on the interface: ifconfig

To configure the gateway ip address: route add default gw <gateway ip address>

To confirm the default gateway ip: route

To enable DHCP for an interface: udchpc <interface>

ctrl+c or command+c on MAC to cancel a ping or traceroute command

If a username and password is requested to login into the linux PC host within the topology, use: gns3/gns3 or tc/tc

Lab Tasks

On SW1:

Create VLAN 10 and name the vlan DATA

Create VLAN 20 and name the vlan Management

- Verify the VLAN's were created

Configure the port going to PC1 as an access port and assign it to VLAN 10

- Verify the port is in VLAN 10 and is an access-port

Configure the port going to PC2 as an access port and assign it to VLAN 20

- Verify the port is in VLAN 20 and is an access-port

Create an SVI(Switch Virtual Interface) for VLAN10 and assign it IP address: 192.168.10.1/24

- Verify the interface is in the UP/UP state

Create an SVI for VLAN20 and assign it IP address: 192.168.20.1/24

- Verify the interface is in the UP/UP state


On PC1:

Configure PC1 with ip address 192.168.10.11/24 and a default gateway of 192.168.10.1

- Verify the interface has the correct IP address and is in the UP state


On PC2:

Configure PC2 with ip address 192.168.20.11/24 and a default gateway of 192.168.20.1

- Verify the interface has the correct IP address and is in the UP state


Test Connectivity

Test connectivity between PC1, PC2 and the SVI interfaces, both PC1 and PC2 should be able to ping each other and their gateways.

Lab Solution

Switch1:

Configuration Commands:



configure terminal


vlan 10

name DATA

vlan 20

name Management

exit


interface e0/1

switchport mode access

switchport access vlan 10

exit


interface e0/2

switchport mode access

switchport access vlan 20

exit


interface vlan 10

ip address 192.168.10.1 255.255.255.0

no shutdown

exit


interface vlan 20

ip address 192.168.20.1 255.255.255.0

no shutdown

exit


end


Verification Commands:



show vlan


show vlan brief


show interface status


show interface switchport


show run


show run int eth0/1


show run int eth0/2


show ip int br


show int vlan 10


show int vlan 20


show run int vlan 10


show run int vlan 20


PC1:

Configuration Commands:



ifconfig eth0 192.168.10.11 netmask 255.255.255.0 up


Verification Commands



ifconfig


PC2:

Configuration Commands:



ifconfig eth0 192.168.20.11 netmask 255.255.255.0 up


Verification Commands



ifconfig


Lab Solution Understanding

Under development