You are on page 1of 4

1.

Case 1: Configure Data VLAN

a. Commands on switch

Step 1 : Name A Vlan


Configure terminal
Vlan 2 This command gets you into VLAN 2 configuration
name Hamza Assign name to Vlan. Example of a good name
Datatraffice_10.1.2.3_24 Floor Data

Step 2: Assign interface to Hamza Vlan 2


Configure terminal
Interface fastethernet0/2 select interface
switchport mode access Command design to tell switch this port is member
of one single VLAN only and hence prevents switch from becoming trunk mode.
The port will only pas traffic for Vlan 2 Hamza
switchport access vlan 2 access port belongs to a single Vlan or e.g. one
data and one voice Vlan

2. Case 2: Configure Voice VLAN

a. Commands on switch

Step 1 : Name A Vlan


Configure terminal
Vlan 3
Name Telephony

Step 2: Assign interface to Telephony Vlan 3


Configure terminal
Interface fastethernet 0/3
Switchport voice vlan 3

3. Case 3: Verify Vlans


Show Vlan or Show Vlan brief Vlan brief shows ports, status and Vlan name.

Show interfaces fastethernet0/2 switchport Gives us Vlan and trunking


information. Switch port enabled here means its a layer 2 port. Negotiation for
trunking means that when we run DTP this port will automatically become a
trunking port if the other end is a trunking port. When you type switchport mode
access this will get turned off.

4. Case 4: Configure a trunk Interface

Configure terminal
Interface fastethernet 1/2
Exit

switchport mode trunk automatically enable trunking. We are going to be a


trunk port. The corresponding port on other switch should also be configured as a
trunk otherwise we will have configuration issues
switchport trunk native vlan 99 create native vlan before hand
switchport trunk allowed vlan 2,3,99 By default all Vlans are allowed.
5. Case 5: Verify Trunks
a) Show interfaces fastethernet0/1 switchport - Tell us the switchport
mode (trunk/dynamic auto/dynamic desirable/access). Also shows the
encapsulation. Also shows native Vlan and the trunking Vlans available
b) Show interface fastethernet0/1 trunk Shows mode (on is trunk
mode) as well as the encapsulation.

6. Configure VTP minimum required configuration even if we are not


going to use it
Configure terminal
Vtp domain ICND Case sensitive domain name specified by us
Vtp mode transpartent/client/server transparent is recommended for
safety if we are not going to use it

7. Show VTP status


Show VTP status

8. Configure Etherchannel bundle configuration between switch 1 and


switch 2. Switch 1 uses fa 0/1 2 and switch 2 uses fa 0/4 5
A good practice before we do this is to reset all our interfaces to their default
status by typing default interface fa 0/1. This is to ensure we dont have any
conflicts later on. Also a good idea to shut them down using shutdown
command and in the end using the no shutdown command.

Commands on Switch 1

Configure terminal
Interface range fastethernet 0/1-2 Group range command to avoid
duplication of work
Channel-group 1 mode active Which interfaces are going to be part of this
bundle in group 1. In our case the above 2. Mode means whether we use lacp
and which mode of that protocol e.g pagp desirable mode. Active in our example
above is an Lacp mode.
Exit
Interface port-channel 1 channel group 1 mode active command above
creates a port channel one automatically and basically this command gets us
into the configuration mode for port-channel 1. This is the logical interface
channel-group 1 creates. Anything we type here is copied into the configuration
of the actual physical interfaces.
Switchport mode trunk
Switchport trunk allowed vlan 1,2,20

Commands on Switch 1

Essentially same as switch 1


Configure terminal
Interface range fastethernet 0/4-5
Channel-group 1 mode active
Exit
Interface port-channel 1
Switchport mode trunk
Switchport trunk allowed vlan 1,2,20

9. Verify Etherchannel

Show interface port-channel1


Port-channel1 is up, line protocol is up. If we are not up up for a particular port
channel then there might be a problem with the bundling.

OR

Show etherchannel summary


Port channel and group numbers should be same. It also shows which interfaces
part of bundle.
In ports brackets if there is anything other than the (P) or (H) it means the port is
not bundled and we have an error.

Show etherchannel Port-channel detail

10. Configure load banalcing on Etherchannel link


Configure terminal
Port-channel load-balance

11. See Spanning Tree Configuration


Show spanning-tree ieee is PVSTP+, RSTP means we are running
RVSTP+
Show spanning-tree vlan x

12. Spanning Tree configuration trouble shoowting commands

Show cdp neighbors To discover Layer 2 topology


Show spanning-tree vlan xx To verify who the root bridge is and what the
layer 2 path is
Spanning-tree mode rapid-pvst in global configuration to change the protocol
Root IDs mac address and priority is shown and the total cost to get there is 2.
Which port we use to get there? The root port of Te9/1. Because the total cost is
2 and the interface cost is also 2 we are directly connected. Can we modify
timers locally? We can but the timers on the root bridge are the once which will
be used. Incase other devices become root bridge their timers will be used..
Local priority here is same as the root bridge priority. But we can see based on
mac address why the current root bridge won. At bottom we can see interfaces
i.e. we have 2 designated ports and a root port. We have a forwarding state for
all ports and the cost is also show. Without looking at priority.nbr we cant sure of
these numbers. P2p means point to point and essentially means we are running
a full duplex. If we see shared it is half duplex.

You might also like