Search
Search titles only
By:
Search titles only
By:
Log in
Register
Search
Search titles only
By:
Search titles only
By:
Menu
Install the app
Install
Forums
New posts
All threads
Latest threads
New posts
Trending threads
Trending
Search forums
What's new
New posts
New ads
New profile posts
Latest activity
Free Ads
Latest reviews
Search ads
Members
Current visitors
New profile posts
Search profile posts
Contact us
Latest ads
Power Lifting Lever Belt
SkullVamp
Updated:
Saturday at 10:32 PM
Ad icon
port.lk Domain for sale
Lankan-Tech
Updated:
Saturday at 3:55 PM
Colombo
Kaduwela - Two Storey House for Sale
dilrasan
Updated:
Thursday at 2:23 PM
Ad icon
Wechat qr verification
Pawan2005
Updated:
Thursday at 1:28 AM
🚀 GOOGLE AI PRO 18 MONTHS ACTIVATION 🚀
sayuru bandara
Updated:
Wednesday at 5:34 PM
Electronics
Vehicles
Property
Search
Reply to thread
Forums
Computers & Internet
Software Development
Router Commands Overview
Get the App
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Message
<blockquote data-quote="gazaly" data-source="post: 850267" data-attributes="member: 10197"><p><span style="font-size: 18px"><strong> Router Commands Overview</strong></span></p><p><span style="font-size: 18px"><strong></strong></span></p><p><span style="font-size: 18px"><strong></strong></span> In this Article you will learn about the router commands, configurations, privileged mode commands, routing protocols, cisco labs and network configurations. </p><p>There are hundreds of basic and advance level commands of a router. It is not easy to remember all the commands. But some commands are frequently used and can be remembered with some practice. I have provided a list of the most commonly used commands based on their features and usage. </p><p>You will find here some basic terminology of a router. </p><p>Routing: Routing is a process of moving the data (packets) through an inter network. Routing performs the two basic tasks. Define the paths for a packet and then forward the packets on the basis of defined paths. Routing can also be defined as the communication between two or more logically and physical networks and this communication (packet transfer) is brought by a router. </p><p>First of all you should remember the keyboard shortcuts of a router. </p><p> </p><p>Keyboard Shortcuts </p><p> </p><p>CTRL-N - show next command </p><p>CTRL-P - show previous command </p><p>SHIFT-CTRL-6 – Break </p><p> </p><p>Configuring the Router </p><p> </p><p>You will be able to learn the basic commands for configuring a router. </p><p> </p><p>sh running-config - details the running configuration file (RAM) </p><p>sh startup-config - displays the configuration stored in NVRAM </p><p>setup - Will start the the automatic setup; the same as when you first boot the router </p><p>config t - use to execute configuration commands from the terminal </p><p>config mem - executes configuration commands stored in NVRAM; copies startup-config to running-config </p><p>config net - used to retrieve configuration info from a TFTP server </p><p>copy running-config startup-config - copies saved config in running config (RAM) to NVRAM or "write memory" for IOS under ver.11 </p><p>copy startup-config running-config - copies from non-volatile (NVRAM) to current running config (RAM) </p><p>boot system flash <put> - tells router which IOS file in flash to boot from </p><p>boot system tftp - tells router which IOS file on the tftp server to boot from </p><p>boot system rom - tell router to boot from ROM at next boot </p><p>copy flash tftp - Copies flash to tftp server </p><p>copy tftp flash - Restores flash from tftp server </p><p>copy run tftp - Copies the current running-config to tftp server </p><p>copy tftp run - Restores the running-config from tftp server </p><p> </p><p>General Commands </p><p> </p><p>Here is a list of the general commands. These are the basic level commands and most commonly used </p><p> </p><p>no shutdown - (enables the interface) </p><p>reload - restarts the router </p><p>sh ver - Cisco IOS version, uptime of router, how the router started, where system was loaded from, the interfaces the POST found, and the configuration register </p><p>sh clock - shows date and time on router </p><p>sh history - shows the history of your commands </p><p>sh debug - shows all debugging that is currently enabled </p><p>no debug all - turns off all debugging </p><p>sh users - shows users connected to router </p><p>sh protocols - shows which protocols are configured </p><p>banner motd # Your customized message here # - Set/change banner </p><p>hostname <give> - use to configure the hostname of the router </p><p>clear counters - clear interface counters </p><p>Privileged Mode commands of a router </p><p>Learn how to work in the privileged mode of a router. </p><p>enable - get to privileged mode </p><p>disable - get to user mode </p><p>enable password <give> - sets privileged mode password </p><p>enable secret <give> - sets encrypted privileged mode password </p><p>Setting Passwords on router </p><p>Here you will be able to learn how to set the password on a router. </p><p>enable secret <give> - set encrypted password for privileged access </p><p>enable password <give> - set password for privileged access (used when there is no enable secret and when using older software) </p><p> </p><p>Setting the password for console access: </p><p> </p><p>(config)#line console 0 </p><p>(config-line)#login </p><p>(config-line)#password <put> </p><p>Set password for virtual terminal (telnet) access (password must be set to access router through telnet): </p><p>(config)#line vty 0 4 </p><p>(config-line)#login </p><p>(config-line)#password <put> </p><p>Set password for auxiliary (modem) access: </p><p>(config)#line aux 0 </p><p>(config-line)#login </p><p>(config-line)#password <put> </p><p>Router Processes & Statistics </p><p>By these command you can see the statistics and different processes of the router. </p><p>sh processes - shows active processes running on router </p><p>sh process cpu - shows cpu statistics </p><p>sh mem - shows memory statistics </p><p>sh flash - describes the flash memory and displays the size of files and the amount of free flash memory </p><p>sh buffers - displays statistics for router buffer pools; shows the size of the Small, Middle, Big, Very Big, Large and Huge Buffers </p><p>sh stacks - shows reason for last reboot, monitors the stack use of processes and interrupts routines </p><p>IP Commands </p><p>Here is a list of the IP Commands </p><p>Configure IP on an interface: </p><p>int serial 0 </p><p>ip address 157.89.1.3 255.255.0.0 </p><p>int eth 0 </p><p>ip address 2008.1.1.4 255.255.255.0 </p><p>Other IP Commands: </p><p>sh ip route - view ip routing table </p><p>ip route <remote_network> <mask> <default_gateway> [administrative_distance] - configure a static IP route </p><p>ip route 0.0.0.0 0.0.0.0 <put> - sets default gateway </p><p>ip classless - use with static routing to allow packets destined for unrecognized subnets to use the best possible route </p><p>sh arp - view arp cache; shows MAC address of connected routers </p><p>ip address 2.2.2.2 255.255.255.0 secondary - configure a 2nd ip address on an interface </p><p>sh ip protocol </p><p>CDP Commands (Cisco Discovery Protocol uses layer 2 multicast over a SNAP-capable link to send data): </p><p>sh cdp neighbor - shows directly connected neighbors </p><p>sh cdp int - shows which interfaces are running CDP </p><p>sh cdp int eth 0/0 - show CDP info for specific interface </p><p>sh cdp entry <cdp> - shows CDP neighbor detail </p><p>cdp timer 120 - change how often CDP info is sent (default cdp timer is 60) </p><p>cp holdtime 240 - how long to wait before removing a CDP neighbor (default CDP holdtime is 180) </p><p>sh cdp run - shows if CDP turned on </p><p>no cdp run - turns off CDP for entire router (global config) </p><p>no cdp enable - turns off CDP on specific interface </p><p>IPX Commands </p><p>Enable IPX on router: </p><p>ipx routing </p><p>Configure IPX + IPX-RIP on an int: </p><p>int ser 0 </p><p>ipx network 4A </p><p>Other Commands: </p><p>sh ipx route - shows IPX routing table </p><p>sh ipx int e0 - shows ipx address on int </p><p>sh ipx servers - shows SAP table </p><p>sh ipx traffic - view traffic statistics </p><p>debug ipx routing activity - debugs IPS RIP packets </p><p>debug ipx sap - debugs SAP packets </p><p>Routing Protocols </p><p>RIP, IGPR and OSPF are the routing protocols and here is a list of the commands for the working on the routing protocols. </p><p>Configure RIP: </p><p>router rip </p><p>network 157.89.0.0 </p><p>network 208.1.1.0 </p><p>Other RIP Commands: </p><p>debug ip rip - view RIP debugging info </p><p>Configure IGRP: </p><p>router IGRP 200 </p><p>network 157.89.0.0 </p><p>network 208.1.1.0 </p><p>Other IGRP Commands: </p><p>debug ip igrp events - view IGRP debugging info </p><p>debug ip igrp transactions - view IGRP debugging info </p><p>Access Lists </p><p>Here is a list of the Access list command of a router. </p><p>sh ip int ser 0 - use to view which IP access lists are applies to which int </p><p>sh ipx int ser 0 - use to view which IPX access lists are applies to which int </p><p>sh appletalk int ser 0 - use to view which AppleTalk access lists are applies to which int </p><p>View access lists: </p><p>sh access-lists </p><p>sh ip access-lists </p><p>sh ipx access-lists </p><p>sh appletalk access-lists </p><p>Apply standard IP access list to int eth 0: </p><p>access-list 1 deny 200.1.1.0 0.0.0.255 </p><p>access-list 1 permit any </p><p>int eth 0 </p><p>ip access-group 1 in </p><p>Apply Extended IP access list to int eth 0: </p><p>access-list 100 deny tcp host 1.1.1.1 host 2.2.2.2 eq 23 </p><p>access-list 100 deny tcp 3.3.3.0 0.0.0.255 any eq 80 </p><p>int eth 0 </p><p>ip access-group 100 out </p><p>Apply Standard IPX access list to int eth 0: </p><p>access-list 800 deny 7a 8000 </p><p>access-list 800 permit -1 </p><p>int eth 0 </p><p>ipx access-group 800 out </p><p>Apply Standard IPX access list to int eth 0: </p><p>access-list 900 deny sap any 3378 -1 </p><p>access-list 900 permit sap any all -1 </p><p>int eth 0 </p><p>ipx access-group 900 out </p><p>Wan Configurations Commands </p><p>Networking over WAN is the main functionality of a router. The most common use of a router is for the WAN connectivity. Here is a list of the commands for the different methods of the WAN connectivity. </p><p>PPP Configuration </p><p>Point to point protocol is a method for the WAN connectivity and you will find here some commands of PPP. </p><p>encapsulation pppppp authentication <chap> </p><p>ppp chap hostname <put> </p><p>ppp pap sent-username <put> </p><p>sh int ser 0 - use to view encapsulation on the interface </p><p>Frame-Relay Configuration </p><p>One of the methods for the WAN connectivity is the Frame Relay. Find here some basic commands for the WAN connectivity through Frame Relay. </p><p>encapsulation frame-relay ietf - use IETF when setting up a frame-relay network between a Ciscorouter and a non-Cisco router </p><p>frame-relay lmi-type ansi - LMI types are Cisco, ANSI, Q933A; Cisco is the default; LMI type is auto-sensed in IOS v11.2 and up </p><p>frame-relay map ip 3.3.3.3 100 broadcast - if inverse ARP won't work, map Other IP to Your DLCI # (local) </p><p>keep alive 10 - use to set keep alive </p><p>sh int ser 0 - use to show DLCI, LMI, and encapsulation info </p><p>sh frame-relay pvc - shows the configured DLCI's; shows PVC traffic stats </p><p>sh frame-relay map - shows route mapssh frame-relay lmi - shows LMI info </p><p>Miscellaneous Commands </p><p>In the last but not least here is a list of the some miscellaneous and useful commands </p><p>sh controller t1 - shows status of T1 lines </p><p>sh controller serial 1 - use to determine if DCE or DTE device </p><p>(config-if)#clock rate 6400 - set clock on DCE (bits per second) </p><p>(config-if)#bandwidth 64 - set bandwidth (kilobits)</p></blockquote><p></p>
[QUOTE="gazaly, post: 850267, member: 10197"] [SIZE=5][B] Router Commands Overview [/B][/SIZE] In this Article you will learn about the router commands, configurations, privileged mode commands, routing protocols, cisco labs and network configurations. There are hundreds of basic and advance level commands of a router. It is not easy to remember all the commands. But some commands are frequently used and can be remembered with some practice. I have provided a list of the most commonly used commands based on their features and usage. You will find here some basic terminology of a router. Routing: Routing is a process of moving the data (packets) through an inter network. Routing performs the two basic tasks. Define the paths for a packet and then forward the packets on the basis of defined paths. Routing can also be defined as the communication between two or more logically and physical networks and this communication (packet transfer) is brought by a router. First of all you should remember the keyboard shortcuts of a router. Keyboard Shortcuts CTRL-N - show next command CTRL-P - show previous command SHIFT-CTRL-6 – Break Configuring the Router You will be able to learn the basic commands for configuring a router. sh running-config - details the running configuration file (RAM) sh startup-config - displays the configuration stored in NVRAM setup - Will start the the automatic setup; the same as when you first boot the router config t - use to execute configuration commands from the terminal config mem - executes configuration commands stored in NVRAM; copies startup-config to running-config config net - used to retrieve configuration info from a TFTP server copy running-config startup-config - copies saved config in running config (RAM) to NVRAM or "write memory" for IOS under ver.11 copy startup-config running-config - copies from non-volatile (NVRAM) to current running config (RAM) boot system flash <put> - tells router which IOS file in flash to boot from boot system tftp - tells router which IOS file on the tftp server to boot from boot system rom - tell router to boot from ROM at next boot copy flash tftp - Copies flash to tftp server copy tftp flash - Restores flash from tftp server copy run tftp - Copies the current running-config to tftp server copy tftp run - Restores the running-config from tftp server General Commands Here is a list of the general commands. These are the basic level commands and most commonly used no shutdown - (enables the interface) reload - restarts the router sh ver - Cisco IOS version, uptime of router, how the router started, where system was loaded from, the interfaces the POST found, and the configuration register sh clock - shows date and time on router sh history - shows the history of your commands sh debug - shows all debugging that is currently enabled no debug all - turns off all debugging sh users - shows users connected to router sh protocols - shows which protocols are configured banner motd # Your customized message here # - Set/change banner hostname <give> - use to configure the hostname of the router clear counters - clear interface counters Privileged Mode commands of a router Learn how to work in the privileged mode of a router. enable - get to privileged mode disable - get to user mode enable password <give> - sets privileged mode password enable secret <give> - sets encrypted privileged mode password Setting Passwords on router Here you will be able to learn how to set the password on a router. enable secret <give> - set encrypted password for privileged access enable password <give> - set password for privileged access (used when there is no enable secret and when using older software) Setting the password for console access: (config)#line console 0 (config-line)#login (config-line)#password <put> Set password for virtual terminal (telnet) access (password must be set to access router through telnet): (config)#line vty 0 4 (config-line)#login (config-line)#password <put> Set password for auxiliary (modem) access: (config)#line aux 0 (config-line)#login (config-line)#password <put> Router Processes & Statistics By these command you can see the statistics and different processes of the router. sh processes - shows active processes running on router sh process cpu - shows cpu statistics sh mem - shows memory statistics sh flash - describes the flash memory and displays the size of files and the amount of free flash memory sh buffers - displays statistics for router buffer pools; shows the size of the Small, Middle, Big, Very Big, Large and Huge Buffers sh stacks - shows reason for last reboot, monitors the stack use of processes and interrupts routines IP Commands Here is a list of the IP Commands Configure IP on an interface: int serial 0 ip address 157.89.1.3 255.255.0.0 int eth 0 ip address 2008.1.1.4 255.255.255.0 Other IP Commands: sh ip route - view ip routing table ip route <remote_network> <mask> <default_gateway> [administrative_distance] - configure a static IP route ip route 0.0.0.0 0.0.0.0 <put> - sets default gateway ip classless - use with static routing to allow packets destined for unrecognized subnets to use the best possible route sh arp - view arp cache; shows MAC address of connected routers ip address 2.2.2.2 255.255.255.0 secondary - configure a 2nd ip address on an interface sh ip protocol CDP Commands (Cisco Discovery Protocol uses layer 2 multicast over a SNAP-capable link to send data): sh cdp neighbor - shows directly connected neighbors sh cdp int - shows which interfaces are running CDP sh cdp int eth 0/0 - show CDP info for specific interface sh cdp entry <cdp> - shows CDP neighbor detail cdp timer 120 - change how often CDP info is sent (default cdp timer is 60) cp holdtime 240 - how long to wait before removing a CDP neighbor (default CDP holdtime is 180) sh cdp run - shows if CDP turned on no cdp run - turns off CDP for entire router (global config) no cdp enable - turns off CDP on specific interface IPX Commands Enable IPX on router: ipx routing Configure IPX + IPX-RIP on an int: int ser 0 ipx network 4A Other Commands: sh ipx route - shows IPX routing table sh ipx int e0 - shows ipx address on int sh ipx servers - shows SAP table sh ipx traffic - view traffic statistics debug ipx routing activity - debugs IPS RIP packets debug ipx sap - debugs SAP packets Routing Protocols RIP, IGPR and OSPF are the routing protocols and here is a list of the commands for the working on the routing protocols. Configure RIP: router rip network 157.89.0.0 network 208.1.1.0 Other RIP Commands: debug ip rip - view RIP debugging info Configure IGRP: router IGRP 200 network 157.89.0.0 network 208.1.1.0 Other IGRP Commands: debug ip igrp events - view IGRP debugging info debug ip igrp transactions - view IGRP debugging info Access Lists Here is a list of the Access list command of a router. sh ip int ser 0 - use to view which IP access lists are applies to which int sh ipx int ser 0 - use to view which IPX access lists are applies to which int sh appletalk int ser 0 - use to view which AppleTalk access lists are applies to which int View access lists: sh access-lists sh ip access-lists sh ipx access-lists sh appletalk access-lists Apply standard IP access list to int eth 0: access-list 1 deny 200.1.1.0 0.0.0.255 access-list 1 permit any int eth 0 ip access-group 1 in Apply Extended IP access list to int eth 0: access-list 100 deny tcp host 1.1.1.1 host 2.2.2.2 eq 23 access-list 100 deny tcp 3.3.3.0 0.0.0.255 any eq 80 int eth 0 ip access-group 100 out Apply Standard IPX access list to int eth 0: access-list 800 deny 7a 8000 access-list 800 permit -1 int eth 0 ipx access-group 800 out Apply Standard IPX access list to int eth 0: access-list 900 deny sap any 3378 -1 access-list 900 permit sap any all -1 int eth 0 ipx access-group 900 out Wan Configurations Commands Networking over WAN is the main functionality of a router. The most common use of a router is for the WAN connectivity. Here is a list of the commands for the different methods of the WAN connectivity. PPP Configuration Point to point protocol is a method for the WAN connectivity and you will find here some commands of PPP. encapsulation pppppp authentication <chap> ppp chap hostname <put> ppp pap sent-username <put> sh int ser 0 - use to view encapsulation on the interface Frame-Relay Configuration One of the methods for the WAN connectivity is the Frame Relay. Find here some basic commands for the WAN connectivity through Frame Relay. encapsulation frame-relay ietf - use IETF when setting up a frame-relay network between a Ciscorouter and a non-Cisco router frame-relay lmi-type ansi - LMI types are Cisco, ANSI, Q933A; Cisco is the default; LMI type is auto-sensed in IOS v11.2 and up frame-relay map ip 3.3.3.3 100 broadcast - if inverse ARP won't work, map Other IP to Your DLCI # (local) keep alive 10 - use to set keep alive sh int ser 0 - use to show DLCI, LMI, and encapsulation info sh frame-relay pvc - shows the configured DLCI's; shows PVC traffic stats sh frame-relay map - shows route mapssh frame-relay lmi - shows LMI info Miscellaneous Commands In the last but not least here is a list of the some miscellaneous and useful commands sh controller t1 - shows status of T1 lines sh controller serial 1 - use to determine if DCE or DTE device (config-if)#clock rate 6400 - set clock on DCE (bits per second) (config-if)#bandwidth 64 - set bandwidth (kilobits) [/QUOTE]
Insert quotes…
Verification
Payakata winadi keeyak tibeda?
Post reply
Top
Bottom