Lab 5

Cisco Switch Setup and configuration

Cisco Setup

A. Put in Management mode, connect to CLI (Command Language interface):

  1. power up switch
  2. Connect laptop directly to switch
  3. Find out your ethernet number, do a "ifconfig" command.
  4. Use ifconfig to change linux IP address to
    "sudo ifconfig ethx netmask", where x is the number you found in step 3
  5. Hold Mode button for 8 seconds
  6. Wait for system to reset
  7. Hold Mode button for 2 seconds, all 4 lights should come on
  8. Connect laptop to switch with ethernet cable
  9. telnet to
  10. Should get a prompt: “Switch#”
B. Give switch a IP address on VLAN 1, and a password
  1. Switch#configure terminal
  2. Enter configuration commands, one per line. End with CNTL/Z.
  3. Switch(config)#interface vlan 1
  4. Switch(config-if)#ip address
  5. Switch(config-if)#enable password mvnu
  6. Switch(config)#line vty 0 15
  7. Switch(config-line)#password mvnu
  8. Switch(config-line)#end
  9. Switch#copy running-config startup-config
  10. Destination filename [startup-config]?
  11. exiting from express setup mode...IP connections may be lost...
  12. Invalid address
  13. Building configuration...
C. Telnet into the switch using the new address
  1. Set your ethernet address to a 149.143.3.x address (see above)
  2. Turn off your wireless, or connect it to "MVNU" so there isn't address overlap.
  3. telnet
  4. Trying
  5. Connected to
  6. Escape character is '^]'.
  7. User Access Verification
  8. Password:
  9. Switch>
D. Connect two Laptops to switch, set addresses to something in the ranges, and get to ping

E. Interconnecting two switches

  1. Lines MUST be set to trunks, otherwise they will shutdown when they sense another switch
  2. Switch>enable
  3. Password:
  4. Switch#configure terminal
  5. Enter configuration commands, one per line. End with CNTL/Z.
  6. Switch(config)#interface fa0/2
  7. Switch(config-if)#no spanning-tree portfast
  8. Switch(config-if)#speed 100
  9. Switch(config-if)#duplex full
  10. Switch(config-if)#end
  11. Switch#copy running-config startup-config
  12. Destination filename [startup-config]?
  13. Building configuration...
You should now be able to interconnect switches. Try to get to laptops to ping across two switches.

F. Using EtherChannel for Cisco Networking

  1. EtherChannel allows you to take up to eight network ports on your switch and treat them as a single larger link. This can be used to connect servers with multiple network cards that are bonded (or teamed) to a switch, or to connect multiple switches together. There are two main negotiation protocols, Port Aggregation Protocol (PAgP ) which is a proprietary Cisco protocol and Link Aggregation Control Protocol (LACP) which is an open standards protocol.
To set EtherChannel to use with of the protocols you will configure it to support one of the following modes.

auto: Sets the interface to respond to PAgP negotiation packets, but the interface will start negotiations on its own.

desireable: Sets the interface to actively attempt to negotiate a PAgP connection.

on: Forces the connection to bring all links up without using a protocol to negotiate connections. This mode can only connect to another device that is also set to on. When using this mode, the switch does not negotiate the link using either PAgP or LACP.

active: Sets the interface to actively attempt to negotiate connections with other LACP devices.

passive: Sets the interface to respond to LACP data if it receives negotiation requests from other systems.

The following example will configure EtherChannel to use group ports 11 and 12 on the switch together using PAgP as the protocol. The same type of command would be used on the switch to which Switch1 is connected.

  • Switch1> enable
  • Switch1# configure terminal
  • Switch1(config)# interface range FastEthernet0 /11 -12
  • Switch1(config-if-range)# switchport mode access
  • Switch1(config-if-range)# switchport access vlan 10
  • Switch1(config-if-range)# channel-group 5 mode desirable
Create a EtherChannel with 3 links. Test it out. How can you know its working?

Turn in a complete transcript, broken into sections as above, and with the extra stuff removed.

Turn in page writing up your experience. What went well, what did you struggle with, what did you learn?

Topic revision: r5 - 2013-10-31 - JimSkon
This site is powered by the TWiki collaboration platformCopyright &© by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback