Bfd Ospfv3

Test to check BFD protocol in OSPFv3.

Test Connection

Description

Tests BFD connection in OSPFv3.

Scenario

Step 1: Set the following configuration in DUT0 :

set interfaces dummy dum0 address '2001::1/128'
set interfaces dummy dum0 ipv6 ospfv3 area 0.0.0.0
set interfaces ethernet eth0 address '2001:db8:0:10::1/64'
set interfaces ethernet eth0 ipv6 ospfv3 area 0.0.0.0
set interfaces ethernet eth0 ipv6 ospfv3 bfd
set interfaces ethernet eth0 ipv6 ospfv3 network point-to-point
set protocols ospfv3 area 0.0.0.0 range '2001:db8:0:10::/64'
set protocols ospfv3 parameters router-id 1.1.1.1
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

Step 2: Set the following configuration in DUT1 :

set interfaces dummy dum0 address '2001::2/128'
set interfaces dummy dum0 ipv6 ospfv3 area 0.0.0.0
set interfaces ethernet eth0 address '2001:db8:0:10::2/64'
set interfaces ethernet eth0 ipv6 ospfv3 area 0.0.0.0
set interfaces ethernet eth0 ipv6 ospfv3 bfd
set interfaces ethernet eth0 ipv6 ospfv3 network point-to-point
set protocols ospfv3 area 0.0.0.0 range '2001:db8:0:10::/64'
set protocols ospfv3 parameters router-id 2.2.2.2
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

Step 3: Ping IP address 2001:db8:0:10::2 from DUT0:

admin@DUT0$ ping 2001:db8:0:10::2 count 1 size 56 timeout 1
Show output
PING 2001:db8:0:10::2(2001:db8:0:10::2) 56 data bytes
64 bytes from 2001:db8:0:10::2: icmp_seq=1 ttl=64 time=0.640 ms

--- 2001:db8:0:10::2 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.640/0.640/0.640/0.000 ms

Step 4: Ping IP address 2001:db8:0:10::1 from DUT1:

admin@DUT1$ ping 2001:db8:0:10::1 count 1 size 56 timeout 1
Show output
PING 2001:db8:0:10::1(2001:db8:0:10::1) 56 data bytes
64 bytes from 2001:db8:0:10::1: icmp_seq=1 ttl=64 time=0.446 ms

--- 2001:db8:0:10::1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.446/0.446/0.446/0.000 ms

Step 5: Run command protocols ospfv3 show neighbor at DUT0 and check if output matches the following regular expressions:

2.2.2.2
Show output
Neighbor ID     Pri    DeadTime    State/IfState         Duration I/F[State]
2.2.2.2           1    00:00:39     Init/PointToPoint    00:00:00 eth0[PointToPoint]

Step 6: Run command protocols ospfv3 show neighbor at DUT1 and check if output matches the following regular expressions:

1.1.1.1
Show output
Neighbor ID     Pri    DeadTime    State/IfState         Duration I/F[State]
1.1.1.1           1    00:00:39     Full/PointToPoint    00:00:00 eth0[PointToPoint]

Step 7: Run command protocols bfd show peers at DUT0 and check if output matches the following regular expressions:

Status: up
Show output
BFD Peers:
        peer fe80::dcad:beff:feef:6c10 local-address fe80::dcad:beff:feef:6c00 vrf default interface eth0
                ID: 1183478145
                Remote ID: 921290560
                Active mode
                Status: up
                Uptime: 2 second(s)
                Diagnostics: ok
                Remote diagnostics: ok
                Peer Type: dynamic
                RTT min/avg/max: 0/0/0 usec
                Local timers:
                        Detect-multiplier: 3
                        Receive interval: 300ms
                        Transmission interval: 300ms
                        Echo receive interval: 50ms
                        Echo transmission interval: disabled
                Remote timers:
                        Detect-multiplier: 3
                        Receive interval: 300ms
                        Transmission interval: 300ms
                        Echo receive interval: 50ms

Step 8: Run command protocols bfd show peers at DUT1 and check if output matches the following regular expressions:

Status: up
Show output
BFD Peers:
        peer fe80::dcad:beff:feef:6c00 local-address fe80::dcad:beff:feef:6c10 vrf default interface eth0
                ID: 921290560
                Remote ID: 1183478145
                Active mode
                Status: up
                Uptime: 2 second(s)
                Diagnostics: ok
                Remote diagnostics: ok
                Peer Type: dynamic
                RTT min/avg/max: 0/0/0 usec
                Local timers:
                        Detect-multiplier: 3
                        Receive interval: 300ms
                        Transmission interval: 300ms
                        Echo receive interval: 50ms
                        Echo transmission interval: disabled
                Remote timers:
                        Detect-multiplier: 3
                        Receive interval: 300ms
                        Transmission interval: 300ms
                        Echo receive interval: 50ms

Test Connection With Three Devices

Description

Tests BFD connection in OSPFv3 between 3 devices.

Scenario

Step 1: Set the following configuration in DUT0 :

set interfaces dummy dum0 address '2001::1/128'
set interfaces dummy dum0 ipv6 ospfv3 area 0.0.0.0
set interfaces ethernet eth0 address '2001:db8:0:10::1/64'
set interfaces ethernet eth0 ipv6 ospfv3 area 0.0.0.0
set interfaces ethernet eth0 ipv6 ospfv3 bfd
set interfaces ethernet eth0 ipv6 ospfv3 network point-to-point
set interfaces ethernet eth1 address '2001:db8:0:20::1/64'
set interfaces ethernet eth1 ipv6 ospfv3 area 0.0.0.0
set interfaces ethernet eth1 ipv6 ospfv3 bfd
set interfaces ethernet eth1 ipv6 ospfv3 network point-to-point
set protocols ospfv3 area 0.0.0.0
set protocols ospfv3 parameters router-id 1.1.1.1
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

