S e n d d o c u m e n t a t i o n c o m m e n t s t o m d s f e e d b a c k - d o c @ c i s c o . c o m
33-6
Cisco MDS 9000 Family CLI Configuration Guide
OL-16184-01, Cisco MDS SAN-OS Release 3.x
Chapter 33 Configuring IPv4 and IPv6 Access Control Lists
Configuring IPv4-ACLs or IPv6-ACLs
To define an IPv4-ACL that restricts management access, follow these steps:
To define an IPv6-ACL that restricts management access, follow these steps:
To use the operand and port options for an IPv4-ACL, follow these steps:
Step 3
switch(config-ipv6-acl)#
permit ipv6 any any
Adds an entry permitting IPv6 traffic from any
source address to any destination address.
switch(config-ipv6-acl)#
no
permit ipv6 any
any
Removes an entry from the IPv6-ACL.
switch(config-ipv6-acl)#
deny tcp any any
Adds an entry to deny TCP traffic from any
source address to any destination address.
Command
Purpose
Command
Purpose
Step 1
switch#
config t
Enters configuration mode.
Step 2
switch(config)#
ip access-list restrict_mgmt
permit ip 10.67.16.0 0.0.0.255 any
Defines an entry in an IPv4-ACL named
restrict_mgmt allowing all addresses in the
10.67.16.0/24 subnet.
Step 3
switch(config)#
ip access-list restrict_mgmt
permit icmp any any eq 8
Adds an entry to an IPv4-ACL named
restrict_mgmt to allow any device to ping the
MDS (icmp type 8).
Step 4
switch(config)#
ip access-list restrict_mgmt
deny ip any any
Explicitly blocks all other access to an
access-list named restrict_mgmt.
Command
Purpose
Step 1
switch#
config t
Enters configuration mode.
Step 2
switch(config)#
ip access-list RestrictMgmt
switch(config-ipv6-acl)#
Configures an IPv6-ACL called RestrictMgmt
and enters IPv6-ACL configuration submode.
Step 3
switch(config)#
permit ipv6
2001:0DB8:800:200C::/64 any
Defines an entry allowing all addresses in the
2001:0DB8:800:200C::/64 prefix.
Step 4
switch(config)#
permit icmp any any eq 8
Adds an entry to allow any device to ping the
MDS (ICMP type 8).
Step 5
switch(config)#
deny ipv6 any any
Explicitly blocks all other IPv6 access.
Command
Purpose
Step 1
switch#
config t
Enters configuration mode.
Step 2
switch(config)#
ip access-list List2 deny tcp
1.2.3.0 0.0.0.255 eq port 5 any
Denies TCP traffic from 1.2.3.0 through
source port 5 to any destination.