Nameif Command
As the name intuitively indicates, the nameif command is used to name an interface. The outside and inside interfaces are named by default and have default security values of 0 and 100, respectively. By default, the interfaces have their hardware ID. Ethernet 0 is the outside interface, and Ethernet 1 is the inside interface. The names that are configured by the nameif command are user-friendly and are easier to use for advanced configuration later.
NOTE The nameif command can also be used to assign security values of 0 and 100. The names "inside" and "outside" are merely reserved for security levels 100 and 0, respectively, and are assigned by default, but they can be changed.
To assign a name for an interface, use the command in interface configuration mode. The syntax of the nameif command is as follows:
nameif hardware-id if-name Table 6-3 describes the command parameters for the nameif command.
|
Command Parameter |
Description |
|
hardware-id |
Indicates the interface's physical location on the Cisco Security Appliance. |
|
if-name |
Specifies the name by which you refer to this interface. The name cannot have any spaces and must not exceed 48 characters. |
Example 6-2 shows some examples of the nameif command. Example 6-2 Sample Configuration for the nameif Command
|
nameif |
ethernet0 |
outside |
|
nameif |
ethernet1 |
inside |
|
nameif |
ethernet2 |
dmz |
You can verify your configuration by using the show nameif command.
Continue reading here: Using the Cisco Security Appliance DHCP Server
Was this article helpful?