Step 2: Set the following configuration in DUT1 :

set interfaces dummy dum0 address '2001::2/128'
set interfaces dummy dum0 ipv6 ospfv3 area 0.0.0.0
set interfaces ethernet eth0 address '2001:db8:0:20::2/64'
set interfaces ethernet eth0 ipv6 ospfv3 area 0.0.0.0
set interfaces ethernet eth0 ipv6 ospfv3 bfd
set interfaces ethernet eth0 ipv6 ospfv3 network point-to-point
set interfaces ethernet eth1 address '2001:db8:0:30::2/64'
set interfaces ethernet eth1 ipv6 ospfv3 area 0.0.0.0
set interfaces ethernet eth1 ipv6 ospfv3 bfd
set interfaces ethernet eth1 ipv6 ospfv3 network point-to-point
set protocols ospfv3 area 0.0.0.0
set protocols ospfv3 parameters router-id 2.2.2.2
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

Step 3: Set the following configuration in DUT2 :

set interfaces dummy dum0 address '2001::3/128'
set interfaces dummy dum0 ipv6 ospfv3 area 0.0.0.0
set interfaces ethernet eth0 address '2001:db8:0:10::3/64'
set interfaces ethernet eth0 ipv6 ospfv3 area 0.0.0.0
set interfaces ethernet eth0 ipv6 ospfv3 bfd
set interfaces ethernet eth0 ipv6 ospfv3 network point-to-point
set interfaces ethernet eth1 address '2001:db8:0:30::3/64'
set interfaces ethernet eth1 ipv6 ospfv3 area 0.0.0.0
set interfaces ethernet eth1 ipv6 ospfv3 bfd
set interfaces ethernet eth1 ipv6 ospfv3 network point-to-point
set protocols ospfv3 area 0.0.0.0
set protocols ospfv3 parameters router-id 3.3.3.3
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

Step 4: Ping IP address 2001:db8:0:10::3 from DUT0:

admin@DUT0$ ping 2001:db8:0:10::3 count 1 size 56 timeout 1
Show output
PING 2001:db8:0:10::3(2001:db8:0:10::3) 56 data bytes
64 bytes from 2001:db8:0:10::3: icmp_seq=1 ttl=64 time=0.251 ms

--- 2001:db8:0:10::3 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.251/0.251/0.251/0.000 ms

Step 5: Ping IP address 2001:db8:0:20::2 from DUT0:

admin@DUT0$ ping 2001:db8:0:20::2 count 1 size 56 timeout 1
Show output
PING 2001:db8:0:20::2(2001:db8:0:20::2) 56 data bytes
64 bytes from 2001:db8:0:20::2: icmp_seq=1 ttl=64 time=0.375 ms

--- 2001:db8:0:20::2 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.375/0.375/0.375/0.000 ms

Step 6: Ping IP address 2001:db8:0:20::1 from DUT1:

admin@DUT1$ ping 2001:db8:0:20::1 count 1 size 56 timeout 1
Show output
PING 2001:db8:0:20::1(2001:db8:0:20::1) 56 data bytes
64 bytes from 2001:db8:0:20::1: icmp_seq=1 ttl=64 time=0.396 ms

--- 2001:db8:0:20::1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.396/0.396/0.396/0.000 ms

Step 7: Ping IP address 2001:db8:0:30::3 from DUT1:

admin@DUT1$ ping 2001:db8:0:30::3 count 1 size 56 timeout 1
Show output
PING 2001:db8:0:30::3(2001:db8:0:30::3) 56 data bytes
64 bytes from 2001:db8:0:30::3: icmp_seq=1 ttl=64 time=0.505 ms

--- 2001:db8:0:30::3 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.505/0.505/0.505/0.000 ms

Step 8: Ping IP address 2001:db8:0:10::1 from DUT2:

admin@DUT2$ ping 2001:db8:0:10::1 count 1 size 56 timeout 1
Show output
PING 2001:db8:0:10::1(2001:db8:0:10::1) 56 data bytes
64 bytes from 2001:db8:0:10::1: icmp_seq=1 ttl=64 time=0.430 ms

--- 2001:db8:0:10::1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.430/0.430/0.430/0.000 ms

Step 9: Ping IP address 2001:db8:0:30::2 from DUT2:

admin@DUT2$ ping 2001:db8:0:30::2 count 1 size 56 timeout 1
Show output
PING 2001:db8:0:30::2(2001:db8:0:30::2) 56 data bytes
64 bytes from 2001:db8:0:30::2: icmp_seq=1 ttl=64 time=0.185 ms

--- 2001:db8:0:30::2 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.185/0.185/0.185/0.000 ms

Step 10: Run command protocols ospfv3 show neighbor at DUT0 and check if output matches the following regular expressions:

3.3.3.3
Show output
Neighbor ID     Pri    DeadTime    State/IfState         Duration I/F[State]
2.2.2.2           1    00:00:37     Init/PointToPoint    00:00:03 eth0[PointToPoint]
3.3.3.3           1    00:00:39     Init/PointToPoint    00:00:01 eth0[PointToPoint]
2.2.2.2           1    00:00:37     Init/PointToPoint    00:00:03 eth1[PointToPoint]
3.3.3.3           1    00:00:39     Init/PointToPoint    00:00:01 eth1[PointToPoint]

