cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
4890
Views
3
Helpful
2
Replies

difference between access-group & access-class

athambi
Level 1
Level 1

what is the difference between access group and access class commands.Which one is better and under what conditions are each used

1 Accepted Solution

Accepted Solutions

leonvd79
Level 4
Level 4

Hello athambi,

access-group [in|out] is used to tie an access-list to an interface.

access-class [in|out] is used to tie an access-list to vty lines.

So in case you want to prevent incoming network traffic on port 80 through Ethernet 0/0 you use

int E0/0

ip access-group 123 in

In case you want to allow only your PC from accessing the VTY via telnet/SSH use

line vty 0 4

ip access-class 1 in

HTH

--Leon

* Please rate posts.

View solution in original post

2 Replies 2

leonvd79
Level 4
Level 4

Hello athambi,

access-group [in|out] is used to tie an access-list to an interface.

access-class [in|out] is used to tie an access-list to vty lines.

So in case you want to prevent incoming network traffic on port 80 through Ethernet 0/0 you use

int E0/0

ip access-group 123 in

In case you want to allow only your PC from accessing the VTY via telnet/SSH use

line vty 0 4

ip access-class 1 in

HTH

--Leon

* Please rate posts.

mahmoodmkl
Level 7
Level 7

Hi

Access-group is used to bind a access-list with a particular interface.

access-class is used to bind a access-list to VTY lines.

in order to restrict access through telnet.

Thanks

Mahmood