8.12. 验证冗余的网络配置合作
如果设备用于备份目的,以防止或恢复特定系统故障,则网络冗余是一个过程。以下流程描述了如何验证冗余团队的网络配置:
流程
- 从组接口 Ping 目标 IP。例如:
~]# ping -I team0 DSTADDR - 查看处于
活跃模式的接口:enp1s0 是~]# teamdctl team0 state setup: runner: activebackup ports: enp1s0 link watches: link summary: up instance[link_watch_0]: name: ethtool link: up down count: 0 enp2s0 link watches: link summary: up instance[link_watch_0]: name: ethtool link: up down count: 0 runner: active port: enp1s0活动接口。 - 设置
活跃端口接口缩减:~]# ip link set enp1s0 down - 检查
备份接口是否已启动:enp2s0 现在是~]# teamdctl team0 state setup: runner: activebackup ports: enp1s0 link watches: link summary: down instance[link_watch_0]: name: ethtool link: down down count: 1 enp2s0 link watches: link summary: up instance[link_watch_0]: name: ethtool link: up down count: 0 runner: active port: enp2s0活动接口。 - 检查您是否仍然可以从团队接口 ping 目标 IP:
~]# ping -I team0 DSTADDR