Step 11: Run command protocols ospfv3 show neighbor at DUT0 and check if output matches the following regular expressions:

2.2.2.2
Show output
Neighbor ID     Pri    DeadTime    State/IfState         Duration I/F[State]
2.2.2.2           1    00:00:37     Init/PointToPoint    00:00:03 eth0[PointToPoint]
3.3.3.3           1    00:00:39     Init/PointToPoint    00:00:01 eth0[PointToPoint]
2.2.2.2           1    00:00:37     Init/PointToPoint    00:00:03 eth1[PointToPoint]
3.3.3.3           1    00:00:39     Init/PointToPoint    00:00:01 eth1[PointToPoint]

Step 12: Run command protocols ospfv3 show neighbor at DUT1 and check if output matches the following regular expressions:

1.1.1.1
Show output
Neighbor ID     Pri    DeadTime    State/IfState         Duration I/F[State]
1.1.1.1           1    00:00:39  ExStart/PointToPoint    00:00:01 eth0[PointToPoint]
3.3.3.3           1    00:00:32  ExStart/PointToPoint    00:00:01 eth0[PointToPoint]
1.1.1.1           1    00:00:39  ExStart/PointToPoint    00:00:01 eth1[PointToPoint]
3.3.3.3           1    00:00:32  ExStart/PointToPoint    00:00:01 eth1[PointToPoint]

Step 13: Run command protocols ospfv3 show neighbor at DUT1 and check if output matches the following regular expressions:

3.3.3.3
Show output
Neighbor ID     Pri    DeadTime    State/IfState         Duration I/F[State]
1.1.1.1           1    00:00:39  ExStart/PointToPoint    00:00:01 eth0[PointToPoint]
3.3.3.3           1    00:00:32  ExStart/PointToPoint    00:00:01 eth0[PointToPoint]
1.1.1.1           1    00:00:39  ExStart/PointToPoint    00:00:01 eth1[PointToPoint]
3.3.3.3           1    00:00:32  ExStart/PointToPoint    00:00:01 eth1[PointToPoint]

Step 14: Run command protocols ospfv3 show neighbor at DUT2 and check if output matches the following regular expressions:

1.1.1.1
Show output
Neighbor ID     Pri    DeadTime    State/IfState         Duration I/F[State]
1.1.1.1           1    00:00:38  ExStart/PointToPoint    00:00:01 eth0[PointToPoint]
1.1.1.1           1    00:00:38  ExStart/PointToPoint    00:00:01 eth1[PointToPoint]

Step 15: Run command protocols ospfv3 show neighbor at DUT2 and check if output matches the following regular expressions:

2.2.2.2
Show output
Neighbor ID     Pri    DeadTime    State/IfState         Duration I/F[State]
1.1.1.1           1    00:00:36  ExStart/PointToPoint    00:00:03 eth0[PointToPoint]
2.2.2.2           1    00:00:38  ExStart/PointToPoint    00:00:01 eth0[PointToPoint]
1.1.1.1           1    00:00:36  ExStart/PointToPoint    00:00:03 eth1[PointToPoint]
2.2.2.2           1    00:00:38  ExStart/PointToPoint    00:00:01 eth1[PointToPoint]

Step 16: Run command protocols bfd show peers at DUT0 and check if output matches the following regular expressions:

eth0
Show output
BFD Peers:
        peer fe80::dcad:beff:feef:6c11 local-address fe80::dcad:beff:feef:6c00 vrf default interface eth0
                ID: 2684029674
                Remote ID: 1066848639
                Active mode
                Status: up
                Uptime: 1 second(s)
                Diagnostics: ok
                Remote diagnostics: ok
                Peer Type: dynamic
                RTT min/avg/max: 0/0/0 usec
                Local timers:
                        Detect-multiplier: 3
                        Receive interval: 300ms
                        Transmission interval: 300ms
                        Echo receive interval: 50ms
                        Echo transmission interval: disabled
                Remote timers:
                        Detect-multiplier: 3
                        Receive interval: 300ms
                        Transmission interval: 300ms
                        Echo receive interval: 50ms

        peer fe80::dcad:beff:feef:6c21 local-address fe80::dcad:beff:feef:6c00 vrf default interface eth0
                ID: 2367536385
                Remote ID: 2902970950
                Active mode
                Status: up
                Uptime: 1 second(s)
                Diagnostics: ok
                Remote diagnostics: ok
                Peer Type: dynamic
                RTT min/avg/max: 0/0/0 usec
                Local timers:
                        Detect-multiplier: 3
                        Receive interval: 300ms
                        Transmission interval: 300ms
                        Echo receive interval: 50ms
                        Echo transmission interval: disabled
                Remote timers:
                        Detect-multiplier: 3
                        Receive interval: 300ms
                        Transmission interval: 300ms
                        Echo receive interval: 50ms

        peer fe80::dcad:beff:feef:6c11 local-address fe80::dcad:beff:feef:6c01 vrf default interface eth1
                ID: 2776200628
                Remote ID: 0
                Active mode
                Status: down
                Downtime: 3 second(s)
                Diagnostics: ok
                Remote diagnostics: ok
                Peer Type: dynamic
                RTT min/avg/max: 0/0/0 usec
                Local timers:
                        Detect-multiplier: 3
                        Receive interval: 300ms
                        Transmission interval: 300ms
                        Echo receive interval: 50ms
                        Echo transmission interval: disabled
                Remote timers:
                        Detect-multiplier: 3
                        Receive interval: 1000ms
                        Transmission interval: 1000ms
                        Echo receive interval: disabled

        peer fe80::dcad:beff:feef:6c21 local-address fe80::dcad:beff:feef:6c01 vrf default interface eth1
                ID: 3641827962
                Remote ID: 0
                Active mode
                Status: down
                Downtime: 3 second(s)
                Diagnostics: ok
                Remote diagnostics: ok
                Peer Type: dynamic
                RTT min/avg/max: 0/0/0 usec
                Local timers:
                        Detect-multiplier: 3
                        Receive interval: 300ms
                        Transmission interval: 300ms
                        Echo receive interval: 50ms
                        Echo transmission interval: disabled
                Remote timers:
                        Detect-multiplier: 3
                        Receive interval: 1000ms
                        Transmission interval: 1000ms
                        Echo receive interval: disabled

