09-25-2007 11:49 PM - edited 03-03-2019 06:55 PM
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?
09-26-2007 12:38 AM
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
09-26-2007 01:06 AM
Hi, it's:
255.255.255.0
09-26-2007 01:18 AM
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
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide