Cisco AJ732A - MDS 9134 Fabric Switch Command Reference Manual page 651

Cisco mds 9000 family command reference guide - release 4.x (ol-18089-01, february 2009)
Hide thumbs Also See for AJ732A - Cisco MDS 9134 Fabric Switch:
Table of Contents

Advertisement

Chapter 11
I Commands
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
Examples
The following example configures the an IP-ACL called aclPermit and permits IP traffic from any source
address to any destination address:
switch# config terminal
Enter configuration commands, one per line.
switch(config)# ip access-list aclPermit permit ip any any
The following example removes the IP-ACL called aclPermit:
switch(config-if)# no ip access-group aclPermit
The following example updates aclPermit to deny TCP traffic from any source address to any destination
address:
switch# config terminal
Enter configuration commands, one per line.
switch(config)# ip access-list aclPermit deny tcp any any
The following example defines an IP-ACL that permits this network. Subtracting 255.255.248.0 (normal
mask) from 255.255.255.255 yields 0.0.7.255:
switch# config terminal
Enter configuration commands, one per line.
switch(config)# ip access-list aclPermitUdp permit udp 192.168.32.0 0.0.7.255 any
The following example permits all IP traffic from and to the specified networks:
switch# config terminal
Enter configuration commands, one per line.
switch(config)# ip access-list aclPermitIpToServer permit ip 10.1.1.0 0.0.0.255
172.16.1.0 0.0.0.255
The following example denies TCP traffic from 1.2.3.0 through source port 5 to any destination:
switch# config terminal
Enter configuration commands, one per line.
switch(config)# ip access-list aclDenyTcpIpPrt5 deny tcp 1.2.3.0 0.0.0.255 eq port 5 any
The following example removes this entry from the IP-ACL:
switch# config terminal
Enter configuration commands, one per line.
switch(config)# no ip access-list aclDenyTcpIpPrt5 deny tcp 1.2.3.0 0.0.0.255 eq port 5
any
Related Commands
Command
show ip access-list
OL-18089-01, Cisco MDS NX-OS Release 4.x
Description
Displays the IP-ACL configuration information.
End with CNTL/Z.
End with CNTL/Z.
End with CNTL/Z.
End with CNTL/Z.
End with CNTL/
End with CNTL/
Cisco MDS 9000 Family Command Reference
ip access-list
11-45

Advertisement

Table of Contents
loading

Table of Contents