Thursday, 13 September 2012

IP and IPx Commands


IP and IPx Commands

0

IP Commands :


Following are the link of 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 gateway of the last resort here> – 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

IPX Commands


Enable IPX on router:
ipx routing
Configure IPX + IPX-RIP on an int:
int ser 0
ipx network 4A

Router Commands, Router Configuration and other commonly used Commands of Router


Router Commands, Router Configuration and other commonly used Commands of Router

0

Overview of Router Commands:

We have read about routers, now is the time that we should learn few important commands of routers, These commands will make router certain functions. You will learn configuration of router, setting of privilege more commands, different protocols of routing, configuration of network and Cisco labs.Routers can be operated with basic and advance commands for different operations. Keeping all of these commands can never be easy therefore we are going to discuss those commands which are most commonly used to perform common functions for different operations. However before we commence on advance topic of router, it is better that we discuss about router related terminology which is commonly used.

Routing:

Transferring of data packets from one device to another with help of inter network.
In technical definition, routing is the process of communication between two or more physical networks and logical networks using router.
Router performs to most important but basic tasks, first it defines the path for data to be sent and then forward that data to defined path before we move on to configuration and commands of router.

Keyboard Shortcuts:

CTRL-N                                  – For showing next command
CTRL-P                                   – For showing command executed previously
SHIFT-CTRL-6                    – Break

Configuring the Router :

These are few 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 – Automatic setup will start as if router is booting for the first time,
config t –It execute configuration commands from terminal
config mem – executes configuration commands stored in NVRAM; copies startup-config to running-config
config net -It retrieve configuration information 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 file filename here> – It 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 – It makes router boot from ROM
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 the list for most common commands for router.
reload – Command to restart the router
sh ver – It is 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 – Display date and time on router
sh history – Display the history of your previous commands
sh debug – display all debugging that is currently enabled
no debug all – turns off all debugging
sh users – Display users connected to router
sh protocols – Display configured protocols. banner motd # Your message # – Set/change banner
hostname <give router name> – use to configure the hostname of the router
clear counters – clear interface counters
Privileged Mode commands of a router
Following commands are used to work in the privileged mode of a router.
enable – get to privileged mode
disable – get to user mode
enable password < password here> – sets privileged mode password
enable secret < password here> – sets encrypted privileged mode password
Commands for Passwords settings on router
Most commonly used password related commands for router
enable secret < password here> – set encrypted password for privileged access
enable password < password here> – 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 <password here>
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 password here>
Set password for auxiliary (modem) access:
(config)#line aux 0
(config-line)#login
(config-line)#password <put password here>
Router Processes & Statistics :
Following are the commands which will display statistics and different processes of the router.
sh processes – Displays active processes running on router
sh process cpu – Display statistics for central processing unit (CPU)
sh mem – Display statistics for memory
sh flash – Description of the flash memory, show the size of files and the amount of free flash memory
sh buffers – Displays router buffer pools statistics; Displays size of the Small, Middle, Big, Very Big, Large and Huge Buffers
sh stacks – Displays reason for last reboot, monitors the stack use of processes and interrupts routines

