Sunday, January 23, 2011

Cisco IOS Router Commands

CISCO IOS Router Commands

Routing with Cisco 2500 and 1000 Series for LAN-ISDN Service

Commands - General

There are 3 different modes of operation within the Cisco IOS.
  1. Disabled mode
  2. Enabled mode
  3. Configuration mode
In the Disabled mode you can use a limited number of commands. This is used 
primarily to monitor the router. The Enabled mode is used to show configuration 
information, enter the configuration mode, and make changes to the configuration.
The Configuration mode is used to enter and update the runtime configuration.
To get a list of the commands for the cisco type '?' at the prompt. To get further 
information about any command, type the command followed by a '?'.

clear
Reset functions
clock Manage the system clock
configure Enter configuration mode
debug Debugging functions (see also 'undebug')
disable Turn off privileged commands
enable Turn on privileged commands
erase Erase flash or configuration memory
exit Exit from the EXEC
help Description of the interactive help system
login Log in as a particular user
logout Exit from the EXEC
no Disable debugging functions
ping Send echo messages
reload Halt and perform a cold restart
setup Run the SETUP command facility
show Show running system information
telnet Open a telnet connection
terminal Set terminal line parameters
test Test subsystems, memory, and interfaces
traceroute Trace route to destination
tunnel Open a tunnel connection
undebug Disable debugging functions (see also 'debug')
verify Verify checksum of a Flash file
write Write running configuration to memory, network, or terminal

show
access-lists List access lists
arp ARP table
buffers Buffer pool statistics
configuration Contents of Non-Volatile memory
controllers Interface controller status
debugging State of each debugging option
dialer Dialer parameters and statistics
extended Extended Interface Information
flash System Flash information
flh-log Flash Load Helper log buffer
history Display the session command history
hosts IP domain-name, lookup style, name servers, and host table
interfaces Interface status and configuration
ip IP information
isdn ISDN information
line TTY line information
logging Show the contents of logging buffers
memory Memory statistics
privilege Show current privilege level
processes Active process statistics
protocols Active network routing protocols
queue Show queue contents
queueing Show queueing configuration
reload Scheduled reload information
route-map route-map information
running-config Current operating configuration
sessions Information about Telnet connections
smf Software MAC filter
stacks Process stack utilization
startup-config Contents of startup configuration
subsys Show subsystem information
tcp Status of TCP connections
terminal Display terminal configuration parameters
users Display information about terminal lines
version System hardware and software status

View the Software Version

Cisco>en
Cisco#wr term    <--- Shows the running configuration    
Building configuration...
Current configuration:
!
version 11.2
no service udp-small-servers
no service tcp-small-servers
!
hostname Cisco
!
interface Ethernet0
 ip address 192.168.1.1 255.255.255.0
!
interface Serial0
 ip address 192.168.6.1 255.255.255.0
 encapsulation frame-relay
 frame-relay lmi-type ansi
!
interface Serial1
 ip address 192.168.4.2 255.255.255.0
 encapsulation frame-relay
 bandwidth 1536
 keepalive 5
 frame-relay map ip 192.168.4.1 101 IETF
!
router rip
 version 2
 network 192.168.4.0
 network 192.168.6.0
 neighbor 192.168.6.2
 neighbor 192.168.4.1
!
ip classless
ip route 0.0.0.0 0.0.0.0 192.168.6.2
ip route 0.0.0.0 0.0.0.0 192.168.4.1
!
line con 0
line aux 0
line vty 0 4
login
!
end

View the Ethernet IP

Router#wr term
This will show the running configuration.
Within the configuration, you will see an interface ethernet 0 section:

interface Ethernet0
ip address 38.150.93.1 255.255.255.0
no ip directed-broadcast

View the Serial IP

Router#wr term
Within the configuration, you will see an interface serial 0 section:

interface Serial0
ip address 38.21.10.100 255.255.255.0
ip broadcast-address 38.21.10.255
ip access-group 106 in
encapsulation frame-relay
bandwidth 56
no fair-queue
frame-relay map ip 38.21.10.1 500 IETF

View the Default Route

Router#wr term
Within the configuration, you will see an ip route section. 

In the ip route section, look for a route:
ip route 0.0.0.0 0.0.0.0 38.167.29.1
The last ip address is the POP ip.

View the Filters

Router#wr term
Under interface serial 0, look for:

ip access-group 104 in
ip access-group 105 out

This means that access-group 104 is the inbound filter set and
access-group 105 is the outbound filter set.
Then, continue to look in the configuration for the access-list statements:

(Example access-list statements)
access-list 104 deny   ip 38.166.101.0 0.0.0.255 any
access-list 104 permit tcp any any established
access-list 104 permit tcp any eq ftp-data any gt 1023
access-list 104 permit udp any eq domain any gt 1023
access-list 104 permit udp any eq domain any eq domain
access-list 104 permit icmp any any
access-list 104 permit udp any eq snmp any gt 1023
access-list 105 deny   ip any 38.166.101.0 0.0.0.255
access-list 105 permit tcp any any established
access-list 105 permit tcp any any eq ftp
access-list 105 deny   udp any eq netbios-ns any
access-list 105 deny   udp any eq netbios-dgm any
access-list 105 permit ip any any

View the Bandwidth

Router#wr term
Within the config, you will see an interface serial 0 section:

interface Serial0
ip address 38.21.10.100 255.255.255.0
ip broadcast-address 38.21.10.255
ip access-group 106 in
encapsulation frame-relay
bandwidth 56
no fair-queue
frame-relay map ip 38.21.10.1 500 IETF

Add a Static Route

Cisco#config t
Enter configuration commands, one per line.  End with CNTL/Z.
Cisco(config)#
Cisco#config t
Enter configuration commands, one per line.  End with CNTL/Z.
Cisco(config)#
ip route 

DEST.DEST.DEST.DEST MASK.MASK.MASK.MASK GATE.GATE.GATE.GATE
where: DEST.DEST.DEST.DEST = The destination network the static route is for
           MASK.MASK.MASK.MASK = The subnet mask of the destination network
           GATE.GATE.GATE.GATE = The gateway of the static route
Example route statement:
ip route 38.222.75.0 255.255.255.0 38.20.5.1
Cisco(config)#^Z (hit  z)

Write the entry to memory:
Cisco#wr mem
Building configuration...
[OK]

Change the Dial Number

Type en to put the router in enable mode:
test.com>en

The password should be the same as the one used to telnet in.
 Password:
To view the router's configuration, type:
test.com#show config

There will be a line in the configuration that says:
dialer map IP 38.1.1.1 speed 64 name LD3330 2707000

The 2707000 is the dial number.

NOTE: Record what interface the dialer map IP line is under because you 
 will need to use that interface when changing the number.

Type config t to configure from terminal.
test.com#config t

Enter configuration commands, one per line.  End with CNTL/Z.
Enter the interface that the dialer map IP line is under:
test.com(config)#interface BRI0

Add in the new dialer map IP line with the new phone number:
test.com(config)#dialer map IP 38.1.1.1 speed 64 name LD3330 [new number]

Now, remove the old dialer map IP line.
To remove a line, type no and then the line.
For example, to remove the old dialer map IP, type:
test.com(config)#no dialer map IP 38.1.1.1 speed 64 name LD3330 2707020

Now leave config mode:
test.com(config)# [control] z

Save changes:

test.com# write mem
Building configuration...
[OK]

Verify the new number is in the config:

test.com#show config
The new number should be in the dialer map IP line.

Turn Filters On and Off

To turn the filters off:

Router#configure terminal
Router(config)#interface Serial0
Router(config-if)#no ip access-group 104 in
Router(config-if)#no ip access-group 105 out
Router(config-if)# Hit CTRL-Z
Router#wr mem
Building configuration...
[OK]
Router#

To turn the filters on:

Router#configure terminal
Router(config)#interface Serial0
Router(config-if)#ip access-group 104 in
Router(config-if)#ip access-group 105 out
Router(config-if)# Hit CTRL-Z
Router#wr mem
Building configuration...
[OK]
Router#

Ping from the Router

Cisco#ping 
Example:
Cisco#ping 38.8.14.2
Source: http://www.tomax7.com/mcse/cisco_commands.htm

Friday, January 14, 2011

Saturday, December 25, 2010

Sunday, December 12, 2010

My NEW: The Blue Eyed Boy

Maruti's new improved Wagon R will be at me house soon. The new Maruti Wagon R : 'The Blue Eyed Boy' . The new Wagon R will be powered by BS-IV compliant 998cc K-series engine developing 67PS of maximum power. It claims to give a Mileage of 18.9 kmpl of petrol in standard conditions. It also comes with a new transmission with cable-type gearshift, and a superior suspension technology.

Well all this technical stuff most of it I still don't understand. I don't know what I will do. Let hope for the best...


Friday, November 26, 2010

Healing Power of Homeopathy

If anyone Googles then this is what he/she will get the defn: of Homeopathy:

Homeopathy (also spelled homoeopathy or homœopathy) is a form of alternative medicine, first proposed by German physician Samuel Hahnemann in 1796, in which practitioners use highly diluted preparations. Based on an ipse dixit axiom formulated by Hahnemann, which he called the law of similars, preparations which cause certain symptoms in healthy individuals are given in diluted form to patients exhibiting similar symptoms. Homeopathic remedies are prepared by serial dilution with shaking by forceful striking, which homeopaths term succussion, after each dilution under the assumption that this increases the effect. Homeopaths call this process potentization. Dilution often continues until none of the original substance remains. Apart from the symptoms, homeopaths use aspects of the patient's physical and psychological state in recommending remedies. Homeopathic reference books known as repertories are then consulted, and a remedy is selected based on the totality of symptoms. Homeopathic remedies are, with rare exceptions, considered safe though homeopathy has been criticized for putting patients at risk due to advice against conventional medicine such as vaccinations, anti-malarial drugs, and antibiotics.

