Yes, it's very common to connect the primary NIC to the Internet and the secondary NIC to the camera LAN. That way, the Box serves as a bridge between those two segmented networks. If your Box is online via its primary NIC, then you can configure the secondary NIC via Web Browser. If your Box is offline and cannot get a DHCP IP by default, then you can configure either NIC via USB.
Configure Online via Web Browser
If your Box is already registered and online, then you can configure both the primary and secondary NICs via your browser.
For the Primary NIC, use Change Box Settings on the https://camio.com/boxes page.
For the Secondary NIC, use https://camio.com/tools/boxes/nics with the interface_name of the target NIC.
Configure Offline via USB
If you can't get your Box online using its default DHCP, then you can resort to a USB stick to get the Primary NIC online. After the Box is online, it's easiest to use the browser to configure the Secondary NIC. However, if you'd rather configure the Secondary NIC via USB, the steps are below.
What you will need:
- Computer with a text editor
- USB stick (formatted in FAT, ext3, or ext4)
Steps
- Open a text editor on your computer
- Create a file called box_config.json. This file will contain configuration data in the JSON format.
- Put the following text in the file and replace each {{mustache variable}} with the correct value:
3a) If you are setting the NIC with interface_name enp3s0 to use DHCP, the box_config.json file will look like this
{
"network_configuration": {
"interface_name": "enp3s0",
"ip_assignment": "dhcp"
}
}
3b) If you are setting the NIC with interface_name enp3s0 to use a static IP (not assigned automatically by DHCP), then the box_config.json file will follow this template (prior to replacing the {{mustache values}} with your actual network settings).
TEMPLATE (all mustaches inclusive of the {{ }} must be replaced)
{ "network_configuration": {
"interface_name": "enp3s0", "ip_assignment": "static", "ip_address": "{{ip_address}}", "netmask": "{{network_mask}}", "gateway": "{{gateway}}", "dns_servers": [ "{{dns_server_1}}", "{{dns_server_2}}" ] } }Example with actual values
{ "network_configuration": {
"interface_name": "enp3s0", "ip_assignment": "static", "ip_address": "192.168.1.41", "netmask": "255.255.255.0", "gateway": "192.168.1.1", "dns_servers": [ "8.8.8.8", "1.1.1.1" ] } }
Replacing- {{interface_name}} with the correct interface_name for your Box.
- {{ip_address}} with the static IP-address you wish your Box to request (like 192.168.1.41)
- {{netmask}} with the network mask for the network you wish Box to use (like 255.255.255.0)
- {{gateway}} (optional) with the IP address of the gateway on your network (like 192.168.1.1), likely not needed and SHOULD NOT BE SPECIFIED TO AVOID CONFLICT WITH PRIMARY NIC GATEWAY.
- {{dns_server_1}} with the main DNS server address (recommended 8.8.8.8)
- {{dns_server_2}} with the secondary DNS server address (recommended 8.8.4.4)
IMPORTANT - the "gateway" field is optional, and you likely **do not** want to include one. This generally only applies if you are configuring a secondary interface and a gateway is already defined on the primary interface.
- Insert the USB stick into your computer
- Move the box_config.json file into the root of the USB stick.
- Unmount and remove the USB stick from your computer
- Power off the Camio Box
- Insert the USB stick into any one of the USB ports on your Box
- Power on the Camio Box
At this point, the Box will power on and read in the configuration file, then configure its network settings based on the given values. Once the Box is done reading in the configuration values, it will rename the file from box_config.json to applied.box_config.json and then restart itself to ensure that the network settings are fully applied. After the Box has restarted, it's safe to remove the USB stick from the Box.
Note
The steps above are used to configure the secondary NIC on your Box. If you would like to configure the primary NIC, use the steps as described in this help article.
Comments