CISCO 关闭4786端口解决方法 cisco IOS and IOS XE software Smart Install "protocol Misuse"

先确认交换机是否支持smart install服务

检查命令如下:

switch#show vstack config | inc Role 

Role:Client (SmartInstall enabled

或 

switch#show vstack config | inc Role 

Role:Director (SmartInstall enabled)

1、如果支持smart install 可通过no vstack关闭smart install 

switch(config)#no vstack

switch#show vstack config 

Role: Client (SmartInstall disabled)

switch#show vstack config  

Role: Director (SmartInstall disabled)

关闭了smart install之后tcp 4786端口也会关闭。

通过show tcp brief all 查看交换机当前监听的tcp端口。

1
2
3
4
5
6
7
switch #show tcp brief all
TCB Local Address Foreign Address (state)
05FD9F98  0.0 . 0.0 . 4786  *.* LISTEN
0568FFFC  0.0 . 0.0 . 443  *.* LISTEN
0568F038  0.0 . 0.0 . 443  *.* LISTEN
0568E428  0.0 . 0.0 . 80  *.* LISTEN
0568D818  0.0 . 0.0 . 80  *.* LISTEN

2、 如果设备不支持no vstack ,且在show tcp brief all 中有tcp 4786端口,那么可以通过acl限制端口的访问。

例如:

1
2
3
4
5
ip access-list extended DropTCP4786
  deny tcp any any eq  4786 
  permit ip any any 
interface  GigabitEthernet0/ 0 
  ip access-group DropTCP4786 in

转载于:https://www.cnblogs.com/imp-W/p/10690253.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值