大网数据广告活动
服务器运维问答

How to route a traffic from an IP/host on a certain to another host/IP on the same port

· 52CE 我爱测

I have situation where my customer shutting down his old Linux host( examplehost01.example.com ) which runs an application listening on the port 7001 , where he created the new Server and they want to move all the traffic to new …

问题原文

原帖链接 · user294110 · CC BY-SA 4.0

I have situation where my customer shutting down his old Linux host(examplehost01.example.com) which runs an application listening on the port 7001, where he created the new Server and they want to move all the traffic to new Server(examplehost02.example.com).

examplehost01.example.com: 7001 (old Server)
examplehost02.example.com: (New Server)

How we can redirect all the traffic on examplehost01.example.com Server on port 7001 to new Server examplehost02.example.com at port 7001?

These Servers are in the same network.

any help would be much appreciated.

已采纳解答

原帖链接 · John Mahowald · CC BY-SA 4.0

Server migrations are when you discover what name people really are using for the server.

Create in DNS a service name for this, say examplething.example.com Which is not a specific host, but the frontend of this application.

Create CNAME records or otherwise point it to examplehost02. This would be the opportunity to introduce a load balancer or high availability cluster, if your design includes that.

Reconfigure all clients to point to the permanent service name examplething.example.com. Explain that the server is being replaced to maintain performance and availability of the system. And that as a part of this application focused approach, you now wish to make the name outlast any one server.

Keep the old name and IP for compatibility. Such as assigning the 01 IP to the 02 server. Set an end date for when it will be retired and the old examplehost01 name removed. Record connections to the old IP, such as with firewall logging rules, to find remaining not migrated clients.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2022-06-24)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。