lost and found ( for me ? )

Showing posts with label Cisco emulator. Show all posts
Showing posts with label Cisco emulator. Show all posts

Linux Mint 12 : How to install dynamips and gns3 ( Cisco Router Emulator )


Here’s an explanation of how to install dynamips and gns3 on Linux Mint 12.

# uname -ri
3.0.0-15-generic x86_64

# tail -1 /etc/lsb-release
DISTRIB_DESCRIPTION="Linux Mint 12 Lisa"


[ install dynamips and gns3 ]

dynamips is Cisco Router emulator and gns3 is GUI tool for dynamips.
# apt-get install -y dynamips gns3


[ initial setup ]

start gns3
$ gns3 &


do step1 ( configure working directory ) and then step2 ( load IOS )


step1 ( click OK. default settings )


step2

select the IOS image you want to run.
I used c3640-jk9s-mz.124-13a.bin.


click “Save”

drag and drop “Router c3600” icon like this.




start c3600

configure Idle PC

By default , the dynamips process uses around 100% CPU consumption.
# top -b -n 1 | grep dynamips
25472 hattori   20   0  363m 185m  65m S   99  1.5   3:17.27 dynamips


To reduce CPU consumption

select Router icon , right-click , Idle PC



Dynampis will calculate an appropriate Idle PC values.


Click “Apply”

After configuring Idle PC values.
# top -b -n 1 | grep dynamips
25472 hattori   20   0  363m 185m  65m S    8  1.5   6:57.80 dynamips

CPU consumption is 8%.

Configuration file is stored under .gns/ directory. ( gns3.ini file )
# head -5 /home/hattori/.gns3/gns3.ini
[GNS3]
version=1795
lang=en
project_startup=true
relative_paths=true


Cisco router emulator : how to use dynamips n’ GNS3 on Ubuntu10.04 64bit

root@hat1:~# cat /etc/lsb-release | grep -i description
DISTRIB_DESCRIPTION="Ubuntu 10.04.1 LTS"

root@hat1:~# apt-cache search dynamips
dynagen - Cisco 7200 Router Emulator Command Line Interface
dynamips - Cisco 7200/3600/3725/3745/2600/1700 Router Emulator
gns3 - graphical network simulator

- install dynamips n’ gns3

CLIで操作したい場合は dynagen をインストール。
GUIで操作したいので、 Ciscoエミュレータの dynamips と フロントエンドGUI の GNS3 をインストール。

root@hat1:~# apt-get install dynamips gns3

- GNS3を起動

アプリケーション -> 教養・教育 -> GNS3



Step1 で dynamips がインストールディレクトリなど全般設定をする。
apt-get で dynamips , gns3 をインストールしている場合、デフォルト設定でOK


IOSを選択


ラボの作成

file -> New project


トポロジーを作成

node types のアイコンをドラッグn’ドロップで中央にもっていく
適当にリンクを追加


起動


こんな感じ


idlepc の設定

デフォルトだとCPU100% 使用するので idlepc 値を設定する。

2つルータを起動sいているので、CPUがほぼ200%

 PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
2813 root      20   0  551m 144m  71m S  197  1.9  13:31.43 dynamips

ルータアイコン右クリック -> IDLE PC


IDLE PC 設定後のCPU使用率。さがった。

 PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
2813 root      20   0  551m 144m  71m S   21  1.9  17:11.02 dynamips

停止は、ルータを suspend 。
設定の保存: ネットワークファイルを名前を付けて保存(アイコン)
設定の復旧: ネットワークファイルを開く ( アイコン ) -> *.net ファイルを指定