The documentation set for this product strives to use bias-free language. For the purposes of this documentation set, bias-free is defined as language that does not imply discrimination based on age, disability, gender, racial identity, ethnic identity, sexual orientation, socioeconomic status, and intersectionality. Exceptions may be present in the documentation due to language that is hardcoded in the user interfaces of the product software, language used based on RFP documentation, or language that is used by a referenced third-party product. Learn more about how Cisco is using Inclusive Language.
This chapter describes the Cisco NX-OS security commands that begin with F.
To configure a feature in a user role feature group, use the feature command. To delete a feature in a user role feature group, use the no form of this command.
feature feature-name
no feature feature-name
feature-name |
Switch feature name as listed in the show role feature command output. |
None
User role feature group configuration mode
|
|
4.0(0)N1(1a) |
This command was introduced. |
Use the show role feature command to list the valid feature names to use in this command.
This example shows how to add features to a user role feature group:
switch(config)# role feature-group name SecGroup
switch(config-role-featuregrp)# feature aaa
switch(config-role-featuregrp)# feature radius
switch(config-role-featuregrp)# feature tacacs
This example shows how to remove a feature from a user role feature group:
switch(config)# role feature-group name MyGroup
switch(config-role-featuregrp)# no feature callhome
|
|
---|---|
role feature-group name |
Creates or configures a user role feature group. |
show role feature-group |
Displays the user role feature groups. |
To enable the Dynamic Host Configuration Protocol (DHCP) snooping feature on the device, use the feature dhcp command. To disable the DHCP snooping feature and remove all configuration related to DHCP snooping, use the no form of this command.
feature dhcp
no feature dhcp
This command has no arguments or keywords.
Disabled
Global configuration mode
|
|
---|---|
5.0(2)N2(1) |
This command was introduced. |
The DHCP snooping feature is disabled by default. DHCP snooping can be enabled or disabled on VLANs.
If you have not enabled the DHCP snooping feature, commands related to DCHP snooping are unavailable.
Dynamic ARP inspection and IP Source Guard depend upon the DHCP snooping feature.
If you disable the DHCP snooping feature, the device discards all configuration related to DHCP snooping configuration, including the following features:
•DHCP snooping
•DHCP relay
•Dynamic ARP Inspection (DAI)
•IP Source Guard
If you want to turn off DHCP snooping and preserve configuration related to DHCP snooping, disable DHCP snooping globally with the no ip dhcp snooping command.
Access-control list (ACL) statistics are not supported if the DHCP snooping feature is enabled.
This example shows how to enable DHCP snooping:
switch(config)# feature dhcp
switch(config)#
This example shows how to disable DHCP snooping:
switch(config)# no feature dhcp
switch(config)#
To enable HTTP or Hypertext Transfer Protocol Secure (HTTPS) on the switch, use the feature http-server command. To disable the HTTP or HTTPS server, use the no form of this command.
feature http-server
no feature http-server
This command has no arguments or keywords.
Disabled
Global configuration mode
|
|
---|---|
5.0(2)N1(1) |
This command was introduced. |
In releases earlier than Cisco NX-OS Release 5.0(2)N1(1), HTTP and HTTPS are enabled on the switch by default.
This example shows how to enable the HTTP server on the switch and verify the status of the HTTP server:
switch(config)# feature http-server
switch(config)# exit
switch# show feature
Feature Name Instance State
-------------------- -------- --------
assoc_mgr 1 enabled
cimserver 1 disabled
dhcp-snooping 1 disabled
fabric-binding 1 disabled
fc-port-security 1 disabled
fcoe 1 enabled
fcsp 1 disabled
fex 1 enabled
fport-channel-trunk 1 disabled
http-server 1 enabled
interface-vlan 1 enabled
lacp 1 enabled
ldap 1 disabled
lldp 1 enabled
niv 1 disabled
npiv 1 disabled
npv 1 disabled
otv 1 disabled
port_track 1 disabled
private-vlan 1 enabled
privilege 1 enabled
sshServer 1 enabled
tacacs 1 enabled
telnetServer 1 enabled
udld 1 enabled
vpc 1 enabled
vtp 1 enabled
switch# show http-server
http-server enabled
switch#
To enable port security on Layer 2 interfaces, use the feature port-security command. To disable port security, use the no form of this command.
feature port-security
no feature port-security
This command has no arguments or keywords.
Disabled
Global configuration mode
|
|
---|---|
5.1(3)N1(1) |
This command was introduced. |
Use the port security feature to secure a port by limiting and identifying the MAC addresses of the switches that are allowed to access the port.
You can enable port security on a virtual port channel (vPC) port only if the following occurs:
•Port security is enabled on both the vPC peers
•Port security is enabled on the vPC port on both the vPC peers.
This command does not require a license.
This example shows how to enable port security on the switch:
switch# configure terminal
switch(config)# feature port-security
switch(config)#
This example shows how to disable port security on the switch:
switch# configure terminal
switch(config)# no feature port-security
switch(config)#
To enable the cumulative privilege of roles for command authorization on RADIUS and TACACS+ servers, use the feature privilege command. To disable the cumulative privilege of roles, use the no form of this command.
feature privilege
no feature privilege
This command has no arguments or keywords.
Disabled
Global configuration mode
|
|
---|---|
5.0(2)N1(1) |
This command was introduced. |
When the feature privilege command is enabled, privilege roles inherit the permissions of lower level privilege roles.
This example shows how to enable the cumulative privilege of roles:
switch(config)# feature privilege
switch(config)#
This example shows how to disable the cumulative privilege of roles:
switch(config)# no feature privilege
switch(config)#
To enable TACACS+, use the feature tacacs+ command. To disable TACACS+, use the no form of this command.
feature tacacs+
no feature tacacs+
This command has no arguments or keywords.
Disabled
Global configuration mode
|
|
4.0(0)N1(1a) |
This command was introduced. |
You must use the feature tacacs+ command before you configure TACACS+.
Note When you disable TACACS+, the Cisco NX-OS software removes the TACACS+ configuration.
This example shows how to enable TACACS+:
switch(config)# feature tacacs+
This example shows how to disable TACACS+:
switch(config)# no feature tacacs+
|
|
---|---|
show feature |
Displays whether or not TACACS+ is enabled on the switch. |
show tacacs+ |
Displays TACACS+ information. |