en:dpi:bras_bng:opt_bras_l2:ipv6:dhcpv6_vsa:start [Документация VAS Experts]

This is an old revision of the document!


Setting DHCPv6-options in Radius

Stingray SG supports setting practically any DHCPv6 option via special VasExperts VSA attributes. If Stingray SG was installed using standard tools from the official VasExperts repository, then the updated dictionary of all VSA VasExperts is located in the /usr/share/dpi/dictionary.vasexperts file. All of these attributes are strings with the same format:

opt:value

here:

  • opt - number, option ID, value - option value.
VSA attribute Description
VasExperts-DHCP-Option-IPv6 Options specifying an IPv6-address or a list of IPv6-addresses
VasExperts-DHCP-Option-IPv6-Prefix Options specifying IPv6-prefix
VasExperts-DHCP6-Option-Num Specifies an option with a numeric value
VasExperts-DHCP6-Option-String Specifies an option with a string value
VasExperts-DHCP6-Option-Bin Specifies a binary option as a hex string. Note that when setting a binary option, its value must be in the network byte orderc

Example (FreeRadius format):

  # Option 22 - list of IPv6 addresses of SIP servers:
  # Stingray SG will send one option 22 to DHCPv6 with the value - a list of specified IPv6 addresses
&VasExperts-DHCP-Option-IPv6 := "22:2c0f:ff91::10:1"
&VasExperts-DHCP-Option-IPv6 += "22:2c0f:ff91::10:2"
   
  # Option 71 - MIPv6 Home Network Prefix Option
  # sets IPv6-prefix
&VasExperts-DHCP-Option-IPv6-Prefix += "71:2c0f:ff90:71::/56"

  # Option 32 - OPTION_INFORMATION_REFRESH_TIME, numeric:
&VasExperts-DHCP6-Option-Num  += "32:55779"

  # Option 27: NIS-server IPv6-address, specified in binary
&VasExperts-DHCP6-Option-Bin  += "27:2c0fff91000000000000000000200001"
  # the same can be set another way:
  # &VasExperts-DHCP-Option-IPv6 += "27:2c0f:ff91::20:1

  # Option 43: ERO (Relay Agent Echo Request option)
  # given as an example of setting an option with a value list of numbers
  # Stingray SG will combine all attributes of 43 options into one DHCPv6 option with the value '50,60,32'
&VasExperts-DHCP6-Option-Num  += "43:50"
&VasExperts-DHCP6-Option-Num  += "43:60"
  # int16-option in binary form (value 32)
&VasExperts-DHCP6-Option-Bin  += "43:0020"

A complete up-to-date list of all DCHPv6 options and RFC references can be found at the IANA web-site.