The different usage of ip access-group and ip aceess-class under ACL
Ip access-group is used under the interface; access-class is used under the VTY line.
The access-class command is not preceded by "ip"
Example:
Configure access-list first:
Access-list 1 permit host 192.168.1.1
Access-list 1 permit host 192.168.2.1
Case 1: line vty 0 4 (up to 5 telnet allowed)
Access-class 1 in
Case 2: int f0amp 0
Ip access-group 1 in