Cisco Discovery Protocol uses layer 2 multicast over a SNAP-capable link to send data CDP Commands:
sh cdp neighbor – Display directly connected neighbors
sh cdp int – Display which interfaces are running CDP
sh cdp int eth 0/0 – Display CDP information for specific interface
sh cdp entry <CPD neighbor here> – Display 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 – Displays if CDP turned on
no cdp run – turns off CDP for entire router (global config)
no cdp enable – turns off CDP on specific interface
Other Commands:
sh ipx route – Display IPX routing table
sh ipx int e0 – Display ipx address on int
sh ipx servers – Display SAP table
sh ipx traffic – Show traffic statistics
debug ipx routing activity – debugs IPS RIP packets
debug ipx sap – debugs SAP packets
Routing Protocols
There are three routing protocols RIP, IGPR and OSPF, and below is of commands for 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 :
Below is list commands of access list of routers
.
sh ip int ser 0 – Display which IP access lists are applies to which int
sh ipx int ser 0 – Display which IPX access lists are applies to which int
sh appletalk int ser 0 – Display 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
Router is mainly used for networking using WAN, WAN is the network for which routers are the most obvious choice by network developers. Below is list of commands of methods of WAN connectivity.
PPP Configuration
Point to point protocol is one of the most used methods for the WAN connectivity; few of the commands of PPP mostly used are as follow.
encapsulation pppppp authentication <chap or pap here>
ppp chap hostname < router name here>
ppp pap sent-username <user name here>
sh int ser 0 – use to view encapsulation on the interface
Frame-Relay Configuration
One of the other methods for the WAN connectivity is the Frame Relay. Few some basic of commands for the WAN connectivity using Frame Relay method.
encapsulation frame-relay ietf – use IETF when setting up a frame-relay network between a Cisco router 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
Other Useful Commands 
List of some of miscellaneous and useful commands which can be used for useful Operations.
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)

Microsoft Windows Shortcut Keys


Microsoft Windows Shortcut Keys

0
This is a listing of some common shortcut keys in different versions Microsoft Windows.
Some shortcut keys below are not supported in all versions of Windows.
Use at your own risk.
Shortcut Key
Supported Window Versions
Short Key Description
Alt + (double-click)95, 98, ME, NT, 2000, XP, VistaOpen Properties dialog of selected item.
Alt + Enter95, 98, ME, NT, 2000, XP, VistaOpens properties window of selected item.
Alt + Esc95, 98, ME, NT, 2000, XP, VistaSwitch Between open tasks available on the taskbar.
Alt + F495, 98, ME, NT, 2000, XP, VistaClose the top (focused) window.
Alt + Tab95, 98, ME, NT, 2000, XP, VistaSwitch between open windows.
Alt + Tab + Shift95, 98, ME, NT, 2000, XP, VistaSwitch between open windows, backward.
Ctrl + Alt + Delete (or Del)95, 98, ME, NT, 2000, XP, VistaBring up the Windows Task Manager, or reboot computer.
Ctrl + Esc95, 98, ME, NT, 2000, XP, VistaBring up the Windows Start menu.
Ctrl + ‘+’ (‘+’ key on the keypad)98, ME, NT, 2000, XP, VistaAutofit the widths of all columns (if available) in current window.
Ctrl + F495, 98, ME, NT, 2000, XP, VistaClose sub window/tab.
Ctrl + Tab95, 98, ME, NT, 2000, XP, VistaSwitch between existing tabs (within a window).
Ctrl + Tab + Shift95, 98, ME, NT, 2000, XP, VistaSwitch between existing tabs (within a window), backward
F195, 98, ME, NT, 2000, XP, VistaOpen Help for Windows or focused application.
F295, 98, ME, NT, 2000, XP, VistaRename.
F395, 98, ME, NT, 2000, XP, VistaFind/Search.
F495, 98, ME, NT, 2000, XP, VistaSelect drives or display the list of drives
F595, 98, ME, NT, 2000, XP, VistaRefresh.
F695, 98, ME, NT, 2000, XP, VistaSwitch focus to the address bar (if exists).
F1095, 98, ME, NT, 2000, XP, VistaSwitch focus to the top menu bar.
Shift + F1095, 98, ME, NT, 2000, XP, VistaSame as mouse right-click on the select item.
Print Screen95, 98, ME, NT, 2000, XP, VistaCapture a screenshot of the entire desktop to clipboard.
Print Screen + Alt95, 98, ME, NT, 2000, XP, VistaCapture a screenshot of just the top(focused) window to clipboard.
Shift + Delete (or Del)95, 98, ME, NT, 2000, XP, VistaPermanently delete selected file(s)/folder(s) (bypass recycle bin)
Shift (hold while inserting an audio CD to drive)95, 98, ME, NT, 2000, XP, VistaPrevent autoplay.
* (keypad) on Windows Explorer.95, 98, ME, NT, 2000, XP, VistaExpand all sub-directories from the selected item.
+ (keypad) on Windows Explorer.95, 98, ME, NT, 2000, XP, VistaExpand only the first level of selected item.
- (keypad) on Windows Explorer.95, 98, ME, NT, 2000, XP, VistaCollapse
Most keyboards have a Windows Key (key with a Windows icon). This key provides additional shortcuts for Microsoft Windows. Below is a list of the shortcut keys by combining the Windows key and other keys……
Shortcut Keys
Description
WINDOWS-KEYBring up the Windows Start menu.
WINDOWS-KEY + F1Bring up the Windows Help.
WINDOWS-KEY + eOpen Microsoft Explorer.
WINDOWS-KEY + fWindows Search.
WINDOWS-KEY + Ctrl + fSearch for computers
WINDOWS-KEY + dMinimizes all and bring up desktop, or restore all
WINDOWS-KEY + lLock the computer (Windows XP & newer).
WINDOWS-KEY + mMinimizes all windows.
WINDOWS-KEY + Shift + MRestore all. Opposite with WINDOWS-KEY + M and WINDOWS-KEY + D.
WINDOWS-KEY + rOpen the run window.
WINDOWS-KEY + uUtility Manager.
WINDOWS-KEY + TabCycle through the programs on task bar.
WINDOWS-KEY + Pause/BreakOpen the System Properties window.

