08-24-2009 09:37 AM - edited 03-04-2019 05:49 AM
How to configure a router using ACL # 99 to allow remote telnet & ssh with password of "cisco" from subnet 172.16.1.128/25
A router (r1) has a trunk connection to switch (s1).
You have two subnets; users 172.16.1.0/25 and admins 172.16.1.128/25.
What would be the syntax commands to do this, as I do not know for sure if this is correct:
(config)# access-list 99 permit 172.16.1.128 0.0.0.127
(config)# access-list 99 deny any
(config)# line vty 0 4
(config-line)# access-class 1 in
(config-line)# end
thank you!
08-24-2009 09:56 AM
Keith,
For SSH, you would need a domain name configured on the router or switch, host name, and a ssl keys generated. For telnet, the config looks right, but your access-class would reference 99.
line vty 0 4
access-class 99 in
To generate your ssl keys:
crypto key generate rsa general mod 1024
HTH,
John
08-24-2009 12:41 PM
Your information is helpful. Thank you :-)
08-24-2009 06:53 PM
Don't forget to give the man a rating.
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