| Step 1 |
enable
Example:
|
Enables privileged EXEC mode.
- Enter your password if prompted.
|
| Step 2 |
configure terminal
Example:
Router# configure terminal
|
Enters global configuration mode.
|
| Step 3 |
zone security
zone-name
Example:
Router(config)# zone security source-zone
|
Creates a security zone to which interfaces can be assigned and enters security zone configuration mode.
|
| Step 4 |
exit
Example:
Router(config-sec-zone)# exit
|
Exits security zone configuration mode and enters global configuration mode.
|
| Step 5 |
zone security
zone-name
Example:
Router(config)# zone security destination-zone
|
Creates a security zone to which interfaces can be assigned and enters security zone configuration mode.
|
| Step 6 |
exit
Example:
Router(config-sec-zone)# exit
|
Exits security zone configuration mode and enters global configuration mode.
|
| Step 7 |
zone-pair security
zone-pair-name
[source
zone-name
destination
[zone-name]]
Example:
Router(config)# zone-pair security secure-zone source source-zone destination destination-zone
|
Creates a zone pair and enters security zone pair configuration mode.
- To apply a policy, you must configure a zone pair.
|
| Step 8 |
service-policy type inspect
policy-map-name
Example:
Router(config-sec-zone-pair)# service-policy type inspect pmap
|
Attaches a firewall policy map to the destination zone pair.
| Note
| If a policy is not configured between a pair of zones, traffic is dropped by default.
|
|
| Step 9 |
exit
Example:
Router(config-sec-zone-pair)# exit
|
Exits security zone pair configuration mode and enters global configuration mode.
|
| Step 10 |
interface
type number
Example:
Router(config)# interface gigabitethernet 0/0/1
|
Configures an interface and enters interface configuration mode.
|
| Step 11 |
zone-member security
zone-name
Example:
Router(config-if)# zone-member security source-zone
|
Assigns an interface to a specified security zone.
-
When you make an interface a member of a security zone, all traffic into and out of that interface (except traffic bound for the router or initiated by the router) is dropped by default. To let traffic through the interface, you must make the zone part of a zone pair to which you apply a policy. If the policy permits traffic, traffic can flow through that interface.
|
| Step 12 |
end
Example:
|
Exits interface configuration mode and enters privileged EXEC mode.
|