Net330 Small Enterprise Class Lab - Zacham17/my-tech-journal GitHub Wiki

Things to Remember

  • To change configuration in Cisco, use the commands enable and config t to begin
  • Save Cisco Configuration using the command, copy run start, when you want to save the configuration.
  • The show run command shows the entire cisco configuration

Console into Catalyst Switch using PuTTy:

  • To console into the switch with PuTTy, I connected the Serial Console cable to the console port of the switch and the other end into my workstation
  • On my workstation, I looked in Device Manager to see which USB Serial Port was being used for the console cable. I used this information in PuTTY later
  • I then used PuTTY to console into the switch using the following settings:
    • Serial Line to Connect: The COM port being used by the console cable
    • Bits per sec : 9600
    • Data bits : 8
    • Parity : none
    • Stop bits : 1
  • I then click connect and begin a console session into the switch.

Steps to follow upon boot of Cisco Switch:

  • Say no to running startup wizard
  • Use the commands:
    • Write erase
    • Reload
  • The commands above clear the existing configuration if there is one
  • Make sure to say no when asked to save config.

Set Hostname:

  • Use the commands hostname HOSTNAME where HOSTNAME is what you want the hostname to be

VLAN Access Port Configuration:

  • To configure VLANs on each switch, I used commands similar to the following:
    • interface vlan xxx, where xxx is the VLAN number. This command will bring you the the VLAN configuration terminal for the Central Network
      • I set VLAN 200 for the Central Clinic and VLAN 210 for the Central admin
    • I used the command ip address xxx.xxx.xxx.xxx SUBNET where xxx.xxx.xxx.xxx is the gateway address I used for the VLAN and SUBNET is the subnet mask.
      • For the Central Network, the address for VLAN 200 is 192.168.20.1 with a subnet mask of 255.255.255.0
      • For the Central Network, the address for VLAN 210 is 192.168.21.1 with a subnet mask of 255.255.255.0
    • From the config terminal, I used the command, interface range GigabitEthernet 1/0/x-y where x-y is the interface range, to configure multiple interfaces at one time.
    • From the interface configuration console, I used the command, switchport access vlan x, where x is the VLAN ID, to configure the interfaces to use a VLAN.
      • For ports 2-12, on the North and South switch, we set VLAN 200.
      • For ports 13-24, we set VLAN 210.
  • NOTE: To see available ports, use the command “show interfaces”

Trunk Port Configuration:

  • On the North and South switches, we set the GigabitEthernet 1/0/1 as the trunk port and on the Central MLS, we set ports GigabitEthernet 2/0/1-3 as the trunk ports.
  • For the North and South switches, we set the trunk port using the following commands:
    • interface GigabitEthernet 1/0/1
    • switchport mode trunk
    • switchport trunk encapsulation dot1q
    • switchport trunk allowed vlan 200
    • switchport trunk allowed vlan 210
  • On the Central MLS, we used the following commands to configure the trunk ports:
    • Interface range GigabitEthernet 2/0/1-3
    • switchport mode trunk
    • switchport trunk encapsulation dot1q
    • switchport trunk allowed vlan 200
    • switchport trunk allowed vlan 210
  • The "switchport trunk encapsulation dot1q” command defines how packets are tagged

Workstations on the Central network can now communicate across VLANs and switches.