07-22-2021 02:42 AM - edited 07-22-2021 02:43 AM
Hello,
I have been trying to configure nat in the cisco 2821 router but I'm getting memory full, why am I getting and how to resolve it.
07-22-2021 02:54 AM
Hello @arjun_4790 ,
post your current configuration just hide public IP addresses and passwords
typical setup
!internal side
interface VLAN 10
ip addresss 192.168.10.1 255.255.255.0
ip nat inside
!
! WAN side
interface WAN
ip address x.x.x.x 255.255.255.252
ip nat outside
access-list 11 permit 192.168.10.0 0.0.0.255
ip nat inside source list 11 interface wan overload
check with show ip nat translations
Hope to help
Giuseppe
07-22-2021 03:09 AM
I cant, after putting ip nat inside command, running configuration has been deleting automatically
07-22-2021 05:20 AM
cisco 2821 router but I'm getting memory full,
Can you post exactly error you see on the router to understand the issue.
show run
show version
will help us here.
07-25-2021 11:07 PM
07-25-2021 11:37 PM
Hello @arjun_4790 ,
remove NBAR from the configuration the first line of the screenshot says it is NBAR feature that is using a lot of memory.
Hope to help
Giuseppe
07-26-2021 02:27 AM
Hello @Giuseppe Larosa
I have removed nbar from the interface but still, I have been getting same errors, could you go through the screenshots
07-26-2021 03:22 AM
Hello @arjun_4790 ,
I think you should disable NBAR on all interfaces of this router and then to get better help you should attach a text file with your configuration and a show version.
You can post the show version in a message
Hope to help
Giuseppe
08-19-2021 12:20 AM
08-19-2021 05:52 AM
Hello @arjun_4790 ,
I think you should disable NBAR also at global level before attempting to configure NAT.
However, from the log messages you have provided it looks like the router has not enough memory ( RAM) to be enabled both features at the same time.
>>
router(config-if)#ip nat inside
NBAR ERROR : parsing stopped
% NBAR Error : Activation failed due to insufficient dynamic memory
% NBAR Error: Stile could not add protocol node
%NAT: Error activating CNBAR on the interface GigabitEthernet0/0
router(config-if)#
*Aug 19 07:15:08.655: %SYS-2-MALLOCFAIL: Memory allocation of 10260 bytes failed from 0x43D51A08, alignment 0
Pool: Processor Free: 14612 Cause: Memory fragmentation
Alternate Pool: None Free: 0 Cause: No Alternate pool
-Process= "Exec", ipl= 0, pid= 92
-Traceback= 43ED4ED4z 450D6CBCz 43D48370z 43D484D4z 43D28720z 43D2C300z 43D294ACz 43D5B41Cz 43D67098z 43D50914z 43D737CCz 43D73D64z 429714C4z 429739D4z 41E88F90z 41E8F4B4z
*Aug 19 07:15:08.655: %NBAR-2-NOMEMORY: No memory available for StILE lmalloc
-Traceback= 43D484D4z 43D28720z 43D2C300z 43D294ACz 43D5B41Cz 43D67098z 43D50914z 43D737CCz 43D73D64z 429714C4z 429739D4z 41E88F90z 41E8F4B4z 41E9E910z 43EA6260z 43EA6244z
router(config-if)#
post
show version
it provides the IOS image name and also the amount of memory on the system.
You may have loaded an IOS image that would require more RAM to work correctly.
Hope to help
Giuseppe
07-26-2021 01:34 AM
As per the message when you doing that command, you see some NBAR related information (thinking may be causing issue)
that is the reason we have requested.
show run
show version
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide