Sie sind auf Seite 1von 12

Router commands Usermode Commands Command disconnect enable ping <host-name> ping <ip-address> traceroute <hostname> traceroute <ip-address>

Back Lists all routers along path to destination and finds the routing problems if any. Used to tests the connectivity.It uses ICMP to initiate the connection.

Sl. No. 1 2 3 4 5 6

Comments, if any. Terminates the suspended telnet session and then logout it.

Sl. No. 1 clear arp-cache 2 3 4 5 6 7 8 9 10 11 12 configure terminal

Privilegemode Commands Command

Comments, if any. Allows to execute commands that change the router's configuration. It saves the active configuration of the router.

copy running-config startup-config copy startup-config running-config debug ip packet disable disconnect <TELNET_ID> erase startup-config logout ping <host-name> ping <ip-address> reload

Returns to the UserEXEC mode from Privilege mode. Deletes all the configuration files present on a router. It exits router from the user or privilege mode. Used to tests the connectivity.It uses ICMP to initiate the connection.

13 14 15 16 17 18 19 20 21

resume <TELNET_ID> show access-list show banner show cdp show cdp interface show cdp neighbor show cdp traffic show clock show flash Used to view all IOS images and file stored in flash(Default location of IOS images is in flash). Shows the detailed statistics regarding LMI. Shows all the frame relay PVC's terminated and their statistics at a specified router. Shows the previously executed commands.IOS device stores the last ten commands that are executed. To view interfaces,status,and statistics for an interface.If u don't lists a specific interface,all of the interfaces on the router are listed. Shows the status of CDP such as holdtime value,no.of packets for every 60sec. It tells the CDP configuration on an interface-by-interface basis. Displays all accesslists from all protocols present in a specified router.

22 23 24

show frame-relay lmi show frame-relay map show frame-relay pvc <dlci_num>

25 26 27 28 29 30 31 32 33 34

show history show hosts show interfaces show interfaces ethernet 0 show interfaces loopback 0 show interfaces serial 0 show ip arp show ip eigrp neighbors show ip eigrp neighbors detail show ip eigrp topology

displays the lmi type that is being used and also sme LMI statisstics. Shows the list of eigrp neighbors that a specified router has. Displays the list of successor and feasible successors,as well as other types of routes.

35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54

show ip eigrp traffic show ip interface show ip interface brief show ip ospf database show ip ospf interface show ip ospf neighbor detail show ip route show protocols show running-config show sessions show startup-config show version telnet <host-name> telnet <IP-address> traceroute <hostname> traceroute <ip-address> vlan database write erase write memory write terminal

It shows the information about trafiic statistics for eigrp Verifies the IP configuration.

Verifies the configurationof static and default routes on a router. Displays the routing protocols that have been configured and running on a specified router. shows the telnet sessions that are currently suspended. Display version information for the hardware and firmware.

Lists all routers along path to destination and finds the routing problems if any. Used to access all VLAN and VTP configuration.

Back

Global configuration mode Commands Sl. No. Command Comments, if any. Only standard access list of the 1 access-list <list-num> {permit | deny} <source-ip-address> format given is supported. 2 access-list <list-num> {permit | deny} <any> 3 access-list <list-num> {permit | deny} <ip-address><ip-

4 5 6 7 8 9

address> access-list <list-num> {permit | deny} <host-name><ipaddress> banner motd <banner> cdp advertise-v2 cdp holdtime <seconds> cdp run cdp timer <seconds> Hexadecimal or decimal value that represents the 16-bit configuration register value. It is used at the router start-up. The value range is from 0x0 to 0xFFFF (0 to 65535 in decimal). Normally, the default value is 0x2102 Sets the paasword.The level number is either 1 or 15. Encrypts the password when it is saved. It creates the login banner on a specified router.

10

config-register <value>

11 12 13 14 15 16 17 18 19 20 21 22 23 24 25

dialer-list<list-num>protocol ip permit enable password <password> enable secret <password> end hostname <host-name> interface ethernet 0 interface fastethernet <pnum> interface loopback 0 interface serial 0 interface vlan <vlan_num> ip default-gateway <ip-address> ip default-network <ip-address> ip domain-lookup ip host <name><ip-address> ip name-server<ip-address> Complete syntax for this command: ip host name [tcp-portnumber] address1 [address2...address8] By using this Router access the Tells the router which router to use when the router needs to reach the destination thats not in its configured subnet. Used to create loopback interface.Port numbers can specify between 0 to 2147483647. Used to access ethernet interface and enter Interface subconfiguration mode.

