I'm sure this has been asked before, but it has bugged me for sometime now.
What is the difference between
R1(config)#access-list 12 permit 192.168.6.0 0.0.0.255
R1(config)#ip access-list standard 12
R1(config-std-nacl)#permit 192.168.6.0 0.0.0.255
Using access-lists with and without the ip keyword has always confused me.
I find that if I use the first method above, the distribute-list command that I use when apply redistribution filters works (distribute-list 12 out ospf 1
). However if I use the second method to create my ACL, the command is accepted but the fitlering fails.
Can someone clarify once and for all the difference between the two and when/why I should use one over another?