Step 17: Run command protocols bfd show peers at DUT0 and check if output matches the following regular expressions:

eth1
Show output
BFD Peers:
        peer fe80::dcad:beff:feef:6c11 local-address fe80::dcad:beff:feef:6c00 vrf default interface eth0
                ID: 2684029674
                Remote ID: 1066848639
                Active mode
                Status: up
                Uptime: 2 second(s)
                Diagnostics: ok
                Remote diagnostics: ok
                Peer Type: dynamic
                RTT min/avg/max: 0/0/0 usec
                Local timers:
                        Detect-multiplier: 3
                        Receive interval: 300ms
                        Transmission interval: 300ms
                        Echo receive interval: 50ms
                        Echo transmission interval: disabled
                Remote timers:
                        Detect-multiplier: 3
                        Receive interval: 300ms
                        Transmission interval: 300ms
                        Echo receive interval: 50ms

        peer fe80::dcad:beff:feef:6c21 local-address fe80::dcad:beff:feef:6c00 vrf default interface eth0
                ID: 2367536385
                Remote ID: 2902970950
                Active mode
                Status: up
                Uptime: 2 second(s)
                Diagnostics: ok
                Remote diagnostics: ok
                Peer Type: dynamic
                RTT min/avg/max: 0/0/0 usec
                Local timers:
                        Detect-multiplier: 3
                        Receive interval: 300ms
                        Transmission interval: 300ms
                        Echo receive interval: 50ms
                        Echo transmission interval: disabled
                Remote timers:
                        Detect-multiplier: 3
                        Receive interval: 300ms
                        Transmission interval: 300ms
                        Echo receive interval: 50ms

        peer fe80::dcad:beff:feef:6c11 local-address fe80::dcad:beff:feef:6c01 vrf default interface eth1
                ID: 2776200628
                Remote ID: 0
                Active mode
                Status: down
                Downtime: 4 second(s)
                Diagnostics: ok
                Remote diagnostics: ok
                Peer Type: dynamic
                RTT min/avg/max: 0/0/0 usec
                Local timers:
                        Detect-multiplier: 3
                        Receive interval: 300ms
                        Transmission interval: 300ms
                        Echo receive interval: 50ms
                        Echo transmission interval: disabled
                Remote timers:
                        Detect-multiplier: 3
                        Receive interval: 1000ms
                        Transmission interval: 1000ms
                        Echo receive interval: disabled

        peer fe80::dcad:beff:feef:6c21 local-address fe80::dcad:beff:feef:6c01 vrf default interface eth1
                ID: 3641827962
                Remote ID: 0
                Active mode
                Status: down
                Downtime: 4 second(s)
                Diagnostics: ok
                Remote diagnostics: ok
                Peer Type: dynamic
                RTT min/avg/max: 0/0/0 usec
                Local timers:
                        Detect-multiplier: 3
                        Receive interval: 300ms
                        Transmission interval: 300ms
                        Echo receive interval: 50ms
                        Echo transmission interval: disabled
                Remote timers:
                        Detect-multiplier: 3
                        Receive interval: 1000ms
                        Transmission interval: 1000ms
                        Echo receive interval: disabled

Step 18: Run command protocols bfd show peers at DUT1 and check if output matches the following regular expressions:

