Address
The following scenarios show different ways to configure IPv6 addresses on OSDx devices.
Test Static Address
Description
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\/]+/64Show 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 1Show 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=457 ms --- 2001:db8:100:f101::1 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 456.739/456.739/456.739/0.000 ms
Test EUI-64 Address
Description
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\/]+/64Show 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 1Show 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=476 ms --- 2001:db8:100:f101::1 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 476.240/476.240/476.240/0.000 ms
Test SLAAC Address
Description
DUT0 address is configured by 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\/]+/64Show 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 1Show 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.306 ms --- 2001:db8:100:f101::1 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.306/0.306/0.306/0.000 ms
Test DHCP Address
Description
DUT0 address is configured by using 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\/]+/128Show output
------------------------------------------------------------------------------ Name IP Address Admin Oper Vrf Description ------------------------------------------------------------------------------ eth0 2001:db8:100:f101:79a3:19ca:879a:6ac4/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 1Show 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.350 ms --- 2001:db8:100:f101::1 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.350/0.350/0.350/0.000 ms