欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  数据库

line vty 0 4上面用access-class 5 out 只能限制 telnet 的播出,

程序员文章站 2022-03-20 20:54:05
...

lili_switch(config)#access-list 5 permit host 61.164.69.169 lili_switch(config)#access-list 5 permit 192.168.0.0 0.0.255.255 lili_switch(config)#exit lili_switch#telnet 61.164.69.169 Trying 61.164.69.169 ... Open User Access Verification P

lili_switch(config)#access-list 5 permit host 61.164.69.169

lili_switch(config)#access-list 5 permit 192.168.0.0 0.0.255.255

lili_switch(config)#exit

lili_switch#telnet 61.164.69.169

Trying 61.164.69.169 ... Open

User Access Verification

Password:

Password:

Password:

% Bad passwords

[Connection to 61.164.69.169 closed by foreign host]

lili_switch#telnet 61.164.69.168

Trying 61.164.69.168 ...

% Connections to that host not permitted from this terminal

lili_switch#telnet 61.164.69.166

Trying 61.164.69.166 ...

% Connections to that host not permitted from this terminal

lili_switch#