eth0
Show output
BFD Peers:
        peer fe80::dcad:beff:feef:6c00 local-address fe80::dcad:beff:feef:6c10 vrf default interface eth0
                ID: 1482702469
                Remote ID: 0
                Active mode
                Status: down
                Downtime: 4 second(s)
                Diagnostics: ok
                Remote diagnostics: ok
                Peer Type: dynamic
                RTT min/avg/max: 0/0/0 usec
                Local timers:
                        Detect-multiplier: 3
                        Receive interval: 300ms
                        Transmission interval: 300ms
                        Echo receive interval: 50ms
                        Echo transmission interval: disabled
                Remote timers:
                        Detect-multiplier: 3
                        Receive interval: 1000ms
                        Transmission interval: 1000ms
                        Echo receive interval: disabled

        peer fe80::dcad:beff:feef:6c00 local-address fe80::dcad:beff:feef:6c11 vrf default interface eth1
                ID: 1066848639
                Remote ID: 2684029674
                Active mode
                Status: up
                Uptime: 3 second(s)
                Diagnostics: ok
                Remote diagnostics: ok
                Peer Type: dynamic
                RTT min/avg/max: 0/0/0 usec
                Local timers:
                        Detect-multiplier: 3
                        Receive interval: 300ms
                        Transmission interval: 300ms
                        Echo receive interval: 50ms
                        Echo transmission interval: disabled
                Remote timers:
                        Detect-multiplier: 3
                        Receive interval: 300ms
                        Transmission interval: 300ms
                        Echo receive interval: 50ms

        peer fe80::dcad:beff:feef:6c21 local-address fe80::dcad:beff:feef:6c10 vrf default interface eth0
                ID: 2005715451
                Remote ID: 349662223
                Active mode
                Status: up
                Uptime: 2 second(s)
                Diagnostics: ok
                Remote diagnostics: ok
                Peer Type: dynamic
                RTT min/avg/max: 0/0/0 usec
                Local timers:
                        Detect-multiplier: 3
                        Receive interval: 300ms
                        Transmission interval: 300ms
                        Echo receive interval: 50ms
                        Echo transmission interval: disabled
                Remote timers:
                        Detect-multiplier: 3
                        Receive interval: 300ms
                        Transmission interval: 300ms
                        Echo receive interval: 50ms

        peer fe80::dcad:beff:feef:6c21 local-address fe80::dcad:beff:feef:6c11 vrf default interface eth1
                ID: 241671610
                Remote ID: 0
                Active mode
                Status: down
                Downtime: 4 second(s)
                Diagnostics: ok
                Remote diagnostics: ok
                Peer Type: dynamic
                RTT min/avg/max: 0/0/0 usec
                Local timers:
                        Detect-multiplier: 3
                        Receive interval: 300ms
                        Transmission interval: 300ms
                        Echo receive interval: 50ms
                        Echo transmission interval: disabled
                Remote timers:
                        Detect-multiplier: 3
                        Receive interval: 1000ms
                        Transmission interval: 1000ms
                        Echo receive interval: disabled

Step 19: Run command protocols bfd show peers at DUT1 and check if output matches the following regular expressions:

eth1
Show output
BFD Peers:
        peer fe80::dcad:beff:feef:6c00 local-address fe80::dcad:beff:feef:6c10 vrf default interface eth0
                ID: 1482702469
                Remote ID: 0
                Active mode
                Status: down
                Downtime: 4 second(s)
                Diagnostics: ok
                Remote diagnostics: ok
                Peer Type: dynamic
                RTT min/avg/max: 0/0/0 usec
                Local timers:
                        Detect-multiplier: 3
                        Receive interval: 300ms
                        Transmission interval: 300ms
                        Echo receive interval: 50ms
                        Echo transmission interval: disabled
                Remote timers:
                        Detect-multiplier: 3
                        Receive interval: 1000ms
                        Transmission interval: 1000ms
                        Echo receive interval: disabled

        peer fe80::dcad:beff:feef:6c00 local-address fe80::dcad:beff:feef:6c11 vrf default interface eth1
                ID: 1066848639
                Remote ID: 2684029674
                Active mode
                Status: up
                Uptime: 3 second(s)
                Diagnostics: ok
                Remote diagnostics: ok
                Peer Type: dynamic
                RTT min/avg/max: 0/0/0 usec
                Local timers:
                        Detect-multiplier: 3
                        Receive interval: 300ms
                        Transmission interval: 300ms
                        Echo receive interval: 50ms
                        Echo transmission interval: disabled
                Remote timers:
                        Detect-multiplier: 3
                        Receive interval: 300ms
                        Transmission interval: 300ms
                        Echo receive interval: 50ms

        peer fe80::dcad:beff:feef:6c21 local-address fe80::dcad:beff:feef:6c10 vrf default interface eth0
                ID: 2005715451
                Remote ID: 349662223
                Active mode
                Status: up
                Uptime: 2 second(s)
                Diagnostics: ok
                Remote diagnostics: ok
                Peer Type: dynamic
                RTT min/avg/max: 0/0/0 usec
                Local timers:
                        Detect-multiplier: 3
                        Receive interval: 300ms
                        Transmission interval: 300ms
                        Echo receive interval: 50ms
                        Echo transmission interval: disabled
                Remote timers:
                        Detect-multiplier: 3
                        Receive interval: 300ms
                        Transmission interval: 300ms
                        Echo receive interval: 50ms

        peer fe80::dcad:beff:feef:6c21 local-address fe80::dcad:beff:feef:6c11 vrf default interface eth1
                ID: 241671610
                Remote ID: 0
                Active mode
                Status: down
                Downtime: 4 second(s)
                Diagnostics: ok
                Remote diagnostics: ok
                Peer Type: dynamic
                RTT min/avg/max: 0/0/0 usec
                Local timers:
                        Detect-multiplier: 3
                        Receive interval: 300ms
                        Transmission interval: 300ms
                        Echo receive interval: 50ms
                        Echo transmission interval: disabled
                Remote timers:
                        Detect-multiplier: 3
                        Receive interval: 1000ms
                        Transmission interval: 1000ms
                        Echo receive interval: disabled

Step 20: Run command protocols bfd show peers at DUT2 and check if output matches the following regular expressions:

