08-30-2018 11:26 PM - edited 02-21-2020 08:10 AM
LS,
my goal is to setup an ASA5506 (without Firepower, etc) to a predefined configuration.
For this I use a configuration file which should replace the startup-config.
To put the file on the system (including the firmware version 9.8.2) I use the following command:
'downgrade /noconfirm disk0:/<firmware> ' disk0:/<config-file>'
This works however not all settings are correct. The policy-map settings are not correct after the downgrade is done. Inspection for h323 h225 and skinny are enabled although they should not be.
How can I fix this?
The config file contains the following settings:
class-map inspection_default
match default-inspection-traffic
policy-map type inspect dns preset_dns_map
parameters
message-length maximum 512
policy-map global_policy
class inspection_default
inspect ftp
no inspect h323 h225
inspect h323 ras
inspect rsh
inspect rtsp
inspect esmtp
inspect sqlnet
no inspect skinny
inspect sunrpc
inspect xdmcp
inspect sip
inspect netbios
inspect tftp
inspect dns preset_dns_map
After the downgrade command the running-config contains (inspection for enable for h323 h225 and skinny):
policy-map global_policy
class inspection_default
inspect ftp
inspect h323 h225
inspect h323 ras
inspect rsh
inspect rtsp
inspect esmtp
inspect sqlnet
inspect skinny
inspect sunrpc
inspect xdmcp
inspect sip
inspect netbios
inspect tftp
inspect dns preset_dns_map
You help is appreciated
Tom
09-01-2018 01:43 AM
Hi Tom,
Is there a reason why we are using the downgrade command instead of the copy command to replace the startup config with the saved config file.
Was this config taken from the same box earlier or from some other box.
Either ways, you can change those configuration parameters manually after the downgrade:
policy-map global_policy
class inspection_default
no inspect h323 h225
no inspect skinny
That should help you get back the same config parameters.
HTH
AJ
09-02-2018 05:43 AM
09-03-2018 08:46 AM
Hi, I invested some more on the problem and this is what I found.
If one makes a copy of the startup-config then the system puts it some annotations in the file (see below).
It turns out that these are essential to get the exact same configuration.
I also tried to copy my config file to the startup-config. Also that gave problems e.g. access-list command changed from "any" to "any4".
The following procedure seems to work
Make sure that the configuration has been written to the startup-config and reboot
The my_config file can be used with the upgrade command.
: Saved
:
: Serial Number: Jxxxxxx
: Hardware: ASA5506, 4096 MB RAM, CPU Atom C2000 series 1250 MHz, 1 CPU (4 cores)
:
ASA Version 9.8(2)
......
< config command>
......
:End
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