Preview

Basic Switch Commands

Satisfactory Essays
Open Document
Open Document
419 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Basic Switch Commands
Basic Switch Commands Command(s) | Result | Switch#show mac-address-table | Used to display the MAC address table on the switch. | Switch>enable
Switch#config term
Switch(config)#hostname NY-SW1
NY-SW1(config)# | Used to change the hostname on the switch. | NY-SW1>enable
NY-SW1#config term
NY-SW1(config)#interface vlan1
NY-SW1(config-if)#ip address 23.0.0.25 255.0.0.0
NY-SW1(config-if)#no shutdown
NY-SW1(config-if)#exit
NY-SW1(config)#ip default-gateway 23.0.0.1 | Configures the switch for an IP address so that you can remotely connect to the switch and manage it. Also notice that the default gateway is set. If you do not set the default gateway, you will be unable to manage the switch from a different network. | Switch>enable
Switch#config term
Switch(config)#interface f0/5
Switch(config-if)#speed 100
Switch(config-if)#duplex full
Switch(config-if)#description Web Server
Switch(config-if)#no shutdown | These commands are used to manually configure a port for 100 Mbps, full duplex, and assigns a description to the port. The port is then enabled with the no shutdown command. | Switch(config-if)#shutdown | Disables the port. | SW1>enable
SW1#config term
SW1(config)#interface f0/6
SW1(config-if)#switchport mode access
SW1(config-if)#switchport port-security
SW1(config-if)#switchport port-security mac-address sticky
SW1(config-if)#switchport port-security maximum 1
SW1(config-if)#switchport port-security violation shutdown | This group of commands configures port security on port #6. Port security is a way to limit which systems can connect to a switch. This code example uses a "sticky" MAC address that tells the switch to configure the port for whatever MAC uses the port first. It then sets the maximum number of MACs for the port to 1 and shuts down the port if there is a violation. | show port-security address | Show the MAC addresses that have been configured for each port. | show port-security interface f0/6 |

You May Also Find These Documents Helpful

  • Good Essays

    The user EXEC mode allows only a limited number of basic monitoring commands. The privileged EXEC mode provides access to all router commands.…

    • 1170 Words
    • 5 Pages
    Good Essays
  • Powerful Essays

    4. When setting a local Cisco switchport to initiate the negotiation of a trunk link with the remote…

    • 901 Words
    • 3 Pages
    Powerful Essays
  • Satisfactory Essays

    A switch does not need an IP, you can just plug in your devices and they will automatically connect to the Internet. The IP address allows you to manage the switch the configuration with different VLANs and other network functions. To configure the switch you will need to use the CLI, which is the exec command interpreter. Using…

    • 747 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    This section only evaluates your entry of config commands that relate to actual device configuration.…

    • 680 Words
    • 3 Pages
    Satisfactory Essays
  • Better Essays

    Specifies a list of IP addresses for routers on the client's subnet. Multihomed computers can have only one list per computer, not one per network adapter.…

    • 1103 Words
    • 4 Pages
    Better Essays
  • Good Essays

    Nt1330 Unit 4

    • 920 Words
    • 4 Pages

    3. The following command was copied and pasted into configuration mode when a user was telnetted into a Cisco switch:…

    • 920 Words
    • 4 Pages
    Good Essays
  • Satisfactory Essays

    IT321 Labs 1.1 - 1.7

    • 2018 Words
    • 38 Pages

    no ip address duplex auto speed auto shutdown ! interface FastEthernet0/1 no ip address duplex auto speed auto shutdown ! interface Serial0/0/0 ip address 192.168.10.1 255.255.255.192 ! interface Serial0/0/1 no ip address shutdown ! interface Serial0/1/0…

    • 2018 Words
    • 38 Pages
    Satisfactory Essays
  • Good Essays

    (167) Command issued to upgrade an old version of the Cisco IOS software by downloading a new image from the TFTP server…

    • 469 Words
    • 2 Pages
    Good Essays
  • Good Essays

    | |containing the station ID and an|tools to launch attacks on the network.|however it is important to |…

    • 572 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    Router Simulation

    • 331 Words
    • 2 Pages

    9. What numeric port range is commonly used by clients in a client -> server communication session? 0 to 1023…

    • 331 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    lab 4

    • 527 Words
    • 3 Pages

    1. Automatically chooses the MDI or MDIX configuration to properly match the other end of the link.…

    • 527 Words
    • 3 Pages
    Good Essays
  • Good Essays

    lab 5

    • 718 Words
    • 3 Pages

    When a computer is physically connected to a network port, manual procedures and/or an automated method must exist to perform what type of security functions at the Network Port and Data Switch level for access control?…

    • 718 Words
    • 3 Pages
    Good Essays
  • Good Essays

    Code Switching

    • 1005 Words
    • 5 Pages

    Growing up on the out skirts of Philadelphia and a father with a sensitive job, requiring him to pack up and move in a moment 's notice, my family moved in excess of two dozen times. This in itself took an enormous toll on the well-being of the family. Every time another move came about, came with it new challenges, social challenges that instigated change within myself. Constantly torn between friends, family and school life, I had evolved to be a routine that I came to learn in order to keep an oddly balanced lifestyle. It was the very process of "code-switching" that I struggled with, making me into the person that I am today.…

    • 1005 Words
    • 5 Pages
    Good Essays
  • Good Essays

    Light Switch

    • 661 Words
    • 3 Pages

    I used to believe that love was a light switch. Something flicks on. You get an overwhelming sensation. It hits you like a bag of bricks. Or a strong arrow. When you know, you know. Right? Not so much. After 28 years, I don’t see love that way anymore. I’ve placed Cupid right next to Santa Claus and the Easter Bunny.…

    • 661 Words
    • 3 Pages
    Good Essays
  • Powerful Essays

    Code Switching

    • 5211 Words
    • 20 Pages

    Code switching is an everyday reality in every place where more than one language is spoken in everyday communications. Many scholars have studied extensively about the patterns of code switching and the reasons for code switching. The present paper discusses the communicative functions of code switching and also…

    • 5211 Words
    • 20 Pages
    Powerful Essays