Address

The following scenarios show different ways to configure IPv6 addresses on OSDx devices.

../../../../_images/topology27.svg

Test Static Address

Description

The DUT0 address is statically configured.

Scenario

Step 1: Set the following configuration in DUT1 :

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 DUT0 :

set interfaces ethernet eth0 address '2001:db8:100:f101::2/64'
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 DUT0 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::2/64       up     up
      fe80::dcad:beff:feef:6c00/64

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

admin@DUT0$ 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=459 ms

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

Test EUI-64 Address

Description

The DUT0 address is configured by using the Extensible Unique Identifier-64 (EUI-64) method.

Scenario

Step 1: Set the following configuration in DUT1 :

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 DUT0 :

set interfaces ethernet eth0 ipv6 address eui64 '2001:db8:100:f101::/64'
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 DUT0 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:6c00/64  up     up
      fe80::dcad:beff:feef:6c00/64

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

admin@DUT0$ 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=435 ms

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

Test SLAAC Address

Description

The DUT0 address is configured using Stateless Address Autoconfiguration (SLAAC).

Scenario

Step 1: Set the following configuration in DUT1 :

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 DUT0 :

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 DUT0 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:6c00/64  up     up
      fe80::dcad:beff:feef:6c00/64

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

admin@DUT0$ 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.269 ms

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

Test DHCP Address

Description

The DUT0 address is configured by using the DHCP protocol.

Scenario

Step 1: Set the following configuration in DUT1 :

set interfaces ethernet eth0 address '2001:db8:100:f101::1/64'
set interfaces ethernet eth0 ipv6 router-advert interval 2
set service dhcpv6-server shared-network IP6NET subnet '2001:db8:100:f101::/64' address-range prefix '2001:db8:100:f101::/64'
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

Step 2: Set the following configuration in DUT0 :

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

Note

Addresses obtained through DHCPv6 have a 128 bits prefix length (according to RFC#8415).

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

2001:db8:100:f101:[^\s\/]+/128
Show output
------------------------------------------------------------------------------
Name                 IP Address                  Admin  Oper  Vrf  Description
------------------------------------------------------------------------------
eth0  2001:db8:100:f101:a4b3:1c9c:4253:6e2d/128  up     up
      fe80::dcad:beff:feef:6c00/64

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

admin@DUT0$ 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.272 ms

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