eth0
Show output
BFD Peers:
        peer fe80::dcad:beff:feef:6c10 local-address fe80::dcad:beff:feef:6c21 vrf default interface eth1
                ID: 349662223
                Remote ID: 2005715451
                Active mode
                Status: up
                Uptime: 1 second(s)
                Diagnostics: ok
                Remote diagnostics: ok
                Peer Type: dynamic
                RTT min/avg/max: 0/0/0 usec
                Local timers:
                        Detect-multiplier: 3
                        Receive interval: 300ms
                        Transmission interval: 300ms
                        Echo receive interval: 50ms
                        Echo transmission interval: disabled
                Remote timers:
                        Detect-multiplier: 3
                        Receive interval: 300ms
                        Transmission interval: 300ms
                        Echo receive interval: 50ms

        peer fe80::dcad:beff:feef:6c00 local-address fe80::dcad:beff:feef:6c21 vrf default interface eth1
                ID: 2902970950
                Remote ID: 2367536385
                Active mode
                Status: up
                Uptime: 2 second(s)
                Diagnostics: ok
                Remote diagnostics: ok
                Peer Type: dynamic
                RTT min/avg/max: 0/0/0 usec
                Local timers:
                        Detect-multiplier: 3
                        Receive interval: 300ms
                        Transmission interval: 300ms
                        Echo receive interval: 50ms
                        Echo transmission interval: disabled
                Remote timers:
                        Detect-multiplier: 3
                        Receive interval: 300ms
                        Transmission interval: 300ms
                        Echo receive interval: 50ms

        peer fe80::dcad:beff:feef:6c10 local-address fe80::dcad:beff:feef:6c20 vrf default interface eth0
                ID: 3380841671
                Remote ID: 0
                Active mode
                Status: down
                Downtime: 2 second(s)
                Diagnostics: ok
                Remote diagnostics: ok
                Peer Type: dynamic
                RTT min/avg/max: 0/0/0 usec
                Local timers:
                        Detect-multiplier: 3
                        Receive interval: 300ms
                        Transmission interval: 300ms
                        Echo receive interval: 50ms
                        Echo transmission interval: disabled
                Remote timers:
                        Detect-multiplier: 3
                        Receive interval: 1000ms
                        Transmission interval: 1000ms
                        Echo receive interval: disabled

        peer fe80::dcad:beff:feef:6c00 local-address fe80::dcad:beff:feef:6c20 vrf default interface eth0
                ID: 1854347166
                Remote ID: 0
                Active mode
                Status: down
                Downtime: 4 second(s)
                Diagnostics: ok
                Remote diagnostics: ok
                Peer Type: dynamic
                RTT min/avg/max: 0/0/0 usec
                Local timers:
                        Detect-multiplier: 3
                        Receive interval: 300ms
                        Transmission interval: 300ms
                        Echo receive interval: 50ms
                        Echo transmission interval: disabled
                Remote timers:
                        Detect-multiplier: 3
                        Receive interval: 1000ms
                        Transmission interval: 1000ms
                        Echo receive interval: disabled

Step 21: Run command protocols bfd show peers at DUT2 and check if output matches the following regular expressions:

eth1
Show output
BFD Peers:
        peer fe80::dcad:beff:feef:6c10 local-address fe80::dcad:beff:feef:6c21 vrf default interface eth1
                ID: 349662223
                Remote ID: 2005715451
                Active mode
                Status: up
                Uptime: 2 second(s)
                Diagnostics: ok
                Remote diagnostics: ok
                Peer Type: dynamic
                RTT min/avg/max: 0/0/0 usec
                Local timers:
                        Detect-multiplier: 3
                        Receive interval: 300ms
                        Transmission interval: 300ms
                        Echo receive interval: 50ms
                        Echo transmission interval: disabled
                Remote timers:
                        Detect-multiplier: 3
                        Receive interval: 300ms
                        Transmission interval: 300ms
                        Echo receive interval: 50ms

        peer fe80::dcad:beff:feef:6c00 local-address fe80::dcad:beff:feef:6c21 vrf default interface eth1
                ID: 2902970950
                Remote ID: 2367536385
                Active mode
                Status: up
                Uptime: 3 second(s)
                Diagnostics: ok
                Remote diagnostics: ok
                Peer Type: dynamic
                RTT min/avg/max: 0/0/0 usec
                Local timers:
                        Detect-multiplier: 3
                        Receive interval: 300ms
                        Transmission interval: 300ms
                        Echo receive interval: 50ms
                        Echo transmission interval: disabled
                Remote timers:
                        Detect-multiplier: 3
                        Receive interval: 300ms
                        Transmission interval: 300ms
                        Echo receive interval: 50ms

        peer fe80::dcad:beff:feef:6c10 local-address fe80::dcad:beff:feef:6c20 vrf default interface eth0
                ID: 3380841671
                Remote ID: 0
                Active mode
                Status: down
                Downtime: 3 second(s)
                Diagnostics: ok
                Remote diagnostics: ok
                Peer Type: dynamic
                RTT min/avg/max: 0/0/0 usec
                Local timers:
                        Detect-multiplier: 3
                        Receive interval: 300ms
                        Transmission interval: 300ms
                        Echo receive interval: 50ms
                        Echo transmission interval: disabled
                Remote timers:
                        Detect-multiplier: 3
                        Receive interval: 1000ms
                        Transmission interval: 1000ms
                        Echo receive interval: disabled

        peer fe80::dcad:beff:feef:6c00 local-address fe80::dcad:beff:feef:6c20 vrf default interface eth0
                ID: 1854347166
                Remote ID: 0
                Active mode
                Status: down
                Downtime: 5 second(s)
                Diagnostics: ok
                Remote diagnostics: ok
                Peer Type: dynamic
                RTT min/avg/max: 0/0/0 usec
                Local timers:
                        Detect-multiplier: 3
                        Receive interval: 300ms
                        Transmission interval: 300ms
                        Echo receive interval: 50ms
                        Echo transmission interval: disabled
                Remote timers:
                        Detect-multiplier: 3
                        Receive interval: 1000ms
                        Transmission interval: 1000ms
                        Echo receive interval: disabled

