Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Community Member

Simple access list question

On a router I have added:

line vty 0 4

access-class 50 in

and i was wondering if I can add an IP range for the access-list 50?

At the moment I just do:

access-list 50 permit 172.19.1.10

access-list 50 permit 172.19.1.11

access-list 50 permit 172.19.1.12

Can I do something like:

access-list 50 permit 172.19.1.10-15?

3 REPLIES

Re: Simple access list question

Hi

U can use the wildcard masks to provide the range for the IP's.What is the subnet mask fot this IP's

Thanks

Mahmood

Community Member

Re: Simple access list question

Hi, it's:

255.255.255.0

Re: Simple access list question

10-50 would be awkward. You can use wildcards

access-list 50 permit 172.19.1.8 0.0.0.7 would permit 8-15, it all depends on exactly what addresses you need to permit, what the consequences of allowing a couple extra are compared to the convenience of a single entry.

If you really must do 10-15, with no others, try:

access-list 50 permit 172.19.1.10 0.0.0.1

access-list 50 permit 172.19.1.12 0.0.0.3

Where the first permits 10 & 11, and the second prmits 12-15

83
Views
0
Helpful
3
Replies
CreatePlease to create content