cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
4400
Views
0
Helpful
1
Replies

VTY Access List problems

Dale Sanderson
Level 1
Level 1

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

1 Reply 1

Dale Sanderson
Level 1
Level 1

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

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: