| 场景 | 长连接被中途断开 |
|---|---|
| 适用 | 三厂(参数名与默认值各不相同) |
| 思路 | 延长 tcp/udp 超时,或让应用侧发心跳包维持会话 |
思科 IOS
思科 IOS
ip nat translation timeout 86400
ip nat translation tcp-timeout 86400
ip nat translation udp-timeout 300
show ip nat translations | include tcp
show run | include ip nat translation华为 VRP
华为 VRP
display nat session all
display nat session all verbose # 观察剩余老化时间
! 会话老化时间由系统视图下的会话管理参数控制(命令随版本,建议用 ? 补全确认)H3C Comware
H3C Comware
display nat session all
display nat session verbose
display current-configuration | include aging差异:思科可在全局精确设置 tcp/udp/icmp 超时;华为/H3C 相关参数随版本与平台不同,建议先用 display nat session verbose 观察实际剩余时间,再决定调参或改用应用侧心跳。