Solution
In order to use both Ethernet ports on a dual port controller, you must configure Ethernet Port 2 with a static IP address which resides in a different subnet than Ethernet port 1. For more information on subnets, see the Related Links section below.
Configure Port 1 (eth0)Configure Ethernet port 1 in the same manner you would configure a single Ethernet port on a LabVIEW Real-Time controller.
If Ethernet port 1 is already configured with an IP address (static or dynamic), skip ahead to Configure Port 2.
Ethernet port 1 can be configured to use a DHCP server or with a static IP address. Follow the desired steps below.
Configure Port 1 for DHCP
- Connect the controller via Ethernet port 1 to the switch/hub with access to the DHCP server.
- Enable the IP Reset DIP switch on the controller.
- Reboot the controller by pressing RESET.
- Wait for the controller to reboot and disable the IP Reset DIP switch.
- Open Measurement & Automation Explorer (MAX).
- Locate the controller under Remote Systems in MAX and select it.
- Navigate to the Network Settings tab (located at the bottom of the main window in MAX).
- In the Ethernet Adapter eth0 (Primary) section select DHCP or Link Local in the Configure IPv4 Address field (see below).
- Click Save.
- Click Yes to reboot the controller.
Configure Port 1 with a static IP Address
- Connect the controller via Ethernet port 1 to the switch/hub with access to the DHCP server.
- Enable the IP Reset DIP switch on the controller.
- Reboot the controller by pressing RESET.
- Wait for the controller to reboot and disable the IP Reset DIP switch.
- Open Measurement & Automation Explorer (MAX).
- Locate the controller under Remote Systems in MAX and select it.
- Navigate to the Network Settings tab.
- In the Ethernet Adapter eth0 (Primary) section select Static in the Configure IPv4 Address field.
- Enter the desired IP address in the IPv4 Address field.
- Enter the desired subnet mask in the Subnet Mask field.
- Click Save.
- Click Yes to reboot the controller.
Configure Port 2 (eth1)Ethernet port 2 must be configured with a static IP that does not reside in the same subnet of Ethernet port 1.
- Connect the dual port controller via Ethernet port 1 to the network.
- Open Measurement & Automation Explorer (MAX).
- Locate the controller under Remote Systems in MAX and select it.
- Navigate to the Network Settings tab.
- In the Ethernet Adapter eth1 section select TCP/IP Network in the Configure IPv4 Address field.
- Enter the desired IP address in the IPv4 Address field.
- Enter the desired subnet mask in the Subnet Mask field.
- Click Save.
- Click Yes to reboot the controller.
Using both Ethernet Ports
Ethernet port 1 is used for communication between the dual port controller and host PC. Therefore, Ethernet port 1 is used for configuring the controller in MAX as well as deploying applications to the controller from LabVIEW.
Ethernet port 2, configured with a static IP on a different subnet than Ethernet port 1, can be used to communicate with a private network. One example of this setup would be communicating with an additional LabVIEW Real-Time target that is configured with a static IP address. The private network must use static IP addresses on the same subnet as Ethernet port 2.
Ethernet port 2 is currently not supported to communicate outside its own subnet. There is no capability of configuring the Default Gateway for Ethernet port 2 and therefore cannot connect to a large isolated intranet. However, there appears to be a common misconception that this port can only be used for communication between NI products: this is not the case, though any communication through the secondary port must be within the same subnet.
Communication using Shared Variables is only supported on one Ethernet port because the Shared Variable Engine is bound to one port. Another form of communication such as TCP/IP must be used to transmit and receive data on the second port if the first port is using Shared Variables. For more information read
Deploying Shared Variables to a Specific Network Card .
Refer to the Related Links section for more information, a tutorial, and an example program for getting started with dual Ethernet port controllers.