OSPF를 사용하도록 Bird를 어떻게 구성합니까?

OSPF를 사용하도록 Bird를 어떻게 구성합니까?

다음 토폴로지로 네트워크를 구성하고 있습니다.

회로망

제가 해야 할 일은 Anycast에서 제공하고 OSPF에서 발표한 서비스를 제공하는 것입니다. 라우터에서 OSPF를 구성했습니다. 또한 두 서버 모두에서 동일한 IP를 사용하여 더미 인터페이스를 만들었습니다. 하지만 이제는 클라이언트가 Anycast IP를 통해 서버에 액세스할 수 있도록 서버에서 Bird를 구성하는 방법을 잘 모르겠습니다. GNS3에서 네트워크를 시뮬레이션하고 있습니다.

답변1

서버에서는 다음 구성을 사용해 볼 수 있습니다.

router id x.x.x.x; 

protocol device {
}

protocol kernel {
        metric 64;      # Use explicit kernel route metric to avoid collisions
                        # with non-BIRD routes in the kernel routing table
        import none;
        export all;     # Actually insert routes into the kernel routing table
}

protocol static {
        import all;
}

protocol ospf myOSPF {
        import all;
        export all;

    area 0 {
        interface "Your dummy interface name" {
               cost 5;
               type broadcast;
               hello 5; retransmit 2; wait 10; dead 20;
               authentication cryptographic; password "XXXX";
         };
     };
}

이게 도움이 되길 바란다!

관련 정보