Basic Shortcut Keys

The followings are some basic PC shortcut keys that are supported in most IBM compatible computers. They are also supported in most application software.
Use at your own risk.
Shortcut Keys
Supported Window Versions
Description
Alt + e95, 98, ME, NT, 2000, XP, VistaPull down the top Edit menu.
Alt + f95, 98, ME, NT, 2000, XP, VistaPull down the top File menu
Ctrl + a95, 98, ME, NT, 2000, XP, VistaSelect all text.
Ctrl + c95, 98, ME, NT, 2000, XP, VistaCopy selected item(s) (to clipboard).
Ctrl + f95, 98, ME, NT, 2000, XP, VistaFind.
Ctrl + v95, 98, ME, NT, 2000, XP, VistaPaste copied item(s) from clipboard
Ctrl + x95, 98, ME, NT, 2000, XP, VistaCut.
Ctrl + Ins95, 98, ME, NT, 2000, XP, VistaSame as Ctrl + c
Ctrl + (left arrow)95, 98, ME, NT, 2000, XP, VistaMove one word to the left at a time.
Ctrl + (right arrow)95, 98, ME, NT, 2000, XP, VistaMove one word to the right at a time.
Shift + Ins95, 98, ME, NT, 2000, XP, VistaSame as Ctrl + v
Shift + Delelte (or Del)95, 98, ME, NT, 2000, XP, VistaCut. Or permanently delete selected item(s) on Windows Explorer.
F195, 98, ME, NT, 2000, XP, VistaHelp.
Home95, 98, ME, NT, 2000, XP, VistaJump to the beginning of the line or page.
Ctrl + Home95, 98, ME, NT, 2000, XP, VistaJump to the beginning of the document or page.
End95, 98, ME, NT, 2000, XP, VistaJump to the end of the line or page.
Ctrl + End95, 98, ME, NT, 2000, XP, Vistaump to the end of the document or page.
Shift + Home95, 98, ME, NT, 2000, XP, VistaSet selection (highlight) from current position to beginning of the line or page.
Shift + End95, 98, ME, NT, 2000, XP, VistaSet selection (highlight) from current position to end of the line or page.
Shift + (left arrow)95, 98, ME, NT, 2000, XP, VistaSet selection (highlight) from current position to the left, one character at a time.
Shift + (right arrow)95, 98, ME, NT, 2000, XP, VistaSet selection (highlight) from current position to the right, one character at a time.
Shift + (down arrow)95, 98, ME, NT, 2000, XP, VistaSet selection (highlight) from current position to the next line down.
Shift + (up arrow)95, 98, ME, NT, 2000, XP, Vista
Set selection (highlight) from current position to the next line up.

