Saturday, 5 October 2013

Mengatasi kesalahan memory di GNS3

GNS3 sudah menjadi teman sehari-hari, software simulasi ini yang tiap hari tok pake untuk ngelab. IOS yang biasa saya pake adalah 2691.
saat digunakan untuk ngelab NAT tadi, ketemu error pas saya konfigurasikan nat di interface-nya.
R1(config-if)#ip nat outside
% NBAR Error : Activation failed due to insufficient dynamic memory
% NBAR Error: Stile could not add protocol node 
%NAT: Error activating CNBAR on the interface FastEthernet1/0
R1(config-if)#
*Mar  1 00:20:55.491: %SYS-2-MALLOCFAIL: Memory allocation of 135188 bytes failed from 0x62983C38, alignment 0
Pool: Processor  Free: 150440  Cause: Memory fragmentation
Alternate Pool: None  Free: 0  Cause: No Alternate pool
 -Process= "Exec", ipl= 0, pid= 3,  -Traceback= 0x61520C14 0x60015CEC 0x6001BAE8 0x6001C0DC 0x6356F3EC 0x62983C40 0x6298602C 0x62986628 0x62960A20 0x62961584 0x62961A18 0x62962268 0x629624E0 0x62996F74 0x629A16C4 0x6298E98C
*Mar  1 00:20:55.495: %NBAR-2-NOMEMORY: No memory available for StILE lmalloc,  -Traceback= 0x61520C14 0x62983C5C 0x6298602C 0x62986628 0x62960A20 0x62961584 0x62961A18 0x62962268 0x629624E0 0x62996F74 0x629A16C4 0x6298E98C 0x629ABAB8 0x629ABE38 0x61CFAB74 0x61CFD25C
*Mar  1 00:20:55.535: %SYS-2-CHUNKEXPANDFAIL: Could not expand chunk pool for regex. No memory available -Process= "Chunk Manager", ipl= 3, pid= 1,  -Traceback= 0x61520C14 0x60027418R1(config-if)#ip nat outside
% NBAR Error : Activation failed due to insufficient dynamic memory
% NBAR Error: Stile could not add protocol node 
%NAT: Error activating CNBAR on the interface FastEthernet1/0
R1(config-if)#
*Mar  1 00:20:55.491: %SYS-2-MALLOCFAIL: Memory allocation of 135188 bytes failed from 0x62983C38, alignment 0
Pool: Processor  Free: 150440  Cause: Memory fragmentation
Alternate Pool: None  Free: 0  Cause: No Alternate pool
 -Process= "Exec", ipl= 0, pid= 3,  -Traceback= 0x61520C14 0x60015CEC 0x6001BAE8 0x6001C0DC 0x6356F3EC 0x62983C40 0x6298602C 0x62986628 0x62960A20 0x62961584 0x62961A18 0x62962268 0x629624E0 0x62996F74 0x629A16C4 0x6298E98C
*Mar  1 00:20:55.495: %NBAR-2-NOMEMORY: No memory available for StILE lmalloc,  -Traceback= 0x61520C14 0x62983C5C 0x6298602C 0x62986628  0x62961584 0x62961A18 0x62962268 0x629624E0 0x62996F74 0x629A16C4 0x6298E98C 0x629ABAB8 0x629ABE38 0x61CFAB74 0x61CFD25C
*Mar  1 00:20:55.535: %SYS-2-CHUNKEXPANDFAIL: Could not expand chunk pool for regex. No memory available -Process= "Chunk Manager", ipl= 3, pid= 1,  -Traceback= 0x61520C14 0x60027418
dari pesan error tersebut kira-kira ni problemnya adalah memory-nya kurang. saya coba googling trus ketemu problem solvingnya disini.

jadi penyelesaiannya adalah kita edit file .net topologi yang kita simpan. contoh lab tadi saya simpan dengan nama rip default route, di Ubuntu saya default penyimpanan gns3 ada di /root/.gns3.
root@userq:/home/ayub# cd /root/.gns3
root@userq:~/.gns3# ls
gns3.ini              rip default route.net
ripdefaultroute.gns3  rip default route.net~
root@userq:~/.gns3# gedit rip\ default\ route.net
kemudian tambahkan baris ram seperti berikut ini

[127.0.0.1:7200]
    workingdir = /tmp
    udp = 10000
    [[2691]]
        image = /media/ayub/4E26440B5A14832C/C2691-AD.BIN
        ram = 256
        sparsemem = True
        ghostios = True 


oke saya coba konfig-kan lagi dan ternyata masalah memory error tadi sudah tidak ada