Tuesday, June 17, 2014

Cisco Router configuration command


show ip route   View the routing table
show protocols     Display all routed protocols and the set protocols on interfaces
show ip protocols     Display routing protocols configured on the router, and gives the information of timer used in the routing protocols
router rip      Activate RIP protocols
network + networking straight section  Release the networking straight section
interface lookback 0   Activate logic interface  
passive-interface +interface type+ interface number   Configure the interface as passive mode
debug ip +protocol    View routing updates on dynamic condition
undebug all   Close all DEBUG information
router eigrp +as number   Activate EIGRP routing protocol
network +network segment+subnet mask   Released directly connected networks
show ip eigrp neighbors   View neighbor table
show ip eigrp topology     View topology table
show ip eigrp traffic    View the number of packets sent
router ospf +process-ID   Activate OSPF protocol
network+networking straight section+area+area number    Release the networking straight section
show ip ospf     Display OSPF process number and ROUTER-ID
encapsulation+ Encapsulation Format   Change the encapsulation format
no ip admain-lookup  Turn off the router's domain name lookup
ip routing    Start routing function on the three switches
show user    View online users of SW
clear line +line number    Clear lines

More related topics
The Default Configuration for Cisco Router
Enterprise network manager: The router-on-a-stick

 

Friday, June 6, 2014

Cisco Switch Configuration Commands



Cisco Switch configuration commands
 
1. Mode conversion command

User mode ---- privileged mode, use the command "enable"
Privileged mode ---- global configuration mode, use the command "config t"
Global Configuration Mode ---- interface mode, use the command "interface + interface type + interface number"
Global Configuration Mode ---- wire mode, use the command "line + interface type + interface number"


Note:

User Mode: View initialized information
Privileged mode: view all information, debugging, save the configuration information
Global mode: configure all the information, aim at all the interfaces of the router or switch
Interface mode: configuration for a particular interface
Wire mode: interface configuration for the router controlling

2. Configuration commands
 
show running config      Show all configurations
show versin             Display the version number and register values
 shut down             Close the interface
no shutdown            Open the interface
ip add +ip address        Configure the IP address
secondary+IP address     Configure the second IP address for the interface
show interface + interface type +interface number View the interface Manageability
show controllers interface  Check whether the interface has the DCE cable
show history            View history memory
show terminal           Check the terminal record size
hostname+ host name     Configure the identification of the router or switch
config memory          Modify the startup configuration stored in NVRAM
exec timeout 0 0            Set the session timeout of console panel to be 0
service password-encryptin   Manually encrypt all passwords

enable password + password  Configure the cleartext password
ena sec + password         Configure the ciphertext password
line vty 0 4/15             Enter into the telnet interface
password + password       Configure telnet password
line aux 0                 Enter into the AUX interface
password +password        Configure the password
line con 0                 Enter into the CON Interface
password + password       Configure the password
bandwidth+ digit          Configure Bandwidth
no ip address              Delete the configured IP address

show startup config        View configuration information in the NVRAM
copy run-config atartup config    Save information into the NVRAM  
erase startup-config        Delete the configuration information of the NVRAM
show ip interface brief      View the summery information of  interface
banner motd # +information + #  Configure the description information of the router or switch
description+ information   Configure the description information of the interface
vlan database            Enter into VLAN database mode
vlan +vlan number+ name    Create VLAN
switchport access vlan +vlan number   Set an interface for the VLAN
interface vlan +vlan number   Enter intoVLAN interface mode
ip add +ip address         Configure the IP address management for the VLAN
vtp+service/tracsparent/client  Configure the VTP mode of SW
vtp +domain+ domain name  Configure the VTP domain name of SW
vtp +password +password   Configure the password of SW  
no vlan +vlan number      Delete VLAN


More related topics: