Tag Archive: cisco


Configure RIP in Packet Tracer

Configure the interfaces as shown in the diagram:

RIP layout

Configure Router 1:

Router(config)#router rip

Router(config-router)#version 2

Router(config-router)#network 10.0.0.0

Router(config-router)#network 11.0.0.0

Router(config-router)#^Z                              [ctrl+Z  or  end]

Router#wr

Building configuration…

[OK]

Router#

Configure Router 0:

Similar as above with networks 11.0.0.0, 12.0.0.0 and 13.0.0.0

Configure Router 2:

Similar as above with networks 12.0.0.0 and 14.0.0.0

Configure Router 3:

Similar as above with networks 13.0.0.0 and 15.0.0.0

Configure the PC terminals as shown.

Start pinging from PC command prompt.

Tips:

Use show ip protocols for verifying RIP.

Use show ip route to check for routes.

Other useful commands:

Router(config)#no router rip Turns off the RIP routing process
Router(config-router)#no network a.b.c.d Removes network a.b.c.d from the RIP routing process
Router(config-router)#timers basic 30 90 180 270 Changes timers in RIP (in seconds): 30 = Update timer; 90 = Invalid timer; 180 = Hold-down timer; 270 = Flush timer
Router#debug ip rip Displays all RIP activity in real time
Router#show ip rip database Displays contents of the RIP database

Installing ns2 in Ubuntu 10.04

Download the ns2-allinone-2.35.tar.gz

Login as “root” in Ubuntu in GUI mode (it will be easier this way).

Extract the tarball on the Desktop by following commands:

#  cd  Desktop

#  tar  -xvzf  ns-allinone-2.35.tar.gz

Download and install following packages from repository:

#  apt-get  install  build-essential  autoconf  automake  libxmu-dev

Install the ns2 by following commands:

#  cd  ns-allinone-2.35

#  ./install

This will install all required and some optional packages for ns2.

Now edit some paths (and be careful…):

#  gedit  ~/.bashrc

Put the following lines at the end of the file (/root/Desktop depends on where you extracted the tarball and change the version numbers accordingly):

# LD_LIBRARY_PATH

OTCL_LIB=/root/Desktop/ns-allinone-2.35/otcl-1.14

NS2_LIB=/root/Desktop/ns-allinone-2.35/lib

X11_LIB=/usr/X11R6/lib

USR_LOCAL_LIB=/usr/local/lib

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$OTCL_LIB:$NS2_LIB

:$X11_LIB:$USR_LOCAL_LIB

# TCL_LIBRARY

TCL_LIB=/root/Desktop/ns-allinone-2.35/tcl8.5.10/library

USR_LIB=/usr/lib

export TCL_LIBRARY=$TCL_LIB:$USR_LIB

# PATH

XGRAPH=/root/Desktop/ns-allinone-2.35/bin:/root/Desktop/ns-allinone-2.35/tcl8.5.10/unix:/root/Desktop/ns-allinone-2.35/tk8.5.10/unix:/root/Desktop/ns-allinone-2.35/xgraph-12.2/

NS=/root/Desktop/ns-allinone-2.35/ns-2.35/

NAM=/root/Desktop/ns-allinone-2.35/nam-1.15/

export PATH=$PATH:$XGRAPH:$NS:$NAM

Now Validate ns2 install (takes very long time):

#  cd  ns-2.35

#  ./validate

Create a symlink to ns, with this ns can be started from anywhere

#  ln  -s  /root/Desktop/ns-allinpne-2.35/ns-2.35/ns  /usr/bin/ns

#  source  ~/.bashrc

Now run the ns:

#  ns

If the installation is successful, then you will see % at the command prompt:

%

To exit, type:

%  exit

Testing the ns2 installation

Open gedit and type the following hello world program:

set  ns  [new Simulator]
$ns  at  1  “puts  \“Hello World\””
$ns  at  1.5  “exit”
$ns  run

Save the file as helloworld.tcl and type the following command:

#  ns  helloworld.tcl

It displays the output as follows:

Hello World

Now your ns2 installation is complete and running.

Router Configuration

To set a hostname :

Router(config)#hostname  [name]


Set the enable password :

Router(config)#enable  password  [password]

Set the encrypted enable password :

Router(config)#enable  secret  [password]


Set a console password :

Router(config)#line  console  0
Router(config-line)#login
Router(config-line)#password  [password]

 

Set a telnet password(Virtual Terminal) :

Router(config)#line  vty  0  4
Router(config-line)#login
Router(config-line)#password  [password]

Note : If no password is set for vty then no one can Login into Router using vty.

 

To encrypt all the passwords :

Router(config)#service  password-encryption

To remove encryption :

Router(config)#no  service  password-encryption

Note : Removing encryption service does not decrypt the encrypted passwords.