6-10
Cisco Security Appliance Command Line Configuration Guide
OL-12172-03
Chapter 6 Adding and Managing Security Contexts
Configuring a Security Context
If you change to the context and configure the context at the CLI, you cannot save changes back to
HTTP or HTTPS servers using the
write memory
command. You can, however, use the
copy tftp
command to copy the running configuration to a TFTP server.
•
tftp://
[
user
[
:
password
]
@
]
server
[:
port
]
/
[
path
/
]
filename
[
;int=
interface_name
]
The server must be accessible from the admin context. Specify the interface name if you want to
override the route to the server address. The filename does not require a file extension, although we
recommend using “.cfg”. If the configuration file is not available, you see the following message:
WARNING: Could not fetch the URL tftp://
url
INFO: Creating context with default config
You can then change to the context, configure it at the CLI, and enter the
write memory
command
to write the file to the TFTP server.
To change the URL, reenter the
config-url
command with a new URL.
See the
“Changing the Security Context URL” section on page 6-13
for more information about
changing the URL.
For example, enter the following command:
hostname(config-ctx)#
config-url
ftp://joe:[email protected]/configlets/test.cfg
Step 5
(Optional) To assign the context to a resource class, enter the following command:
hostname(config-ctx)#
member
class_name
If you do not specify a class, the context belongs to the default class. You can only assign a context to
one resource class.
For example, to assign the context to the gold class, enter the following command:
hostname(config-ctx)#
member gold
Step 6
(Optional) To assign an IPS virtual sensor to this context if you have the AIP SSM installed, use the
allocate-ips
command. See the
“Assigning Virtual Sensors to Security Contexts” section on page 22-6
for detailed information about virtual sensors.
The following example sets the admin context to be “administrator,” creates a context called
“administrator” on the internal Flash memory, and then adds two contexts from an FTP server:
hostname(config)#
admin-context administrator
hostname(config)#
context
administrator
hostname(config-ctx)#
allocate-interface gigabitethernet0/0.1
hostname(config-ctx)#
allocate-interface gigabitethernet0/1.1
hostname(config-ctx)#
config-url
flash:/admin.cfg
hostname(config-ctx)#
context
test
hostname(config-ctx)#
allocate-interface gigabitethernet0/0.100 int1
hostname(config-ctx)#
allocate-interface gigabitethernet0/0.102 int2
hostname(config-ctx)#
allocate-interface gigabitethernet0/0.110-gigabitethernet0/0.115
int3-int8
hostname(config-ctx)#
config-url
ftp://user1:[email protected]/configlets/test.cfg
hostname(config-ctx)#
member gold
hostname(config-ctx)#
context
sample
hostname(config-ctx)#
allocate-interface gigabitethernet0/1.200 int1
hostname(config-ctx)#
allocate-interface gigabitethernet0/1.212 int2
Содержание 500 Series
Страница 38: ...Contents xxxviii Cisco Security Appliance Command Line Configuration Guide OL 12172 03 ...
Страница 45: ...P A R T 1 Getting Started and General Information ...
Страница 46: ......
Страница 277: ...P A R T 2 Configuring the Firewall ...
Страница 278: ......
Страница 354: ...17 38 Cisco Security Appliance Command Line Configuration Guide OL 12172 03 Chapter 17 Configuring NAT NAT Examples ...
Страница 561: ...P A R T 3 Configuring VPN ...
Страница 562: ......
Страница 891: ...P A R T 4 System Administration ...
Страница 892: ......
Страница 975: ...P A R T 5 Reference ...
Страница 976: ......