Vous êtes sur la page 1sur 10

To provide power, when the phone is connected to a switch.

Switch# Switch(config)# Switch(config-if)# show power inline interface fastEthernet 0/1 power inline ?

auto Automatically detect and power inline devices never Never apply inline power Switch(config-if)# Switch> power inline auto show power inline

Backing up and Upgrading cisco IOS (.tar files)


copy flash:tftp back up your current configuration file copy flash:config.text tftp To remove the current HTML files, just use the following command: delete /r/f flash:html make sure you have a TFTP server running (such as Tftpd32.exe). Then, use the archive command, as shown below: archive tar /xtract tftp://192.168.1.103/c2950-i6q4l2-tar.121-22.EA10a.tar flash: Substitute the IP address with the IP address of the TFTP server where youve placed the IOS .tar file. Requirement Set a console password to cisco Cisco Command Router(config)#line con 0 Router(config-line)#login Router(config-line)#password cisco Router(config)#line vty 0 4 Router(config-line)#login Router(config-line)#password cisco Router(config)#line con 0 Router(config-line)#exec-timeout 0 0 Router(config)#enable password cisco

Set a telnet password

Stop console timing out

Set the enable password to cisco

Set the enable secret password to peter. This password overrides the enable password and is encypted within the config file Enable an interface To disable an interface

Router(config)#enable secret peter

Router(config-if)#no shutdown Router(config-if)#shutdown

Set the clock rate for a router with a DCE cable to 64K Set a logical bandwidth assignment of 64K to the serial interface

Router(config-if)clock rate 64000 Router(config-if)bandwidth 64 Note that the zeroes are not missing Router(config-if)#ip addr 10.1.1.1 255.255.255.0 Router(config)#router rip Router(config-router)#network 172.16.0.0

To add an IP address to a interface

To enable RIP on all 172.16.x.y interfaces

Disable RIP To enable IRGP with a AS of 200, to all interfaces

Router(config)#no router rip Router(config)#router igrp 200 Router(config-router)#network 172.16.0.0

Disable IGRP Static route the remote network is 172.16.1.0, with a mask of 255.255.255.0, the next hop is 172.16.2.1, at a cost of 5 hops Disable CDP for the whole router

Router(config)#no router igrp 200 Router(config)#ip route 172.16.1.0 255.255.255.0 172.16.2.1 5 Router(config)#no cdp run

Enable CDP for he whole router

Router(config)#cdp run

Disable CDP on an interface

Router(config-if)#no cdp enable

Cisco Router Show Commands Requirement View version information View current configuration (DRAM) View startup configuration (NVRAM) show version show running-config show startup-config Cisco Command

Show IOS file and flash space Shows all logs that the router has in its memory

show flash show log

View the interface status of interface e0 Overview all interfaces on the router

show interface e0 show ip interfaces brief

View type of serial cable on s0

show controllers 0 (note the space between the 's' and the '0')

Display a summary of connected cdp devices Display detailed information on all devices

show cdp neighbor show cdp entry *

Display current routing protocols Display IP routing table

show ip protocols show ip route

Display access lists, this includes the number of displayed matches Check the router can see the ISDN switch Check a Frame Relay PVC connections

show access-lists

show isdn status show frame-relay pvc

show lmi traffic stats

show frame-relay lmi

Display the frame inverse ARP table

show frame-relay map

Cisco Router Basic Operations Requirement Enable Return to user mode from privileged Cisco Command Enter privileged mode disable

Exit Router Recall last command

Logout or exit or quit up arrow or <Ctrl-P>

Recall next command Suspend or abort

down arrow or <Ctrl-N> <Shift> and <Ctrl> and 6 then x

Refresh screen output Compleat Command

<Ctrl-R> TAB

Cisco Router Copy Commands Requirement Save the current configuration from DRAM to NVRAM Merge NVRAM configuration to DRAM Cisco Command copy running-config startup-config

copy startup-config running-config

Copy DRAM configuration to a TFTP server Merge TFTP configuration with current router configuration held in DRAM Backup the IOS onto a TFTP server

copy runing-config tftp

copy tftp runing-config

copy flash tftp

Upgrade the router IOS from a TFTP server Cisco Router Debug Commands Requirement Enable debug for RIP Enable summary IGRP debug information Enable detailed IGRP debug information

copy tftp flash

Cisco Command debug ip rip debug ip igrp events debug ip igrp transactions

Debug IPX RIP Debug IPX SAP

debug ipx routing activity debug IPX SAP

Enable debug for CHAP or PAP Switch all debugging off

debug ppp authentication no debug all undebug all

Table 5-2: Command Line Interface Commands

Command
clear alias clear arp clear cam clear config clear counters clear help clear ip alias clear ip route clear log

Description
Clears aliases of commands. Clears ARP table entries. Clears CAM table entries. Clears configuration and resets the system. Clears MAC and Port counters. Shows the clear command menu. Clears aliases of IP Addresses. Clears IP routing table entries. Clears the system error log.

Mode
P1 P P P P P P P P

clear snmp trap clear spantree portvlanpri clear trunk clear vlan clear vtp configure disable disconnect download download serial enable help history ping quit reset set alias set arp set bridge help set bridge ipx 8022toether

Clears SNMP trap receiver address. Clears spantree port vlan priority. Clears trunks. Clears a VLAN. Clear VTP statistics.

P P P P P

Downloads a configuration file from the network and executes each command P in the file. Returns the console interface to normal mode. P Closes an active console port or Telnet session. Copies a software image from a specified host to the designated module's flash memory. Copies software images to the supervisor card or Flash memory through a serial port. Activates privileged mode. Lists the top-level commands available in the current mode. Shows the contents of the history substitution buffer. Sends ICMP echo request packets to another node on the network. Exits the administration interface session. P P P N2 N, P N N N

Sets the system to its default values or configures the system as an individual P module. Creates a shorthand name (alias) for the command. P Sets an ARP table entry . Lists the set bridge commands Sets the default mode for translating IPX frames from FDDI 802.2 to Ethernet Sets the default protocol for translating IPX frames from Ethernet 802.3 RAW to FDDI P P P P P

set cam set cdp disable set cdp enable set cdp interval set help set fddi cutoff set fddi alarm

Sets a CAM table entry. Deactivates Cisco Discovery Protocol information. Sets Cisco Discovery Protocol information. Sets the number of seconds between Cisco Discovery Protocol messages. Sets the LER-alarm value. Sets the LER-cutoff value Lists the set fddi commands

P P P P P P P

set fddi tlmin set fddi tnotify set fddi treq set fddi userdata set enablepass set help set interface set ip alias set ip fragmentation set ip help set ip redirect set ip route set ip unreachable set length set logout set module disable set module enable set module help set module name set password set port disable set port duplex set port enable set port help set port level set port name set port speed set port trap

Sets the TL_MIN value for an FDDI port Sets the T_Notify timer value for an FDDI port Sets the TRequest value for an FDDI MAC Sets the user-data string in the SMT MIB of an FDDI module Sets the privileged password. Shows the set command menu. Sets a network interface configuration. Sets an alias for an IP Address.

P P P P P N P P

Enables or disables the fragmentation of IP packets bridged between Ethernet P networks. Lists the set ip commands. P Enables or disables ICMP redirect messages for the switch. Adds IP addresses or aliases to the IP routing table. Enables or disables ICMP unreachable messages for the switch. Sets the number of lines in the terminal display screen. Sets the number of minutes before automatic logout. Disables a module. Enables a module. Shows the set module command menu. Sets module name. Sets the console password. Disables a port. Sets port transmission type (full/half duplex). Enables a port. Shows the set port command menu. Sets a port's priority level (normal/high). Sets a port's name. Sets a port's speed. Sets the port up/down trap (enable/disable). P P N P P P P P P P P P P P P P P

set prompt set snmp community set snmp help set snmp rmon set snmp trap set span set spantree disable set spantree enable set spantree fwddelay set spantree hello set spantree help set spantree maxage set spantree portcost set spantree portfast set spantree portpri

Sets the CLI prompt. Sets SNMP community string. Shows the set snmp command menu. Sets the SNMP RMON. Sets the SNMP Remote Monitoring (RMON) support (enable|disable). Sets the switch port analyzer. Disables spanning tree. Enables spanning tree. Sets spantree forward delay. Sets spantree hello time. Shows the set spantree command menu. Sets spantree maximum aging time. Sets spantree port cost. Sets the spantree port fast start. Sets spantree port priority.

P P P P P P P P P P P P P P P P P P P P P P P P P P P N

set spantree portvlanpri Sets the spantree port vlan priority. set spantree priority set system baud set system contact set system help set system location set system modem set system name set time set trunk set vlan set vtp show alias Sets spantree priority. Sets the console port baud rate. Sets the system contact. Shows the set system command menu. Sets the system location. Sets modem control (enable/disable). Sets the system name. Sets the system time. Sets ports to be trunks. Sets virtual LANs on ports. Sets Virtual Truck information. Shows aliases for commands.

show arp show cam show cdp show config show fddi show fddicam show fddi show flash show help show interface show ip alias show ip help show ip route show log show mac show module show module show netstat show port show snmp show span show spantree show system show test show time show trunk show users show version

Shows the ARP table . Shows the CAM table. Shows Cisco Discovery Protocol information. Shows the system configuration. Displays the settings of the FDDI/CDDI modules Displays the CAM table for the FDDI/CDDI modules Shows the show command menu Lists flash code information. Lists and describes the available show commands. Shows network interfaces. Shows aliases for IP Addresses. Lists the show ip commands. Displays the IP routing table entries. Displays the system error log. Shows MAC information. Shows mbuf and malloc statistics. Shows module information. Shows network statistics. Shows port information. Shows SNMP information. Shows switch port analyzer information. Shows spantree information. Shows system information. Shows results of diagnostic tests. Shows the current time. Shows trunk information. Shows active Admin sessions. Shows version information.

N N N P N N N P N N N N N P N P N N N N N N N N N N N N

show vlan show vtp show vtp help slip telnet test help test snmp trap upload wait write

Shows virtual LAN information. Shows Virtual Trunk Protocol (VTP) information. Displays Virtual Trunk Protocol commands. Attaches or detaches SLIP from the console port. Starts a telnet connection to a remote host. Shows the test command menu. Sends trap message to SNMP trap receivers. Uploads a code image to a network host. Pauses for a specified number of seconds. Uploads the current configuration to a host or displays it on the terminal.

N N

P P P P P N P

Vous aimerez peut-être aussi