This article explains how to use the Datto NIC reordering script to re-associate the network card configurations on a Datto device. We use this script when doing OS hard drive replacements. In rare cases, we might use it when a NIC fails.
Follow these steps:
- Unplug the Datto device from the network.
- Connect a keyboard, monitor, and mouse to the Datto device.
- Open the Terminal short cut icon located on the desktop of the Datto device. Alternatively, you could press Ctrl-Alt-F1 on the keyboard to access the console.
Figure 1 - Terminal shortcut icon on the desktop of a Datto Device
- In the terminal, run this command to switch to the backup-admin user:
- To find your password, go to the partners.dattobackup.com and go to Device > Status.
- Switch to the root user:
- Once logged in as the root user, run the Datto NIC Re-ordering Script:
Figure 2 - php /datto/scripts/reorder.php
- You should see a prompt requesting that the first NIC be identified. Once this prompt appears, connect a live network cable to the NIC you wish to use as eth0. The terminal prompt will automatically refresh once it detects that the cable has been connected, and will then prompt for the next NIC to be plugged in.
Remove the network cable from eth0, and plug it into the NIC that you wish to use as eth1. Repeat this process until the message NICs have been reordered is displayed. The prompt should then return you to the root user upon completion.
- Connect a live Ethernet cable into NIC1 (eth0). Type in
dhclient eth0to get a DHCP address from the network.
Figure 3 - NICs have been reordered
Tip: In the event that the Datto NIC re-ordering script locates a link on jack 1 and jack 2 at the same time, retry these steps from the beginning. It is often successful on the second try.
- Reboot the Datto appliance by typing
3. Confirm the Datto NIC Re-ordering Script Completed Successfully
After you've run the script, follow these steps to make sure that it worked:
- From the terminal prompt, check the inet addr (IP) and subnet mask that are displayed after entering this command:
Figure 4 - Output of an ifconfig command run from the terminal prompt
- From the terminal prompt, run this command to check for network connectivity to Datto:
Tip: Unlike the ping command in Windows, the Linux ping command continues until you press CTRL-C.
Figure 5 - Successful ping requests
You can also type
checkinas the root user to allow the device to check in with monitoring services.