26

ip route <prefix><mask> {next-hop-ip-addr | interfacetype} ip route 0.0.0.0 0.0.0.0 <ip-address> ip route<ip-address><ip-address><ip-address> ip route <ip-address><ip-address> serial 0 ip routing ipx routing isdn switch-type <switch_type> line aux line console 0

DNS server to resolve the names to ip addresses. The command supported by the simulator are: ip route <prefix><mask><nexthop-ip> and ip route <prefix><mask> serial

27 28 29 30 31 32 33 34

Not supported at this time

35 36 37 38 39 40 41 42 43 44 45

line vty no banner motd no cdp run no ip domain-lookup no ip routing no router eigrp no router ospf no router rip no vlan <vlan_num> router eigrp <aut_sys> router ospf <proc_id>

To enter into console interface.Here 0 specifies the console part. It supports 16 simultaneous telnet connections and each connection is internally tracked by a number:0-15. It can globally enable or disable the cdp on a router. It disables all the DNS lookups on the router.

46 47 48

router rip snmp-server enable traps vtp username <name> password <password>

Process_id is locally significant and is used to differentiate different ospf processes running on a router. Enters into the RIP routing protocol configuration mode.

Back

Interface subconfiguration mode Commands Sl. No. Command Comments, if any. Required bandwidth, in kilobits 1 bandwidth <kilobits> per second. 2 cdp enable Desired clock rate in bits per 3 clock rate <bps> second: 1200, 2400, 4800, 9600, 19200, 38400, 56000, 64000 etc. 4 compress stac <num> in Character string from 1 to 80 5 description <string> characters. 6 dialer-group<dialer_list_#> 7 dialer map ip <ip-address><des-phone> 8 dialer map ip <ip-address> name <hostname><des-phone> 9 dialer string< phone_#><class map_name> Only PPP/HDLC are supported at this time by the simulator. 10 encapsulation <encapsulation-type> ex: encapsulation hdlc 11 encapsulation framerelay<num> in Specifies the LMI type that is used to communicate between a router 12 frame-relay lmi-type <lmi_type> and carrier's switch.LMI type is specific to the entire interface,not to a VC. It configures the manual 13 frame-relay map<protocol-name><ip-address><dlci_num> resolution of PVC's. frame-relay map<protocol-name><ip-address><dlci_num> 14 broadcast frame-relay map<protocol-name><ip-address><dlci_num> 15 broadcast cisco frame-relay map<protocol-name><ip-address><dlci_num> 16 broadcast ietf frame-relay map<protocol-name><ip-address><dlci_num> 17 cisco frame-relay map<protocol-name><ip-address><dlci_num> 18 ietf 19 ip access-group <num> in 20 ip access-group <num> out 21 ip address <ip-address><sub-net mask>

22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41

isdn spid1<spid_num> isdn spid2<spid_num> keepalive <seconds> login no bandwidth no cdp enable no clock rate no frame map <protocol name><ip-address><dlci_num> no frame map<protocol-name><ip-address><dlci_num> broadcast no frame map<protocol-name><ip-address><dlci_num> cisco no frame map<protocol-name><ip-address><dlci_num> ietf no ip address no shutdown shutdown shutdown switchport speed switchport access vlan <vlan_num> switchport port-security mac-address sticky<mac_addr> switchport port-security maximum <max_macadd> switchport port-security violation <violat_mode>

Defines the spid's that are used to authenticate call requests.Used only on local connection between router and isdn switch.

It disable the interfaces.Interfaces are enabled by default.

Back

Line subconfiguration mode Commands Sl. No. Command Comments, if any. 1 exec-timeout <minutes> [seconds] seconds is optional. 2 logging synchronous 3 password <password> Back

Subinterface Subconfiguration mode Commands

Sl. No. 1 discription<string>

Command

2 3 4 5 6 7 8 9 10 11

