Cisco ASA Delete and Create Context

Login to Firewall as an administrator. You will land into the admin context. You need to go back to the system context to make changes.

 conf t
 changeto system
 !
 !

Now you are in system context, you need to delete the context as following:

!
 no context mycontext-100
 delete disk:/mycontext-100.cfg
 !
Then recover/delete the assigned sub-interfaces which were assigned to the context which you deleted in the step above:
 !
 no interface TenGigabitEthernet0/9.3201
 no interface TenGigabitEthernet0/9.3202
 !
Now re-assign/create the sub-interfaces with new VLAN numbers:
 !
 interface TenGigabitEthernet0/9.1201
 vlan 1201
 !
 interface TenGigabitEthernet0/9.1202
 vlan 1202
 !

Now create new context and assign the sub-interfaces into the new context:

!
 context mynewcontext-200
 allocate-interface interface Management0/0
 allocate-interface interface TenGigabitEthernet0/9.1201
 allocate-interface interface TenGigabitEthernet0/9.1202
 config-url disk0:/mynewcontext-200.cfg
 !
Now getinto the context and apply required configuration etc.
 !
 changeto context mynewcontext-200
 enable password Cisco123 encrypted
 !
 interface TenGigabitEthernet0/9.1201
 nameif outside
 security-level 0
 ip address 1.1.1.1. 255.255.255.240 standby 1.1.1.2
 !
 interface TenGigabitEthernet0/9.1202
 nameif inside
 security-level 100
 ip address 10.1.1.1 255.255.255.248 standby 10.1.1.2
 !
Advertisements

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s