Internet Connection Sharing on Windows XP

This trick shows you how to share your internet connections on multiple computers within a workgroup with Windows XP. Windows XP has a built-in feature that called “Internet Connection Sharing” (ICS) that allows home users to share their internet connections on multiple computers.
If you are not familiar with the network configurations, the easiest way to share your internet connection is to purchase a router or hub. Use this trick only if you don’t have a router, or don’t want to use a router, or if you just want to try out the feature.
A simple way to understand this feature is, you are making your host computer (the computer directly connects to the internet) functioning as a router for other computers.
What do you need?

  • A “Host” computer that running Windows XP. This computer must have at least TWO (2) network adapters. One adapter – let’s call it “Adapter #1” – connects to the internet and another, “Adapter #2“, connects to a hub or directly to other computers.
  • Client computer(s), which run any version of Windows. A client computer can be connected to the host computer directly by a cross-over cable or indirectly through a hub.
  • This trick assumes that the host computer is connected to the internet and you are able to access the internet on this computer.
  1. Logon the host computer as Administrator.
  1. Click Start >> Control Panel.
  1. Click Network and Internet Connections.
  1. Click Network Connections.
  1. Right-click the connection that you use to connect to the internet (the connection with Adapter #1). This connection can be either a high-speed internet connection or a dial-up connection.
  1. Click Properties.
  1. Click Advanced tab.
  1. Under Internet Connection Sharingselect the Allow other network users to connect through this computer’s Internet connection check box.
  1. If you are sharing a dial-up Internet connection, select the Establish a dial-up connection whenever a computer on my network attempts to access the Internet check box if you want to permit your computer to automatically connect to the Internet.
  1. Click OK. You’ll reieve the following message:
  1. When Internet Connection Sharing is enabled, your LAN adapter will be set to use IP address 192.168.0.1. Your computer may lose connectivity with other computers on your network. If these other computers have static IP addresses, it is a good idea to set them to obtain their IP addresses automatically. Are you sure you want to enable Internet Connection Sharing?
  1. Click Yes.
  1. Configure TCP/IP Automatic IP
  1. Configure Internet Connection
The following procedures are for Windows XP client computers.
  1. Log on to the client computer as Administrator or as Owner.
  1. Click Start >> Control Panel.
  1. Click Network and Internet Connections.
  1. Click Network Connections.
  1. Right-click Local Area Connection, and then click Properties.
  1. Click the General tab, click Internet Protocol (TCP/IP) in the This connection uses the following items list, and then click Properties.
  1. In the Internet Protocol (TCP/IP) Properties dialog box, click Obtain an IP address automatically (if it is not already selected), and then click OK.
  1. Click Start >> Control Panel
  1. Click Network and Internet Connections.
  1. Click Internet Options.
  1. In the Internet Properties dialog box, click the Connections tab.
  1. Click the Setup button. The New Connection Wizard starts.
  1. On the Welcome to the New Connection Wizard page, click Next.
  1. Click Connect to the Internet, and then click Next.
  1. Click Set up my connection manually, and then click Next.
  1. Click Connect using a broadband connection that is always on, and then click Next.
  1. On the Completing the New Connection Wizard page, click Finish.
  1. Exit Control Panel and test the internet. You might need to restart the computer.

Configure the Host Computer
Configure the Client Computer(s)
To use the shared connection from the Host computer, a client computer must be configured with “Automatic IP address”. The main configurations are:
The steps for the above two configurations are vary on different versions of Windows.