Test Profile

Description

Checks BFD profile in OSPFv3.

Scenario

Step 1: Set the following configuration in DUT0 :

set interfaces dummy dum0 address '2001::1/128'
set interfaces dummy dum0 ipv6 ospfv3 area 0.0.0.0
set interfaces ethernet eth0 address '2001:db8:0:10::1/64'
set interfaces ethernet eth0 ipv6 ospfv3 area 0.0.0.0
set interfaces ethernet eth0 ipv6 ospfv3 bfd
set interfaces ethernet eth0 ipv6 ospfv3 network point-to-point
set protocols bfd profile PFL detect-multiplier 5
set protocols bfd profile PFL echo-interval 60
set protocols bfd profile PFL echo-mode
set protocols bfd profile PFL passive-mode
set protocols bfd profile PFL receive-interval 400
set protocols bfd profile PFL transmit-interval 400
set protocols ospfv3 area 0.0.0.0 range '2001:db8:0:10::/64'
set protocols ospfv3 parameters router-id 1.1.1.1
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

Step 2: Modify the following configuration lines in DUT0 :

set interfaces ethernet eth0 ipv6 ospfv3 bfd profile PFL

Step 3: Set the following configuration in DUT1 :

set interfaces dummy dum0 address '2001::2/128'
set interfaces dummy dum0 ipv6 ospfv3 area 0.0.0.0
set interfaces ethernet eth0 address '2001:db8:0:10::2/64'
set interfaces ethernet eth0 ipv6 ospfv3 area 0.0.0.0
set interfaces ethernet eth0 ipv6 ospfv3 bfd
set interfaces ethernet eth0 ipv6 ospfv3 network point-to-point
set protocols bfd profile PFL echo-mode
set protocols ospfv3 area 0.0.0.0 range '2001:db8:0:10::/64'
set protocols ospfv3 parameters router-id 2.2.2.2
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

Step 4: Modify the following configuration lines in DUT1 :

set interfaces ethernet eth0 ipv6 ospfv3 bfd profile PFL

Step 5: Ping IP address 2001:db8:0:10::2 from DUT0:

admin@DUT0$ ping 2001:db8:0:10::2 count 1 size 56 timeout 1
Show output
PING 2001:db8:0:10::2(2001:db8:0:10::2) 56 data bytes
64 bytes from 2001:db8:0:10::2: icmp_seq=1 ttl=64 time=0.229 ms

--- 2001:db8:0:10::2 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.229/0.229/0.229/0.000 ms

Step 6: Ping IP address 2001:db8:0:10::1 from DUT1:

admin@DUT1$ ping 2001:db8:0:10::1 count 1 size 56 timeout 1
Show output
PING 2001:db8:0:10::1(2001:db8:0:10::1) 56 data bytes
64 bytes from 2001:db8:0:10::1: icmp_seq=1 ttl=64 time=0.568 ms

--- 2001:db8:0:10::1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.568/0.568/0.568/0.000 ms

Step 7: Run command protocols ospfv3 show neighbor at DUT0 and check if output matches the following regular expressions:

2.2.2.2
Show output
Neighbor ID     Pri    DeadTime    State/IfState         Duration I/F[State]
2.2.2.2           1    00:00:38     Init/PointToPoint    00:00:01 eth0[PointToPoint]

Step 8: Run command protocols ospfv3 show neighbor at DUT1 and check if output matches the following regular expressions:

1.1.1.1
Show output
Neighbor ID     Pri    DeadTime    State/IfState         Duration I/F[State]
1.1.1.1           1    00:00:38     Full/PointToPoint    00:00:01 eth0[PointToPoint]

Step 9: Run command protocols bfd show peers at DUT0 and check if output matches the following regular expressions:

Status: up
Show output
BFD Peers:
        peer fe80::dcad:beff:feef:6c10 local-address fe80::dcad:beff:feef:6c00 vrf default interface eth0
                ID: 2841711860
                Remote ID: 2403005640
                Passive mode
                Status: up
                Uptime: 1 second(s)
                Diagnostics: ok
                Remote diagnostics: ok
                Peer Type: dynamic
                RTT min/avg/max: 0/0/0 usec
                Local timers:
                        Detect-multiplier: 5
                        Receive interval: 400ms
                        Transmission interval: 400ms
                        Echo receive interval: 60ms
                        Echo transmission interval: 60ms
                Remote timers:
                        Detect-multiplier: 3
                        Receive interval: 300ms
                        Transmission interval: 300ms
                        Echo receive interval: 50ms

Step 10: Run command protocols bfd show peers at DUT1 and check if output matches the following regular expressions:

Status: up
Show output
BFD Peers:
        peer fe80::dcad:beff:feef:6c00 local-address fe80::dcad:beff:feef:6c10 vrf default interface eth0
                ID: 2403005640
                Remote ID: 2841711860
                Active mode
                Status: up
                Uptime: 1 second(s)
                Diagnostics: ok
                Remote diagnostics: ok
                Peer Type: dynamic
                RTT min/avg/max: 0/0/0 usec
                Local timers:
                        Detect-multiplier: 3
                        Receive interval: 300ms
                        Transmission interval: 300ms
                        Echo receive interval: 50ms
                        Echo transmission interval: 50ms
                Remote timers:
                        Detect-multiplier: 5
                        Receive interval: 400ms
                        Transmission interval: 400ms
                        Echo receive interval: 60ms

