4-7
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 VLAN Interfaces
Where
number
is an integer between 0 (lowest) and 100 (highest).
Step 5
(Routed mode only) To set the IP address, enter one of the following commands.
Note
To set an IPv6 address, see the
“Configuring IPv6 on an Interface” section on page 12-3
.
To set the management IP address for transparent firewall mode, see the
“Setting the
Management IP Address for a Transparent Firewall” section on page 8-5
. In transparent mode,
you do not set the IP address for each interface, but rather for the whole adaptive security
appliance or context.
For failover, you must set the IP address an standby address manually; DHCP and PPPoE are not
supported.
•
To set the IP address manually, enter the following command:
hostname(config-if)#
ip address
ip_address
[
mask
] [
standby
ip_address
]
The
standby
keyword and address is used for failover. See
Chapter 14, “Configuring Failover,”
for
more information.
•
To obtain an IP address from a DHCP server, enter the following command:
hostname(config-if)#
ip address dhcp
[
setroute
]
Reenter this command to reset the DHCP lease and request a new lease.
If you do not enable the interface using the
no shutdown
command before you enter the
ip address
dhcp
command, some DHCP requests might not be sent.
•
To obtain an IP address from a PPPoE server, see
Chapter 35, “Configuring the PPPoE Client.”
Step 6
(Optional) To assign a private MAC address to this interface, enter the following command:
hostname(config-if)#
mac-address
mac_address
[
standby
mac_address
]
By default in routed mode, all VLANs use the same MAC address. In transparent mode, the VLANs use
unique MAC addresses. You might want to set unique VLANs or change the generated VLANs if your
switch requires it, or for access control purposes.
Step 7
(Optional) To set an interface to management-only mode, so that it does not allow through traffic, enter
the following command:
hostname(config-if)#
management-only
Step 8
By default, VLAN interfaces are enabled. To enable the interface, if it is not already enabled, enter the
following command:
hostname(config-if)#
no shutdown
To disable the interface, enter the
shutdown
command.
The following example configures seven VLAN interfaces, including the failover interface which is
configured separately using the
failover lan
command:
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
Содержание 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: ......