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

VTY Access List problems

Hello,

I am currently setting up a few switches and one configuration point is to secure acccess via telnet from only certain IP's

I have created the access list as shown below :

access-list 20 permit 192.168.1.0  0.0.0.255
access-list 20 permit 10.44.1.2

And sh line shows 0 - 15 VTY lines

And then apply this using the syntax below :

en
conf t

line 0 15
access-class 20 in
end
wr

This then results in the below output :

switch1#sh run | beg line vty
line vty 0 4
access-class 20 in
password 7 xxx
line vty 5 14
access-class 20 in
password xxx
line vty 15
password xxx

As you can see it only appears that 0 4, then 5 - 14 are protected and line 15 does not have the applicable access list applied

Any help at all would be greatly appriciated

Cheers

Everyone's tags (4)
1 REPLY
Community Member

Re: VTY Access List problems

This is resolved - for anyone else that may have an issue I didn't check my syntax; in conf t I should have been using :

line vty 0 15

and then apply the access-class

So, layer 8 error

Cheers

3977
Views
0
Helpful
1
Replies
CreatePlease to create content