Source: http://en.wikipedia.org/wiki/Homeopathy

But I have seen it with my own eyes. My father is suffering from sever Leg pain. He was diagnosed with DDD of Lumbar. We tried out normal medicine (Allopathic Medicine) but to our luck it did'nt cure him well. Then we shifted to Homeopathy. Under the able guidance of Dr. Tuhin Kanti Chkrbarti, my father pain has reduced considerably. He is now able to walk little freely. But this medicine does not give instance relief so he has to have the medicine for some time. But what the hell he is able to walk like he used to do earlier. 

THATS ALL WE WANTED.

Wednesday, November 3, 2010

Safe Diwali Celebrations: Fire-Safety Tips For Kids With Fireworks

Safe Diwali Celebrations: Fire-Safety Tips For Kids With Fireworks

By Vipula Waghmare

Diwali, the festival of lights, brings fun and togetherness. For children, fireworks, new clothes and sweets make this festival the most eagerly awaited of the year.
Unfortunately, injuries from fireworks spoil the fun for many families – and though Diwali is a holiday for most of us, fire departments and hospitals around the country are on constant alert to tackle the various mishaps.
Each year brings a fresh crop of cases involving loss of eyesight and serious burns and injuries caused by fireworks. Most of these cases involve children.
  • On the 5th day of Diwali 2008, a 5-month-old girl in New Delhi was struck in the forehead by an aerial shell that was launched sideways
  • In Mumbai, an 8-year-old boy picked up a firecracker that had been thrown on the ground. It exploded in his hands, lodging particles in his eye
The horror stories abound…

 Ignorance And Carelessness Cause Disaster

Freak accidents like these invariably occur when kids are allowed to play with fireworks unattended. The most common reason is wrong handling of fireworks. Parents need to take some precautions to avoid such tragedies. For instance, it is extremely important to know the difference between a legal consumer firework and a dangerous explosive device. The latter can cause serious injury or even death. Both parents and their children need to stay away from anything that is not clearly labeled and does not display the manufacturer’s name and instructions for proper use.

Fundamentally, children MUST understand that fireworks are not toys, that they burn at approximately the same temperature as a household match and that they can ignite clothes and cause burns and injuries if used improperly. 

Parents must never allow young children to handle fireworks without close adult supervision. Even seemingly harmless sparklers and ‘flower pots’ can be dangerous for very young kids, especially to those under age five.
Most of these and similar non-explosive fireworks can create havoc if lighted in busy areas. Rockets can shoot off into non-intended directions to injure people and even enter homes to set things inside on fire.

 Fireworks Safety Tips For Kids

We often do not realise the potential danger, and therefore ignore even the most rudimentary precautions. Caution and proper care can ensure a safe and fun-filled Diwali – it all boils down to a few simple dos and don’ts. Never allow your kids to play with fireworks unattended

DO
  • Supervise children while they light fireworks
  • Make them light fireworks outside the house
  • Have them hold sparklers away from the body
  • Keep ‘flower pots’ and ‘chakras’ on even, flat ground while lighting them
  • Have them light up rockets only on open ground
  • Ensure proper distance from the fireworks away at a distance while they are lighting them
  • Make sure they are wearing closed footwear and close-fitting clothes of thick material (instead of loose or flowing garments) while lighting fireworks
  • Keep a water bucket and burn ointment (or aloe vera gel) handy
  • Check the area before igniting fireworks to ensure that no inflammable materials are near
  • Ensure they light only one firework at a time
  • Discard used fireworks in a bucket of water
DON’T
  • Let them bend over fireworks while lighting them, or approach them if in doubt about whether they are live or not
  • Let them light fireworks while holding them in hand
  • Let them keep extra fireworks in pockets
  • Let them wear Nylon clothes – cotton is safest while lighting crackers
  • Let them try to light used fireworks
  • Let them light firecrackers with a matchstick, but rather a candle of agarbatti – this ensures sufficient distance between their hands and the cracker
  • Let them use fireworks indoors
  • Let them put fireworks into any container before lighting them up
  • Let them mix anything with the contents of fireworks or make fireworks at home
  • Let them ignite aerial fireworks where overhead obstruction (trees, wires, etc.) or even heavy wind exist
  • Let them throw or point fireworks at other people
Finally, Diwali is a family festival – it should be a source of joy for everyone, including kids. But these small but important steps can ensure that the Festival of Lights does not bring darkness into your lives.
© Vipula Waghmare
This article may be reproduced with the complete author bio and a live link back to http://www.lovingyourchild.com
Download a Printable copy of our previous article “Diwali Decorations – Rangoli, Toran And Diyas