UR32L Custom Profile Template

This topic describes how to create a custom Profile template for UR32L.

Background information

A Profile template contains both Basic Settings and Advanced Settings. Basic settings can edited with the visual interface provided by Milesight Development Platform, while the advanced settings can ONLY be edited in JSON format.

Follow the workflow below to create and apply a custom Profile template:

  1. Create a custom Profile template on Milesight Development Platform.
  2. Configure the basic settings with the visual interface.
  3. Configure the advanced settings in the JSON format.
  4. Save and apply the custom Profile template accordingly.

Step 1. Create a custom Profile template

  1. Log in to Milesight Development Platform.
  2. On the top bar, click Device, then select the Custom Profile Template tab.

  3. Click Add.
  4. In the Basic Configuration section, configure the basic information:

    1. In the Profile Template Name field, specify a name to help you identify this template.
    2. In the Select Product Profile Template field, search and select UR32L_Profile_Template.
    3. In the Profile Template Version drop-down list, select the version of the Profile template.

Step 2. Configure the connecting platform

  1. Select the Generic Configuration tab.
  2. In the Device Management Connections section, decide whether to connect the device to Milesight platform for remote management and configuration.
    Connect the device to Milesight Development Platform
    Retain the default settings.

    Connect the device to Milesight DeviceHub
    1. In the Connecting Platforms field, select DeviceHub 2.0.
    2. In the Milesight DeviceHub Server Address field, enter the server address of the Milesight DeviceHub.
    Do NOT connect to Milesight platform
    Uncheck the Platform Connection.

Step 3. Configure the Link Failover Rule

  1. In the Link Failover section, select the link to use and set the priority for every link.

Step 4. Configure the Ethernet

In the Ethernet section, specify the WAN information.

  1. Select the connection type.
    • Static IP: assign a static IP address, netmask and gateway for Ethernet WAN port.
    • DHCP Client: configure Ethernet WAN interface as DHCP Client to obtain IP address automatically.
    • PPPoE: configure Ethernet WAN interface as PPPoE client.
    • DHCPv6 Client: configure Ethernet WAN interface as DHCP Client to obtain IPv6 address automatically.
    • Dual-Stack Lite: use IPv4-in-IPv6 tunneling to send terminal device’s IPv4 packet through a tunnel on the IPv6 access network to the ISP.

  2. Specify the Ethernet settings according to the connection type.

    Type Settings
    Static IP IPv4 Address: Set the IPv4 address of the Ethernet port.
    Netmask: Set the Netmask for Ethernet port.
    IPv4 Gateway: Set the gateway for Ethernet port's IPv4 address.
    IPv6 Address: Set the IPv6 address of the Ethernet port.
    DHCP Client Use Peer DNS: Obtain DNS from DHCP server.
    PPPoE Username: Set the username provided by your Internet Service Provider (ISP).
    Password: Set the password provided by your Internet Service Provider (ISP).
    Link Detection Interval: Set the heartbeat interval for link detection.
    Max Retries: Set the maximum retry times after it fails to dial up.
    Use Peer DNS: Obtain DNS from the Internet Service Provider (ISP).
    DHCPv6 Client Request IPv6-address: Choose the ways to obtain the IPv6 address fromthe DHCPServer. Select from try, force, none.
    Request prefix length of IPv6: Set the prefix length of IPv6 address which router is expectedto obtain from DHCP Server.
    Dual-Stack Lite IPv6 Address: Set the IPv6 address of the Ethernet port.
    IPv6 Gateway: Set the gateway for Ethernet port's IPv6 address.
    DS-Lite AFTR Address: Set the DS-Lite AFTR server address.
    Other Settings Primary DNS Server: Set the primary DNS server.
    Secondary DNS Server: Set the secondary DNS server.
    MTU: Set the maximum transmission unit.
    NAT: Enable or disable NAT function. When enabled, a private IP can be translated to a public IP.

Step 5. Configure the Cellular

In the Cellular section, specify the cellular information.

Setting Description
Protocol Type Select from IPv4, IPv6 and IPv4/IPv6.
APN

Specify the Access Point Name for cellular dial-up connection provided by local ISP. Please contact cellular operator or search for the Internet to get it.

Username

Specify the username for cellular dial-up connection provided by local ISP.

Password Specify the password for cellular dial-up connection provided by local ISP.
Authorization Type

Select from None, PAP and CHAP.

PIN Code

Specify a 4-8 characters PIN code to unlock the SIM.

IPv4 Subnet Mask Customize the cellular subnet mask. If blank, the device will use thesubnet mask provided by the cellular base station.

Step 6. Configure the DHCP Server

In the DHCP section, enable the DHCP server and specify the DHCP server information.
Setting Description
Interface Select from Bridge0 and LAN1/WAN.
Start Address Define the beginning of the pool of IP addresses which will be leased to DHCP clients.
End Address Define the end of the pool of IP addresses which will be leased to DHCP clients.
Netmask Define the subnet mask of IPv4 address obtained by DHCP clients from DHCP server.
Lease Time (Min) Set the lease time on which the client can use the IP address obtained from DHCP server.
Primary DNS Server Set the primary DNS server.
Secondary DNS Server Set the secondary DNS server.
Windows Name Server Define the Windows Internet Naming Service obtained by DHCP clients from DHCP sever as needed.
Static IP Assign a static IP address to the device with a specific MAC address.

Step 7. Configure the Static Routing

In the Static Routing section, add one or more static routing information as required.
Setting Description
Destination Specify the destination IP address.
Network/Prefix Length Specify the submask or prefix length of destination address.
Interface Specify the interface through which the data can reach the destination address.
Gateway Specify the IP address of the next router that will be passed by before the input data reaches the destination address.
Distance Specify the priority of this routing. Smaller value refers to higher priority.

Step 8. Configure the User Management

In the User Management section, you can specify the user name and a new password of the device.

Step 9. Configure the Schedule Reboot

In the Schedule Reboot section, specify whether to enable schedule reboot and the reboot schedules.

Step 10. Configure the System Time

In the System Time section, specify the time settings of the device.

  1. Specify the Time Zone you are in.
  2. Select the Sync Type.
    • Sync with NTP Server: Specify the NTP Server's IP address or domain name.
    • Set up Manually: Specify the date and time directly.
  3. Specify whether to enable the device to work as a NTP server.

Step 11. Save the custom Profile template

  1. On the left-bottom of the page, click Save.
  2. Apply the custom Profile template according to the operation method.
    • Web page: Select the Profile template when adding devices.
    • API: Do as follow:
      1. In the Operation column, click to download the Profile in JSON.

      2. Include the entire JSON in the API request of Create Configuration Tasks.