Printer FriendlyEmail Article Link

Spirent TestCenter:Does JTAPI support DHCPv6/PD server emulation?

Environment/Versions
  • Spirent TestCenter
  • Automation-JTAPI
  • DHCPv6/PD
Answer

Yes. Implemented in t4.49 version of JTAPI

Below is the sample code that configures a DHCPv6 PD server:

my @custom_option=({option_type=>0, hex_value=>"false", enable_wildcards=>"true",
msg_type=>"Relay-Reply"} );
my @auth_keys=({key_id=>1, key_value=>"spirent123a", key_value_type=>"HEX"});
my $delayed_auths = {dhcp_realm=>"my.com", auth_keys=>\@auth_keys};
my $addr_pool_v6 = {addr_start=>"2000::1", network_count=>"120",
addr_custom_options=>\@custom_option} ;
my $prefix_pool_v6 = {addr_start=>"2006::1", network_count=>"220",
prefix_length=>"128",
prefix_custom_options=>\@custom_option} ;
my $dhcp_server_v6 = {version=>"ipv6", PREFIX_pool=>$prefix_pool_v6,
                      Addr_pool=>$addr_pool_v6, server_custom_options=>\@custom_option,
                      preferred_lifetime=>"40", valid_lifetime=>"90",
                      rebind_time_percent=>"30", renew_time_percent=>"8"};
my @rtn2 = $rt->setup_hosts(ports=>[$port2],
                      port_type=>"ethernet",
                      host_count => 1,
                      mac_addr => "00:10:94:00:00:02",
                      mac_addr_step => "00:00:00:00:00:01",
                      ipv6_addr => "2001::3",
                      ipv6_addr_step=>"::1",
                      ipv6_gw_addr =>"2001::1",
                      dhcp_server_config=>$dhcp_server_v6,
                     );


Product : Spirent TestCenter,Automation,API,Spirent TestCenter,DHCPv6,DHCP-PD