Printer FriendlyEmail Article Link

Spirent TestCenter- HLTAPI : How to enable custom pool for DHCP ?

Environment/Versions
  • Spirent TestCenter
  • Automation
  • HLTAPI
  • DHCP
Answer
Below is the API to enable custom pool:

sth::emulation_dhcp_server_config\
        -mode                                             create\
        -ip_version                                      4\
        -encapsulation                                 ETHERNET_II\
        -ipaddress_count                             250 \
        -ipaddress_pool                               192.85.1.5 \
        -enable_custom_pool                     true \
        -ipaddress_increment                       1 \
        -port_handle                                    $port2\
        -count                                             1 \
       -lease_time                                      3600 \
        -local_mac                                      00:10:94:00:00:02 \
        -ip_repeat                                        0 \
        -remote_mac                                   00:00:01:00:00:01 \
        -ip_address                                     192.85.1.4 \
        -ip_prefix_length                              24 \
        -ip_gateway                                    192.85.1.1 \
        -ip_step                                          0.0.0.1 

This is supported from HLTAPI 4.59 GA

Product : Automation,Spirent TestCenter,DHCP