| 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 |
default}
Example:
Router(config)# zone security zone1
|
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 |
default}
Example:
Router(config)# zone security zone2
|
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
{source-zone-name |
self |
default}
destination [destination-zone-name |
self |
default]]
Example:
Router(config)# zone-pair security in-out source zone1 destination zone2
|
Creates a zone pair and enters security zone pair configuration mode.
| Note
| 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 pmap1
|
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/0
|
Configures an interface and enters interface configuration mode.
|
| Step 11 |
zone-member
security
zone-name
Example:
Router(config-if)# zone-member security zone1
|
Assigns an interface to a specified security zone.
| Note
| When you make an interface a member of a security zone, all traffic in 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 |
exit
Example:
|
Exits interface configuration mode and enters global configuration mode.
|
| Step 13 |
interface
type
number
Example:
Router(config)# interface gigabitethernet 0/1/1
|
Configures an interface and enters interface configuration mode.
|
| Step 14 |
zone-member
security
zone-name
Example:
Router(config-if)# zone-member security zone2
|
Assigns an interface to a specified security zone.
|
| Step 15 |
end
Example:
|
Exits interface configuration mode and enters privileged EXEC mode.
|