4-12
Cisco Security Appliance Command Line Configuration Guide
OL-12172-03
Chapter 4 Configuring Switch Ports and VLAN Interfaces for the Cisco ASA 5505 Adaptive Security Appliance
Configuring a Switch Port as a Trunk Port
You might want to prevent switch ports from communicating with each other if the devices on those
switch ports are primarily accessed from other VLANs, you do not need to allow intra-VLAN access,
and you want to isolate the devices from each other in case of infection or other security breach. For
example, if you have a DMZ that hosts three web servers, you can isolate the web servers from each other
if you apply the
switchport protected
command to each switch port. The inside and outside networks
can both communicate with all three web servers, and vice versa, but the web servers cannot
communicate with each other.
Step 5
(Optional) To set the speed, enter the following command:
hostname(config-if)#
speed
{
auto
|
10
|
100
}
The
auto
setting is the default.
Step 6
(Optional) To set the duplex, enter the following command:
hostname(config-if)#
duplex
{
auto
|
full
|
half
}
The
auto
setting is the default.
Step 7
To enable the switch port, if it is not already enabled, enter the following command:
hostname(config-if)#
no shutdown
To disable the switch port, enter the
shutdown
command.
The following example configures seven VLAN interfaces, including the failover interface which is
configured using the
failover lan
command. VLANs 200, 201, and 202 are trunked on Ethernet 0/1.
hostname(config)#
interface vlan 100
hostname(config-if)#
nameif outside
hostname(config-if)#
security-level 0
hostname(config-if)#
ip address 10.1.1.1 255.255.255.0
hostname(config-if)#
no shutdown
hostname(config-if)#
interface vlan 200
hostname(config-if)#
nameif inside
hostname(config-if)#
security-level 100
hostname(config-if)#
ip address 10.2.1.1 255.255.255.0
hostname(config-if)#
no shutdown
hostname(config-if)#
interface vlan 201
hostname(config-if)#
nameif dept1
hostname(config-if)#
security-level 90
hostname(config-if)#
ip address 10.2.2.1 255.255.255.0
hostname(config-if)#
no shutdown
hostname(config-if)#
interface vlan 202
hostname(config-if)#
nameif dept2
hostname(config-if)#
security-level 90
hostname(config-if)#
ip address 10.2.3.1 255.255.255.0
hostname(config-if)#
no shutdown
hostname(config-if)#
interface vlan 300
hostname(config-if)#
nameif dmz
hostname(config-if)#
security-level 50
hostname(config-if)#
ip address 10.3.1.1 255.255.255.0
hostname(config-if)#
no shutdown
hostname(config-if)#
interface vlan 400
hostname(config-if)#
nameif backup-isp
Содержание 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: ......