Red Hat Training

A Red Hat training course is available for Red Hat Enterprise Linux

8.12. 验证冗余的网络配置合作

如果设备用于备份目的,以防止或恢复特定系统故障,则网络冗余是一个过程。以下流程描述了如何验证冗余团队的网络配置:
流程
  1. 从组接口 Ping 目标 IP。例如:
    ~]# ping -I team0 DSTADDR
  2. 查看处于 活跃 模式的接口:
    ~]#  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
    enp1s0活动 接口。
  3. 设置 活跃 端口接口缩减:
    ~]# ip link set enp1s0 down
  4. 检查 备份 接口是否已启动:
    ~]#  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
    enp2s0 现在是 活动 接口。
  5. 检查您是否仍然可以从团队接口 ping 目标 IP:
    ~]# ping -I team0 DSTADDR