frame-relay interface-dlci<dlci_num> frame-relay map<protocol-name><ip-address><dlci_num> frame-relay map<protocol-name><ip-address><dlci_num> broadcast frame-relay map<protocol-name><ip-address><dlci_num> broadcast cisco frame-relay map<protocol-name><ip-address><dlci_num> broadcast ietf frame-relay map<protocol-name><ip-address><dlci_num> cisco frame-relay map<protocol-name><ip-address><dlci_num> ietf ip address<ip-address><subnet-mask> no ip address no shutdown

Comments, if any. It specifies the DLCI number.Uses a dynamic resolution with inverse ARP. It specifies the DLCI number.Uses a dynamic resolution with inverse ARP.

12

shutdown

It specifies the DLCI number.Uses a dynamic resolution with inverse ARP. It specifies the DLCI number.Uses a dynamic resolution with inverse ARP. Back

IP Routing Protocol Subconfiguration mode Commands Sl. No. Command Comments, if any. 1 network <ip-address> Used with routing rip, igrp etc. Back

Supported Switch Commands

User mode Commands Sl.No. 1 enable commands Comments, if any.

Back

Privilegemode Commands Sl.No. commands 1 clock set hh:mm:ss <1-31> Month <20042035> 2 configure terminal 3 4 5 6 7 8 9 10 11 12 copy running-config startup-config copy startup-config running-config disable erase startup-config logout reload show banner show flash show history show interfaces Comments, if any.

Allows to execute commands that change the switch's configuration. It saves the active configuration of the switch. Returns to the UserEXEC mode from Privilege mode. It exits switch from the user or privilege mode.

Used to view all IOS images and file stored in flash(Default location of IOS images is in flash). To view interfaces,status,and statistics for an interface.If u don't lists a specific interface,all of the interfaces on the switch are listed. Verifies the IP configuration. It examine the active configuration on a switch. Display version information for the hardware and firmware Back

13 14 15 16

show ip interface brief show running-config show startup-config show version

Global Configuration mode Commands

Sl.No. 1 2 3 4 5 6 7 8 9 10

commands banner motd <phrase> cdp advertise-v2 cdp holdtime <seconds> cdp run cdp timer <seconds> enable password <password> enable secret <secret> end hostname <name> ip default-gateway <ip-address>

Comments, if any. It creates the login banner on a specified router.

It sets the paasword.The level number is either 1 or 15. Encrypts the password when it is saved.

Tells the switch which router or switch have to use when the switch needs to reach the destination thats not in its configured subnet. Depends on the switch type. For module 0, port 1 the command is interface fastethernet 0/1 You can enter interface config mode. example: interface vlan 1 (config-if)#ip address 192.168.10.1 255.255.255.0

11 12 13

ip host<hostname><ip-address> interface fastethernet <0-0>/<0-24> interface vlan <vlan #>

14 15 16

17 18

line console 0 line vty 0 15 mac-address-table static <mac-address> vlan <valn_num> interface fastethernet <pnum> snmp-server enable traps vtp speed <speed> Enter switch port speed 10,100, auto. Back

Interface Subconfiguration mode Commands Sl.No. commands Comments, if any. 1 description <phrase> 2 duplex <duplex-type> 3 ip address <ip-address><subnet mask> A switch can have one IP address. The IP address of the switch can be accessed only through ports that belong to the management VLAN. 4 ip name-server <ip-address> 5 login

Sl.No. 6 no ip address 7 no shutdown 8 9

Interface Subconfiguration mode Commands commands Comments, if any. It reenables the interface when the interface is disabled.By default interfaces are enabled. Disables a port and shuts-down management vlan. no shutdown command enables a port. Back

no switchport <port_security> shutdown

Line Subconfiguration mode Commands Sl.No. commands Comments, if any. 1 password <password> Back

Vlan mode Commands Sl.No. 1 2 3 4 5 6 7 vlan<vlan_num> vtp client vtp domain vtp password vtp pruning vtp server vtp transparent Back commands Comments, if any. VLAN numbers can range 1-1000,However only 64VLANs can be active ata time. Specifies the VTP mode of the switch. Defines the domain name for a specified switch.For switches to share VTP informtion they must be in the same domain.

Workstation Commands Sl. No. Command 1 ip address <ip-address><subnet-mask> Comments, if any.

2 3 4 5 6 7

ping <ip-address> ping <hostname> telnet <host-name> telnet <ip-address> traceroute <hostname> traceroute <ip-address> Top

Das könnte Ihnen auch gefallen