Configuring ports can be done in one of two ways listed below.
Using this method is simpler than modifying the /etc/network/interfaces
file, but requires a visual interface to the ECU. In multi-ECU setups see the following section on configuring using /etc/network/interfaces
This method should not be used on the Drive PX2.
Put the address you would like to assign to the port into the "Address" cell. Assign a netmask of 16 (255.255.0.0) or 24 (255.255.255.0) depending on the application. Typically 24 is what is required except for connecting to an unconfigured FLIR (PointGrey) camera using FlyCap2 where 16 is required. You can leave the gateway undefined unless otherwise required.
DO NOT set the IP address of the port to be the same address as any device connected to the port. For typical default IP Addresses see Default Sensor IP Addresses. Subnets and netmasks of devices/ethernet port must match but if the total IP Address is the same there is a conflict and communication will not be able to occur. |
This method is prone to errors and typically needs a computer restart to function without problems, but is a long time method in linux environments for altering network interfaces.
Ctrl + Alt+ t
) and running either ifconfig -a
or ip addr show
. On Ubuntu 16.04 interfaces are typically named beginning with "enp" on Ubuntu 14.04 they may be named starting with "eth"Take note of the interface you would like to define and open the /etc/network/interfaces
file with root privileges
gksudo gedit /etc/network/interfaces |
After logging in with the correct password you should be presented with the file to be edited
Add a configuration for the interface following the structure defined below.
auto <interface name> iface <interface name> inet static address <IP Address (192.168.1.100)> netmask <netmask in IP format (255.255.255.0)> |
Related articles appear here based on the labels you select. Click to edit the macro and add or change labels.
|