Management Access Control List Commands

Use these commands to configure a management access control list (ACL) that controls access to the switch management interface.

You can use a management access control list (ACL) to help control access to the switch management interface. A management ACL can help ensure that only known and trusted devices are allowed to remotely manage the switch via TCP/IP.

After you define a management ACL name, you enter the management access control and administration list CLI mode (config-macal CLI mode), which lets you configure the ACL. We refer to this mode as the Management access-list configuration mode.

When you enable a management ACL, incoming TCP packets initiating a connection (TCP SYN) and all UDP packets are filtered. When you disable the management ACL, incoming TCP/UDP packets are not filtered and are processed normally.

management access-list

M4250

M4350

This command creates a management ACL. The management ACL name can be up to 32 alphanumeric characters. Executing this command enters into access-list configuration mode, from which you must define the denied or permitted access conditions with the deny and permit commands. If no match criteria are defined the default is to deny access (deny). If you reenter to an access-list context, new rules are entered at the end of the access list.

Format management access-list name
Mode Global Config

Command example:

CODE
(NETGEAR Switch)(Config)#management access-list ACLNAME
(NETGEAR Switch)(config-macal)#

no management access-list

This command deletes a management ACL identified by the name parameter.

Format no management access-list name
Mode Global Config

deny | permit (Management access-list configuration)

M4250

M4350

This command sets a deny or permit condition for the management access list based on the Ethernet interface, VLAN ID, port channel number, service port, service type, priority, or a combination of all of these for the rule. Each rule requires a unique priority. Use this command in Management access-list configuration mode.

To specify an actual interface or port, do the following:

  • For an M4250 series switch, use the argument slot/port.
  • For an M4350 series switch, use the argument unit/slot/port, as shown in the command format.
Format {deny | permit} [ethernet unit/slot/port | vlan vlan-id | port-channel lag-group-id | serviceport] [service service] [priority priority]
Mode Management access-list configuration
Parameter Definition
ethernet unit/slot/port The number of the Ethernet interface.
vlan vlan-id The VLAN ID.
port-channel lag-group-id The number of the port-channel.
service service

The service type for the rule, which can be one of the following keywords:

  • 1 to 65535: A TCP or UDP port number, which you must specify.
  • tftp
  • telnet
  • ssh
  • http
  • https
  • snmp
  • ntp
  • any
priority priority The priority for the rule, which is a number in the range from 1 to 64.

Command example:

The following example shows how to configure two management interfaces, ethernet 1/0/2 and ethernet 1/0/9:

CODE
(NETGEAR Switch) (Config)#management access-list mlist
(NETGEAR Switch) (config-macal)#permit ethernet 1/0/2 priority 63
(NETGEAR Switch) (config-macal)#permit ethernet 1/0/9 priority 64
(NETGEAR Switch) (config-macal)#exit
(NETGEAR Switch) (Config)#

Command example:

The following example shows how to configure all the interfaces to be management interfaces except for interfaces ethernet 1/0/2 and ethernet 1/0/9:

CODE
(NETGEAR Switch) (Config)#management access-list mlist
(NETGEAR Switch) (config-macal)#deny ethernet 0/1 priority 62
(NETGEAR Switch) (config-macal)#deny ethernet 0/9 priority 63
(NETGEAR Switch) (config-macal)#permit priority 64
(NETGEAR Switch) (config-macal)#exit
(NETGEAR Switch) (Config)#

deny | permit ip-source (Management access-list configuration)

M4250

M4350

This command sets a deny or permit condition for the management access list based on the source IP address of a packet. Optionally, you can specify a subnet mask prefix length, Ethernet interface, VLAN ID, port channel number, service port, service type, priority, or a combination of all of these for the rule. Each rule requires a unique priority. Use this command in Management access-list configuration mode.

Format {deny | permit} ip-source ip-address [mask mask | prefix-length] [ethernet unit/slot/port | vlan vlan-id | port-channel lag-group-id | serviceport] [service service] [priority priority]
Mode Management access-list configuration
Parameter Definition
ip-address The source IPv4 or IPv6 address.
mask mask The network mask of the source IP address.
prefix-length The number of bits that comprise the source IP address prefix. The prefix length must be preceded by a forward slash (/).
ethernet unit/slot/port The number of the Ethernet interface.
vlan vlan-id The VLAN ID.
port-channel lag-group-id The number of the port-channel.
service service

The service type for the rule, which can be one of the following keywords:

  • 1 to 65535: A TCP or UDP port number, which you must specify.
  • tftp
  • telnet
  • ssh
  • http
  • https
  • snmp
  • ntp
  • any
priority priority The priority for the rule, which is a number in the range from 1 to 64.

management access-class

M4250

M4350

This command activates the configured management ACL and restricts management connections within the management ACL. The name parameter is the name of the existing management ACL. You cannot update or remove a management ACL when it is active.

Format management access-class name
Mode Global Config

no management access-class

This command disables a management ACL.

Format no management access-class
Mode Global Config

show management access-list

M4250

M4350

This command displays information about the configured management ACL.

Format show management access-list [name]
Mode Privileged EXEC
Field Definition
List Name The name of the management ACL
List Admin Mode The administrative mode of the management ACL. To activate a management ACL, enter the management access-class command (see management access-class).
Packets Filtered The number of packets filtered by the management ACL
Rules The rules that are included in the ACL.

Command example:

CODE
(NETGEAR Switch) #show management access-list

List Name...................................... mgmtacl
List Admin Mode................................ Disabled
Packets Filtered............................... 0

Rules:
permit ip-source 192.168.2.10 mask 255.255.255.255 service ssh priority 1
permit ip-source 192.168.2.182 mask 255.255.255.255 service ssh priority 2
permit ip-source 192.168.2.23 mask 255.255.255.255 service ssh priority 3

NOTE: All other access is implicitly denied.

show management access-class

M4250

M4350

This command displays information about the configured management ACL.

Format show management access-class
Mode Privileged EXEC
Field Definition
List Name The name of the management ACL
List Admin Mode The administrative mode of the management ACL. To activate a management ACL, enter the management access-class command (see management access-class).
Packets Filtered The number of packets filtered by the management ACL

Command example:

CODE
(NETGEAR Switch) #show management access-class

List Name...................................... mgmtacl
List Admin Mode................................ Disabled
Packets Filtered............................... 0