Router-Advert

The following scenarios show how to enable and customize IPv6 Router Advertisements.

../../../../../_images/topology15.svg

Test RA Autonomous On

Description

DUT0 is configured as a IPv6 router. RAs are automatically enabled.

Scenario

Step 1: Set the following configuration in DUT0:

set interfaces ethernet eth0 address '2001:db8:100:f101::1/64'
set interfaces ethernet eth0 ipv6 router-advert interval 2
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

Step 2: Set the following configuration in DUT1:

set interfaces ethernet eth0 ipv6 address autoconf
set interfaces ethernet eth0 ipv6 disable-forwarding
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

Step 3: Run command interfaces ethernet eth0 show at DUT1 and check if output matches the following regular expressions:

2001:db8:100:f101:[^\s\/]+/64
Show output
-----------------------------------------------------------------------------
Name                 IP Address                 Admin  Oper  Vrf  Description
-----------------------------------------------------------------------------
eth0  2001:db8:100:f101:dcad:beff:feef:6c10/64  up     up
      fe80::dcad:beff:feef:6c10/64

Step 4: Ping IP address 2001:db8:100:f101::1 from DUT1:

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

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

Test RA Autonomous Off

Description

In this scenario, RAs are sent with autonomous flag set to false. Therefore, IPv6 hosts can not use RAs to auto configure IPv6 address using SLAAC.

Scenario

Step 1: Set the following configuration in DUT0:

set interfaces ethernet eth0 address '2001:db8:100:f101::1/64'
set interfaces ethernet eth0 ipv6 router-advert interval 2
set interfaces ethernet eth0 ipv6 router-advert prefix '2001:db8:100:f101::/64' autonomous-flag off
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

Step 2: Set the following configuration in DUT1:

set interfaces ethernet eth0 ipv6 address autoconf
set interfaces ethernet eth0 ipv6 disable-forwarding
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

Step 3: Run command interfaces ethernet eth0 show at DUT1 and check if output does not match the following regular expressions:

2001:db8:100:f101:[^\s\/]+/64
Show output
-----------------------------------------------------------------
Name           IP Address           Admin  Oper  Vrf  Description
-----------------------------------------------------------------
eth0  fe80::dcad:beff:feef:6c10/64  up     up

Test RA Custom Prefixes

Description

In this scenario, custom prefixes are announced. By default, only interface IP addresses are announced in RAs.

Scenario

Step 1: Set the following configuration in DUT0:

set interfaces ethernet eth0 address '2001:db8:100:f101::1/64'
set interfaces ethernet eth0 ipv6 router-advert interval 2
set interfaces ethernet eth0 ipv6 router-advert prefix '2001:db8:200:f101::/64'
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

Step 2: Set the following configuration in DUT1:

set interfaces ethernet eth0 ipv6 address autoconf
set interfaces ethernet eth0 ipv6 disable-forwarding
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

Step 3: Run command interfaces ethernet eth0 show at DUT1 and check if output matches the following regular expressions:

2001:db8:100:f101:[^\s\/]+/64
Show output
-----------------------------------------------------------------------------
Name                 IP Address                 Admin  Oper  Vrf  Description
-----------------------------------------------------------------------------
eth0  2001:db8:200:f101:dcad:beff:feef:6c10/64  up     up
      2001:db8:100:f101:dcad:beff:feef:6c10/64
      fe80::dcad:beff:feef:6c10/64

Step 4: Run command interfaces ethernet eth0 show at DUT1 and check if output matches the following regular expressions:

2001:db8:200:f101:[^\s\/]+/64
Show output
-----------------------------------------------------------------------------
Name                 IP Address                 Admin  Oper  Vrf  Description
-----------------------------------------------------------------------------
eth0  2001:db8:200:f101:dcad:beff:feef:6c10/64  up     up
      2001:db8:100:f101:dcad:beff:feef:6c10/64
      fe80::dcad:beff:feef:6c10/64

Step 5: Ping IP address 2001:db8:100:f101::1 from DUT1:

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

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

Test RA Monitor

Description

This scenario shows how to monitor RAs using monitor router-advertisement operational command.

Scenario

Step 1: Set the following configuration in DUT0:

set interfaces ethernet eth0 address '2001:db8:100:f101::1/64'
set interfaces ethernet eth0 ipv6 router-advert interval 2
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

Step 2: Set the following configuration in DUT1:

set interfaces ethernet eth0 ipv6 address autoconf
set interfaces ethernet eth0 ipv6 disable-forwarding
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

Step 3: Run command monitor router-advertisement at DUT1.

Note

A new RA should be received in the device every few seconds

Show output
interface eth0
{
        AdvSendAdvert on;

        AdvManagedFlag off;
        AdvOtherConfigFlag off;
        AdvReachableTime 0;
        AdvRetransTimer 0;
        AdvCurHopLimit 64;
        AdvDefaultLifetime 1800;
        AdvHomeAgentFlag off;
        AdvDefaultPreference medium;
        AdvSourceLLAddress on;
        prefix 2001:db8:100:f101::/64