灵易深论坛

 找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 83|回复: 1

思科路由器严重卡顿故障处理

[复制链接]

70

主题

9

回帖

176

积分

管理员

积分
176
发表于 2025-2-10 16:03:14 | 显示全部楼层 |阅读模式
show process cpu sorted | ex 0.00

发现CPU负载接近100%


sh ip nat statistics
show ip cache flow  查看ip是否有异常流量
发现192.168.0.21有大量异常流量
全局限制连接数
ip nat translation max-entri all-host 1000  限制单一IP连接数为1000
NAT 会话长时间不释放会导致 NAT 表膨胀,增加 CPU 负担。降低超时时间可以缓解:
ip nat translation timeout 120
ip nat translation tcp-timeout 300
ip nat translation udp-timeout 60
ip nat translation finrst-timeout 30
120 秒:全局 NAT 连接超时。
300 秒:TCP 连接超时(默认 86400 秒)。
60 秒:UDP 连接超时。
30 秒:TCP FIN/RST 连接超时,加速 NAT 连接回收。

禁用0.21上网后,cpu负载降下来,然后取消禁用

禁用上网命令,已取消
access-list 121 deny ip host 192.168.0.21 any
access-list 121 permit ip any any
interface GigabitEthernet0/1
ip access-group 121 in

对0.21进行QOS限流,限速1024kbps



access-list 21 permit ip host 192.168.0.21 any


class-map match-any LIMIT_021
match access-group 21

policy-map POLICE_021
class LIMIT_021
  police 1024000 conform-action transmit exceed-action drop

interface GigabitEthernet0/1
service-policy input POLICE_021



回复

使用道具 举报

101

主题

29

回帖

302

积分

超级版主

积分
302
发表于 2025-3-5 14:34:39 | 显示全部楼层
个别主机连接数通过sh ip nat statistics看到的实际连接数量进行独立设置:
ip nat translation max-entries host 192.168.0.5 300000
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|手机版|灵易深论坛 ( 沪ICP备2020036158号-2 )

GMT+8, 2025-6-21 21:28 , Processed in 0.013838 second(s), 21 queries .

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

快速回复 返回顶部 返回列表