line vty 0 4上面用access-class 5 out 只能限制 telnet 的播出,无法限制路由器ping 等之类的数据流出

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#

你可能感兴趣的:(网络,职场,休闲)