IOS Switch Commands Flashcards
User mode.
Switch>
Enter Privilege mode.
Switch>enable
Privileged mode.
Switch#
Enter Configuration mode.
Switch#configure terminal
Global Configuration mode.
Switch(config)#
Enter Interface mode.
Switch(config)#interface fa0/1
Interface mode.
Switch(config-if)#
Return to Global Configuration mode.
Switch(config-if)#exit
Return to User mode.
Switch#disable
Logout.
Switch>exit
Recall previous command.
Up arrow or Ctrl p
Recall next command.
Down arrow or Ctrl n
Beginning of command.
Ctrl a
End of command.
Ctrl e
Delete input.
Ctrl d
Exit Configuration mode.
Switch(config)#exit or Ctrl z
Complete command.
Tab
Configure device system name.
Switch(config)#hostname yourhostname
Sets the encrypted enable password.
Switch(config)#enable secret cisco
Sets the un-encrypted enable password.
Switch(config)#enable password cisco
Enable password encryption on all clear text password within the configuration file.
Switch(config)#service password-encryption
Configure a Message Of The Banner, with an ending character of $.
Switch(config)#banner modt $
Assign IP address to VLAN 1.
Switch(config)#interface vlan 1
Switch(config-if)#ip address 192.168.0.1 255.255.255.0
Assign Default Gateway.
Switch(config)#ip default-gateway 192.168.0.250
Select one interface.
Switch(config)#interface fastEthernet 0/1
Select a range of interfaces.
Switch(config)#interface fastEthernet 0/1 - 24
Set the interface description.
Switch(config-if)#description yourdescription
Add VLAN 10 to switch and name it TEST.
Switch(config)#vlan 10
Switch(config-vlan)#name test
Configure interface FastEthernet 0/1 @ speed 100 Mbps and full duplex.
Switch(config)#interface FastEthernet 0/1
Switch(config-if)#speed 100
Switch(config-if)#duplex full
Assign interface to VLAN.
Switch(config)#switchport access vlan 10
Enable port security.
Switch(config-if)#switchport mode access
Switch(config-if)#switchport port-security
Switch(config-if)#switchport port-security mac-address sticky
Disable interface.
Switch(config-if)#shutdown
Enable interface.
Switch(config-if)#no shutdown
Configures 5 Telnet sessions each with a password of ‘cisco’.
Switch(config)#line vty 0 4
Switch(config-line)#login
Switch(config-line)#password cisco