Step 11: Run command protocols bfd show peers at DUT0 and check if output matches the following regular expressions:

Detect-multiplier: 5
Show output
BFD Peers:
        peer fe80::dcad:beff:feef:6c10 local-address fe80::dcad:beff:feef:6c00 vrf default interface eth0
                ID: 2841711860
                Remote ID: 2403005640
                Passive mode
                Status: up
                Uptime: 1 second(s)
                Diagnostics: ok
                Remote diagnostics: ok
                Peer Type: dynamic
                RTT min/avg/max: 0/0/0 usec
                Local timers:
                        Detect-multiplier: 5
                        Receive interval: 400ms
                        Transmission interval: 400ms
                        Echo receive interval: 60ms
                        Echo transmission interval: 60ms
                Remote timers:
                        Detect-multiplier: 3
                        Receive interval: 300ms
                        Transmission interval: 300ms
                        Echo receive interval: 50ms

Step 12: Run command protocols bfd show peers at DUT0 and check if output matches the following regular expressions:

Echo receive interval: 60ms
Show output
BFD Peers:
        peer fe80::dcad:beff:feef:6c10 local-address fe80::dcad:beff:feef:6c00 vrf default interface eth0
                ID: 2841711860
                Remote ID: 2403005640
                Passive mode
                Status: up
                Uptime: 1 second(s)
                Diagnostics: ok
                Remote diagnostics: ok
                Peer Type: dynamic
                RTT min/avg/max: 0/0/0 usec
                Local timers:
                        Detect-multiplier: 5
                        Receive interval: 400ms
                        Transmission interval: 400ms
                        Echo receive interval: 60ms
                        Echo transmission interval: 60ms
                Remote timers:
                        Detect-multiplier: 3
                        Receive interval: 300ms
                        Transmission interval: 300ms
                        Echo receive interval: 50ms

Step 13: Run command protocols bfd show peers at DUT0 and check if output matches the following regular expressions:

Echo transmission interval: 60ms
Show output
BFD Peers:
        peer fe80::dcad:beff:feef:6c10 local-address fe80::dcad:beff:feef:6c00 vrf default interface eth0
                ID: 2841711860
                Remote ID: 2403005640
                Passive mode
                Status: up
                Uptime: 1 second(s)
                Diagnostics: ok
                Remote diagnostics: ok
                Peer Type: dynamic
                RTT min/avg/max: 0/0/0 usec
                Local timers:
                        Detect-multiplier: 5
                        Receive interval: 400ms
                        Transmission interval: 400ms
                        Echo receive interval: 60ms
                        Echo transmission interval: 60ms
                Remote timers:
                        Detect-multiplier: 3
                        Receive interval: 300ms
                        Transmission interval: 300ms
                        Echo receive interval: 50ms

Step 14: Run command protocols bfd show peers at DUT0 and check if output matches the following regular expressions:

Passive mode
Show output
BFD Peers:
        peer fe80::dcad:beff:feef:6c10 local-address fe80::dcad:beff:feef:6c00 vrf default interface eth0
                ID: 2841711860
                Remote ID: 2403005640
                Passive mode
                Status: up
                Uptime: 1 second(s)
                Diagnostics: ok
                Remote diagnostics: ok
                Peer Type: dynamic
                RTT min/avg/max: 0/0/0 usec
                Local timers:
                        Detect-multiplier: 5
                        Receive interval: 400ms
                        Transmission interval: 400ms
                        Echo receive interval: 60ms
                        Echo transmission interval: 60ms
                Remote timers:
                        Detect-multiplier: 3
                        Receive interval: 300ms
                        Transmission interval: 300ms
                        Echo receive interval: 50ms

Step 15: Run command protocols bfd show peers at DUT0 and check if output matches the following regular expressions:

Receive interval: 400ms
Show output
BFD Peers:
        peer fe80::dcad:beff:feef:6c10 local-address fe80::dcad:beff:feef:6c00 vrf default interface eth0
                ID: 2841711860
                Remote ID: 2403005640
                Passive mode
                Status: up
                Uptime: 1 second(s)
                Diagnostics: ok
                Remote diagnostics: ok
                Peer Type: dynamic
                RTT min/avg/max: 0/0/0 usec
                Local timers:
                        Detect-multiplier: 5
                        Receive interval: 400ms
                        Transmission interval: 400ms
                        Echo receive interval: 60ms
                        Echo transmission interval: 60ms
                Remote timers:
                        Detect-multiplier: 3
                        Receive interval: 300ms
                        Transmission interval: 300ms
                        Echo receive interval: 50ms

Step 16: Run command protocols bfd show peers at DUT0 and check if output matches the following regular expressions:

Transmission interval: 400ms
Show output
BFD Peers:
        peer fe80::dcad:beff:feef:6c10 local-address fe80::dcad:beff:feef:6c00 vrf default interface eth0
                ID: 2841711860
                Remote ID: 2403005640
                Passive mode
                Status: up
                Uptime: 1 second(s)
                Diagnostics: ok
                Remote diagnostics: ok
                Peer Type: dynamic
                RTT min/avg/max: 0/0/0 usec
                Local timers:
                        Detect-multiplier: 5
                        Receive interval: 400ms
                        Transmission interval: 400ms
                        Echo receive interval: 60ms
                        Echo transmission interval: 60ms
                Remote timers:
                        Detect-multiplier: 3
                        Receive interval: 300ms
                        Transmission interval: 300ms
                        Echo receive interval: 50ms