Sie sind auf Seite 1von 1

CCNA basic switch Command switch>?

switch>enable switch# switch#disable switch>exit switch#show version switch#show flash: switch#show mac-address-table switch#show running-config switch#show startup-config switch#show vlan switch#show interfaces switch#show interface vlan1 Switch#delete flash:vlan.dat Delete filename [vlan.dat]? Delete flash:vlan.dat? [confirm] Switch#erase startup-config Switch#reload Switch#configure terminal Switch(config)#hostname Switch1 Switch1(config)# Switch(config)#enable password vinita Switch(config)#enable secret nikki Switch(config)#line console 0 Switch(config-line)#login Switch(config-line)#password vinita Switch(config-line)#exit Switch(config-line)#line vty 0 4 Switch(config-line)#login Switch(config-line)#password vinita Switch(config-line)#exit Switch(config)# Switch(config)#interface vlan1 Switch(config-if)#ip address 192.168.0.10 255.255.255.0 Switch(config-if)#exit Switch(config)#ip default-gateway 192.168.0.5

commands sheet

descriptions The ? works here the same as in a router Used to get the list of all available commands User mode, same as a router Privileged mode Leaves privileged mode Leaves user mode Displays information about software and hardware. Displays information about flash memory (will work only for the 2900/2950 series). Displays the current MAC address forwarding table . Displays the current configuration in DRAM. Displays the current configuration in NVRAM. Displays the current VLAN configuration. Displays the interface configuration and status of line: up/up, up/down, admin down. Displays setting of virtual interface VLAN 1, the default VLAN on the switch. To Reset Switch Configuration Removes the VLAN database from flash memory. Press Enter Press Enter Erases the file from NVRAM. Restarts the switch. To Set Host Names Moves to global configuration mode Creates a locally significant host name of the switch. This is the same command as the router. To Set Passwords Sets the enable password to vinita Sets the encrypted secret password to nikki Enters line console mode Enables password checking Sets the password to vinita Exits line console mode Enters line vty mode for all five virtual ports Enables password checking Sets the password to vinita Exits line vty mode To Set IP Addresses and Default Gateways Enters the virtual interface for VLAN 1, the default VLAN on the switch Sets the IP address and netmask to allow for remote access to the switch

Allows IP information an exit past the local network To Set Interface Descriptions

Switch(config)#interface fastethernet 0/1

Enters interface configuration mode

Switch(config-if)#description Finance VLAN Adds a description of the interface To Set Duplex Operation Switch(config)#interface fastethernet 0/1 Switch(config-if)#duplex full Switch(config-if)#duplex auto Switch(config-if)#duplex half Moves to interface configuration mode Forces full-duplex operation Enables auto-duplex config Forces half-duplex operation To Set Operation Speed Switch(config)#interface fastethernet 0/1 Switch(config-if)#speed 10 Switch(config-if)#speed 100 Switch(config-if)#speed auto switch#show mac address-table switch#clear mac address-table switch#clear mac address-table dynamic

Forces 10-Mbps operation Forces 100-Mbps operation Enables autospeed configuration MAC Address Table Displays current MAC address forwarding table Deletes all entries from current MAC address forwarding table Deletes only dynamic entries from table

Das könnte Ihnen auch gefallen