Home
Resume
Contact
Links
Forum/chat room
Recipes
Cisco
ICND 1
Blog
 
   
 


                          ICDN 2 Commands

banner motd                                       Message of the day banner
configure terminal                               Enters Global configuration mode
copy running-config startup-config        Saves the running-config to NVRAM
enable                                               Enters privileged EXEC mode
enable secret password                      Sets and enable secret password  
erase startup-config                           Erases startup config from memory
hostname                                         Assigns device hostname
interface interface                             Specifies and interface and enter interface config mode
ip address address mask                  Sets ip address and subnet mask
ip defaut-gateway address                 Sets the ip address for the default gateway
line console 0                                   Enters line console config mode
line vty 0 4                                        Enters vty config mode
login                                                 Sets password checking at login
password password                            Sets password on line console and vty
ping ip address                                  Sends icmp packets to remote host
reload                                               Reboots the device
show cpd neighbors                          Displays CPD updates from each local interface
show interface                                  Show information on all devices interfaces
show running-configuration                 Displays active configuration
show startup-configuration                 Displays configuration setting in nvram
shutdown/no shutdown                      Disable and enable interface

                                            Switch Network Notes

VTP configuration

config t
vtp mode [ server | client | transparent]
vtp domain domain-name
vtp password password
vtp pruning

show vtp status

Switch#show vtp status
VTP Version                     : 2
Configuration Revision          : 0
Maximum VLANs supported locally : 1005
Number of existing VLANs        : 5
VTP Operating Mode              : Server
VTP Domain Name                 :
VTP Pruning Mode                : Disabled
VTP V2 Mode                     : Disabled
VTP Traps Generation            : Disabled
MD5 digest                      : 0x7D 0x5A 0xA6 0x0E 0x9A 0x72 0xA0 0x3A
Configuration last modified by 0.0.0.0 at 0-0-00 00:00:00
Local updater ID is 0.0.0.0 (no valid interface found)



switchport mode [ trunk | access | dynamic desirable | dynamic auto ]

trunk 802.1q convert the link to trunk mode
access disable trunk connected device to convert the link to nontrunk
dynamic desirable triggers the port to negotiate the link from nontrunk to trunk mode
dynamic auto enables a port to become a trunk onlyu if the connecter has the stat set to trunk or desirable

Switch#show interface fa0/1 switch
Name: Fa0/1
Switchport: Enabled
Administrative Mode: dynamic auto
Operational Mode: static access
Administrative Trunking Encapsulation: dot1q
Operational Trunking Encapsulation: native
Negotiation of Trunking: On
Access Mode VLAN: 1 (default)
Trunking Native Mode VLAN: 1 (default)
Voice VLAN: none
Administrative private-vlan host-association: none
Administrative private-vlan mapping: none
Administrative private-vlan trunk native VLAN: none
Administrative private-vlan trunk encapsulation: dot1q
Administrative private-vlan trunk normal VLANs: none
Administrative private-vlan trunk private VLANs: none
Operational private-vlan: none
Trunking VLANs Enabled: All
Pruning VLANs Enabled: 2-1001
Capture Mode Disabled
Capture VLANs Allowed: ALL
Protected: false
Unknown unicast blocked: disabled
Unknown multicast blocked: disabled
Appliance trust: none


vlan

vlan vlan-id vlan-id the range 1 to 4094 with enhanced software and 1 to 1005 with standard software
name vlan-name  Specify the vlan name

Switch#show vlan id 1

VLAN Name                             Status    Ports
---- -------------------------------- --------- -------------------------------
1    default                          active    Fa0/1, Fa0/2, Fa0/3, Fa0/4
                                                Fa0/5, Fa0/6, Fa0/7, Fa0/8
                                                Fa0/9, Fa0/10, Fa0/11, Fa0/12
                                                Fa0/13, Fa0/14, Fa0/15, Fa0/16
                                                Fa0/17, Fa0/18, Fa0/19, Fa0/20
                                                Fa0/21, Fa0/22, Fa0/23, Fa0/24
                                                Gig0/1, Gig0/2

VLAN Type  SAID       MTU   Parent RingNo BridgeNo Stp  BrdgMode Trans1 Trans2
---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------
1    enet  100001     1500  -      -      -        -    -        0      0

Switch#show vlan brief

VLAN Name                             Status    Ports
---- -------------------------------- --------- -------------------------------
1    default                          active    Fa0/1, Fa0/2, Fa0/3, Fa0/4
                                                Fa0/5, Fa0/6, Fa0/7, Fa0/8
                                                Fa0/9, Fa0/10, Fa0/11, Fa0/12
                                                Fa0/13, Fa0/14, Fa0/15, Fa0/16
                                                Fa0/17, Fa0/18, Fa0/19, Fa0/20
                                                Fa0/21, Fa0/22, Fa0/23, Fa0/24
                                                Gig0/1, Gig0/2
1002 fddi-default                     active   
1003 token-ring-default               active   
1004 fddinet-default                  active   
1005 trnet-default                    active