본문 바로가기

Networking

BFD Configuration on Tier-0 and Router

 

1. 우선 Tier-0 Gateway에서 BFD를 활성화 합니다.

기본적으로 BFD Multiplier는 3, BFD interval은 500ms로 설정됩니다.

 

## TIMERS & PASSWORD에 있는 Hold Down Time과 Keep Alive Time은 BGP 관련 설정이며, 만약 BGP와 BFD가 모두 활성화 되어 있는 경우 BFD 설정이 우선 시

## 일반적으로 Hold Down Time과 Keep Alive Time은 3, 1로 설정

 

2. Router(본 케이스는 vyos)에서 BFD 설정을 진행합니다.

2-1. Router에서 인터페이스별로 BFD를 설정합니다.

vyos@vyos:~$ show interfaces
Codes: S - State, L - Link, u - Up, D - Down, A - Admin Down
Interface        IP Address                        S/L  Description
---------        ----------                        ---  -----------
eth0             x.x.x.x/20                  u/u
eth1             192.168.1.1/24                    u/u
eth2             192.168.10.1/24                   u/u
eth3             192.168.11.1/24                   u/u
eth4             -                                 u/u
eth4.1612        192.168.12.1/24                   u/u  VLAN 1612
eth5             -                                 u/u
eth5.1613        192.168.13.1/24                   u/u  VLAN 1613
lo               127.0.0.1/8                       u/u
                 ::1/128

vyos@vyos:~$ configure
[edit]
vyos@vyos# set protocols bfd peer 192.168.12.11 source address 192.168.12.1
[edit]
vyos@vyos# set protocols bfd peer 192.168.12.12 source address 192.168.12.1
[edit]
vyos@vyos# set protocols bfd peer 192.168.13.12 source address 192.168.13.1
[edit]
vyos@vyos# set protocols bfd peer 192.168.13.11 source address 192.168.13.1
[edit]

 

2-2. Router에서 BFD Multiplier와 Interval을 설정합니다.

vyos@vyos# set protocols bfd peer 192.168.12.11 interval multiplier 3
[edit]
vyos@vyos# set protocols bfd peer 192.168.12.12 interval multiplier 3
[edit]
vyos@vyos# set protocols bfd peer 192.168.13.11 interval multiplier 3
[edit]
vyos@vyos# set protocols bfd peer 192.168.13.12 interval multiplier 3
[edit]
 
vyos@vyos# set protocols bfd peer 192.168.12.11 interval transmit 500
[edit]
vyos@vyos# set protocols bfd peer 192.168.12.12 interval transmit 500
[edit]
vyos@vyos# set protocols bfd peer 192.168.13.11 interval transmit 500
[edit]
vyos@vyos# set protocols bfd peer 192.168.13.12 interval transmit 500
[edit]

 

2-3. BGP에서 BFD를 활성화 합니다.

vyos@vyos# set protocols bgp 65002 neighbor 192.168.12.11 bfd
[edit]
vyos@vyos# set protocols bgp 65002 neighbor 192.168.12.12 bfd
[edit]
vyos@vyos# set protocols bgp 65002 neighbor 192.168.13.11 bfd
[edit]
vyos@vyos# set protocols bgp 65002 neighbor 192.168.13.12 bfd
[edit]
 
vyos@vyos# save
Warning: you have uncommitted changes that will not be saved.
 
Saving configuration to '/config/config.boot'...
Done
[edit]
vyos@vyos# commit
[edit]

 

2-4. Router에서 BFD 상태를 조회합니다.

vyos@vyos:~$ show protocols bfd peer
BFD Peers:
        peer 192.168.13.12 vrf default interface eth5.1613
                ID: 681435353
                Remote ID: 2163667405
                Status: up
                Uptime: 2 hour(s), 9 minute(s), 53 second(s)
                Diagnostics: ok
                Remote diagnostics: ok
                Peer Type: configured
                Local timers:
                        Detect-multiplier: 3
                        Receive interval: 300ms
                        Transmission interval: 500ms
                        Echo transmission interval: 50ms
                Remote timers:
                        Detect-multiplier: 3
                        Receive interval: 500ms
                        Transmission interval: 500ms
                        Echo transmission interval: 0ms

        peer 192.168.13.11 vrf default interface eth5.1613
                ID: 4052008042
                Remote ID: 3337763264
                Status: up
                Uptime: 2 hour(s), 9 minute(s), 53 second(s)
                Diagnostics: ok
                Remote diagnostics: ok
                Peer Type: configured
                Local timers:
                        Detect-multiplier: 3
                        Receive interval: 300ms
                        Transmission interval: 500ms
                        Echo transmission interval: 50ms
                Remote timers:
                        Detect-multiplier: 3
                        Receive interval: 500ms
                        Transmission interval: 500ms
                        Echo transmission interval: 0ms

        peer 192.168.12.12 vrf default interface eth4.1612
                ID: 3534864524
                Remote ID: 1639802836
                Status: up
                Uptime: 2 hour(s), 9 minute(s), 53 second(s)
                Diagnostics: ok
                Remote diagnostics: ok
                Peer Type: configured
                Local timers:
                        Detect-multiplier: 3
                        Receive interval: 300ms
                        Transmission interval: 500ms
                        Echo transmission interval: 50ms
                Remote timers:
                        Detect-multiplier: 3
                        Receive interval: 500ms
                        Transmission interval: 500ms
                        Echo transmission interval: 0ms

        peer 192.168.12.11 vrf default interface eth4.1612
                ID: 4233090250
                Remote ID: 322826468
                Status: up
                Uptime: 2 hour(s), 9 minute(s), 53 second(s)
                Diagnostics: ok
                Remote diagnostics: ok
                Peer Type: configured
                Local timers:
                        Detect-multiplier: 3
                        Receive interval: 300ms
                        Transmission interval: 500ms
                        Echo transmission interval: 50ms
                Remote timers:
                        Detect-multiplier: 3
                        Receive interval: 500ms
                        Transmission interval: 500ms
                        Echo transmission interval: 0ms