It sortof stumped me at first, when I started doing ACLs on the Nexus. After all, I was used to, in the Catalyst line (as well as Brocade and everything else I worked on), doing ACLs a certain way. I prefer doing the whole line at a time. Like this:
ip access-list 107 deny ip 192.168.0.0 0.0.255.255 220.127.116.11 0.0.0.255
However, the Nexus doesnt let you work this way. While the Catalyst and Cisco routers do allow the kind of config that the Nexus requires, I just wasnt used to doing it that way. But, sometimes you have to learn new things. Here is how you create an ACL on the Nexus. Below was on a 7K.
Notice that I start off (in config mode) with "ip access-list 107". After hitting enter, then I do my deny/permit statements.
ip access-list 107
deny ip 192.168.0.0 0.0.255.255 18.104.22.168 0.0.0.255
deny ip 192.168.0.0 0.0.255.255 22.214.171.124 0.255.255.255
deny ip 192.168.0.0 0.0.255.255 126.96.36.199 0.0.255.255
deny ip 192.168.0.0 0.0.255.255 188.8.131.52 0.0.255.255
permit tcp 192.168.0.0 0.0.255.255 any
permit ip 192.168.0.0 0.0.255.255 any
deny ip any any
Post a Comment
Your comment will be reviewed for approval. Thank you for submitting your comments.