场景,2台机器(都已有staich public/private IP), 提供冗余性做Active/Standby架构,需要购买portable public 并进行配置和演练。
步骤,分2步,A. 事先配置Portable IP, B,分别在2台机器上配置,并演练。
- A 事先配置Portable IP
|
step |
名称 |
描述 |
|
0 |
环境 |
eth0是private network, eth1 是public network
|
|
1 |
查看原来公网ip |
cat /etc/sysconfig/network-scripts/ifcfg-eth1
|
|
2 |
查看portable ip和gateway |
Network -->ip managerment-->VLANS
菜单 network, IP management, VLAN 可以看到 fcr01.tok01的VLAN名称 点击VLAN,显示详细信息,最下面subnet 部分,有type = primary, portable 的subnet, 点开 弹出 portal IP address pool, 注意有3个被系统预留(network, gateway,broadcast), 你只有一个可用IP。 此外 gateway portable IP就是你在GuestOS配置网卡设置的gateway
|
|
3 |
新建网络文件,增加一个portable ip |
cp /etc/sysconfig/network-scripts/ifcfg-eth1 /etc/sysconfig/network-scripts/ifcfg-eth0-1 IPADDR=portable ip GATEWAY=portable gateway Portable ip=119.81.129.190 Portable gateway = 119.81.129.189
|
|
4 |
重启网络 |
service network restart
|
|
5 |
重启VM |
shutdown -r now // 这一步应该不用, 网卡重启,虚机可以不用重启 (todo need verify)
|
|
6 |
检查网络连通性
|
ping public ip ping portable ip
|
|
7 |
检查应用端口 |
枚举应用各端口
|
|
8 |
检查业务流程能否跑通 |
|
- B 切换Portable IP
|
step |
名称 |
描述 | |||
|
0 |
环境 |
A/S 2台机器
| |||
|
1 |
切换 机器portable IP |
先做A机,然后B机
Todo: 按照本项目实际配置的IP,修改下面操作步骤
| |||
|
2 |
|
|
本文档详细介绍了如何在两台机器间配置和切换Portable IP,实现Active/Standby架构下的冗余性。首先,需在一台机器上配置Portable IP,并验证网络连通性和应用端口;其次,在另一台机器上重复此过程,完成Portable IP的切换。适用于需要高可用性的网络环境。
1512

被折叠的 条评论
为什么被折叠?



