Cisco simulator using dynamips

During waiting period for cisco router arrive in the lab, I’m looking for software which is able simulating cisco for student and myself like vmware that provide computer inside the computer.

I’m lucky to find very interesting software : Dynamips

From author site :

The goals of this emulator are mainly:

  • To be used as a training platform, with software used in real world. It would allow people to become more familiar with Cisco devices, Cisco being the world leader in networking technologies ;
  • Test and experiment the numerous and powerful features of Cisco IOS ;
  • Check quickly configurations to be deployed later on real routers.

Of course, this emulator cannot replace a real router: you should be able to get a performance of about 1 kpps (depending on your host machine), to be compared to the 100 kpps delivered by a NPE-100 (the oldest NPE model). So, it is simply a complementary tool to real labs for administrators of Cisco networks or people wanting to pass their CCNA/CCNP/CCIE exams.

great, this tool will guide me to learn cisco.

Then I found other usefull software : Dynagen

From author site :

Dynagen is a front-end for use with the Dynamips Cisco router emulator. It uses an INI-like configuration file to provision Dynamips emulator networks. It takes care of specifying the right port adapters, generating and matching up those pesky NIO descriptors, specifying bridges, frame-relay, ATM switches, etc. It also provides a management CLI for listing devices, suspending and reloading instances, determining and managing idle-pc values, performing packet captures, etc.

Available on the Downloads page is a Windows installer package that includes Dynamips and Dynagen. The only dependency is Winpcap 4.0.

Wow, this make learning process become easy.

Still in need for basic question :

How do I get started ?

Google very generous, guide me to this usefull site, video for beginner like me ๐Ÿ™‚
BlindHog, provide many video tutorial, for cheap price you can get very detail video on specific subject, awesome site ๐Ÿ˜‰

Good enough for starting point, I’ll write my experience using this tool in this directory.

Cisco, I’m coming ๐Ÿ™‚

Show php error with ini_set()

Even experience php programmer can make mistake, since most of them are typo php error message then become valuable resource for debugging.

By default, error message will show depend on error made, but in specific environment where tweaking in php.iniย  has been made by system administrator. Such free hosting will do it for good.

With assumption that php_ini not included in list of “disable_function” then php_ini will help ๐Ÿ™‚

ini_set(‘error_reporting’, E_ALL);
ini_set(‘display_errors’, ‘On’);
ini_set(‘display_startup_errors’, ‘On’);

$first_name ย  ย  ย = trim($_GET[‘first_name’]);
echo $first_name;

If there is no parse errror, the above enables “Notice: Undefined” error on screen.

If the code for an error the “Parse error” as follows, the error isn’t defined as should be

echo $first_name);
) will be error source, running it then you’ll get this error message

Parse error: parse error, unexpected ‘)’, expecting ‘,’ or ‘;’ in a.php on line 7

now, what you get for this ?
eho $first_name; // should be echo

parse error or …..

Insert time in mysql using now()

Simple way to insert time information in mysql is using now()

now() will automatically insert appropriate depends on type, let say we have field in mysql database in these format :

1. birth (date), now() will insert current date, ex: 2007-05-02

2. birth (datetime), now() will insert current date + current time, ex : 2007-05-2 22:54:30

3. birth (time), now() will insert only time information, ex : 22:54:30

this snippet will get same result with now()

$birth=date(‘Y’).’-‘.date(‘m’).’-‘.date(‘d’); // will be same as 2007-05-02

example in mysql command line :

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\Administrator>cd c:\appserv\mysql\bin

C:\AppServ\mysql\bin>mysql -uroot -p
Enter password:
Welcome to the MySQL monitor.รฏยฟยฝ Commands end with ; or \g.
Your MySQL connection id is 1 to server version: 4.0.24-nt

Type ‘help;’ or ‘\h’ for help. Type ‘\c’ to clear the buffer.

mysql> create database test;
Query OK, 1 row affected (0.03 sec)

mysql> use test;
Database changed
Continue reading

cvs, cvsup, portsnap and csup

Progress in *BSD world is very fast, everyday patch released, program update etc

to get that update via internet FreeBSD provide a few tools :

  • cvs, not so familiar for beginner
  • cvsup, very famous in FreeBSD, can update ports, source even for backup purpose
  • portsnap, only for port update, in FreeBSD tree since 6.0
  • csup, cvsup alternative, already integrated in 6.2 tree, no need to install, compatible with cvsup

example for cvs :

cvs -z3 -d co -P freesbie2

will fetch freesbie2 and located in current directory where command issued

example for cvsup :

cvsup -g -L2 ports-supfile -h

will update ports information

example for portsnap :

portsnap update

will update ports data, faster than portsnap extract

csup example :

cvsup -g -L2 stable-supfile -h

will update stable source

P.S :

make sure port 5999/tcp open for cvsup and csup

portsnap will use port 80

in Unix | 149 Words

find your program with “whereis”

Many linux distro build nowadays, each distro came with spesific purpose, server, workstation or desktop orientation but still not forget to give access to shell :-)

people who run “ifconfig” in mandriva will get confuse when run same command in fedora or maybe slackware

“command not found” is common message

just use “whereis” command for this purpose :

whereis ifconfig

whereis perl

whereis sh

answer will show up for full path of program

type full path in shell to get same result, not easy but always work :-)