RT: How do I use two independen​t Ethernet ports?

I have looked around at the forums and seems like no one has had a real solid answer or example on how to use 2 Ethernet ports with RT.
Right now I have two connections configured on the RT:
Primary Connection:
IP:192.168.2.181
Subnet mask: 255.255.255.0
Gateway: 192.168.1.1
DNS Server: 192.168.1.1
Secondary Connection:
IP:192.168.1.180
Subnet mask: 255.255.255.0
Gateway: 192.168.1.1
DNS Server: 192.168.1.1
After using this initial setup, I made a RT project where I used 'UDP Open' for both 192.168.2.181 and 192.168.1.180, and had them both read and write in a sequence (Read and Write for the 2.181 connection, then Read/Write for 1.180).
The computer I'm using to send the data is connected to a switch, which in turn is connected to the RT. Both the RT and my host computer have 2 ports, one of them with ports configured to be 192.168.2.x and 192.168.1.x
Using this configuration I get some weird results:
If I send a packet to 192.168.2.181, I receive it from the UDP Receive vi that has an input connection from my UDP Open assigned to 1.180. I also receive the data the same way when sending packets to 1.180 (as expected). Basicly, no matter what IP I'm sending it to on the RT, the data from either packet will arrive from the same location/vi.
Why is this? Is there anyway to fix this? Did I not configure something correctly?
Does anyone have an example of dual Ethernet ports actually working with LabView RT?
I tried checking out "KnowledgeBase 3VQ6278T: Can I Use Multiple Network Adapters in a PXI or Desktop Real-Time System?", but after following the link to the page, I get:
"Error You are not authorized to view this document". Can any NI people look into this?
Having to make two IPs with different subnet masks obviously just makes things unnecessarily complicated. Can anyone tell me why LabView/NI did this? I know for a fact this isn't a limitation in hardware.
Any help would be greatly appreciated, thanks!

Hey Weizbox.
Sorry to hear you're having such a difficult time using multiple ethernet devices with RT. 
Let me go ahead and get the easy stuff out of the way, the link you
have is dead because it's archived (and thus removed forever) though
unfortunately the link on ni.com wasn't corrected to point to the
following resource, which the KB was a word-for-word duplication of
(which is supposedly why it was removed):
    http://zone.ni.com/reference/en-XX/help/370622C-01​/lvrthelp/configuringdual/
Unfortunately, though, it's much less useful than it sounds.
Before you start feeling like a woodpecker in a petrified forest, lemme
fill you in on why the requirement is there for the two ethernet NICs
to be on seperate subnets.  Simple enough, it has to do with the
network stack on both of the operating systems used for LabVIEW
Real-Time - however, the same falls true for even Windows (without
using fancy vendor-specific drivers), so let's not be too hasty. 
Neither PharLap ETS nor VxWorks, the two OS's used under the hood,
support redundant network ports.  Because of this, if you give two (or
more in the case of PXI and RT Desktop) ethernet devices IP addresses
on the same subnet the routing tables in the network stack get horribly
confused and literally cannot resolve the proper adapter, which either
brings down the ethernet on the entire system or makes it such that one
or more network adapters becomes useless and one adapter takes over all
network traffic (there's no way to predict which adapter that will be,
nor can you control it based on what's plugged in and what's not).  On
Windows this is handled by bridging the adapters, but RT does not yet
support bridging (that opens a whole nother can of worms).  Long story
short, you still wouldn't be able to give both NICs individual IP
addresses on the same subnet. 
Let's take that even one more step.  You cannot simply just assign both
ethernet NICs different IP addresses on "virtual" subnets, you actually
need to put both NICs on literally different subnets for the network
routing to actually work.  Multiple ethernet devices for LabVIEW RT
were designed with the following mantra in mind - "The FIRST ethernet
device is designed for a TCP/IP network, the SECOND and SUBSEQUENT
ethernet device is designed for OTHER protocol uses."  By "OTHER
protocol uses" I mean the second NIC should be used for RT
Deterministic Ethernet (PXI, RT Desktop, et. al.), direct connections
with other targets, and 3rd party or custom ethernet protocols. 
Now, realistically, we can't expect users to not use the second NIC for
TCP/IP use, nor should we.  However, if you ARE going to use TCP/IP on
the second NIC, you should only use the second NIC for connecting to an
unroutable network in the eyes of the first NIC.  So, for instance, the
FIRST NIC can have an IP address of 10.0.62.128, but the SECOND NIC
would need to have an IP address on 192.168.100.23  - and the
10.0.62.128 should not be able to route a TCP packet to the 192.168.x.x
network, and vice versa.  In your example I noticed that both networks
used the same Gateway - unless your Gateway is configured to identify
and seperate the two networks, it's not going to end well, and you
shouldn't expect to be able to send data from one NIC to the other NIC
(at least with what you know now).  To reiterate, using multiple NICs
using TCP/IP should only be done in cases where you've got (n-1)
isolated subnets, where n is the number of NICs you have using TCP/IP. 
A classic example of this is a command-based measurement environment;
the RT system uses the FIRST NIC to talk to a TCP/IP network, in order
to transfer data or provide status to a network, and the second NIC is
connected to a TCP/IP network designed specifically for measurement or
control, where one node sends commands to a single or multiple nodes on
the network at once to perform tasks (like "Take a Measurement", "Stop
a motor", "Bake me a Pie", etc...).  The isolated TCP/IP subnet is free
from "random" TCP/IP traffic (especially system announcement
broadcasts) and can have whatever topology/configuration it wants.  The
dual networking allows the RT system to work/communicate/perform on
both networks.
I hope this helps shed some light on your situation.
Cheers!
-Danny

Similar Messages

  • How Can i Use two Different Public IP Addresses no my DMZ with ASA Firewall.

    How To Using Two Different Public IP Address on My DMZ with ASA 5520
    Postado por jorge decimo decimo em 28/Jan/2013 5:51:28
    Hi everyone out there.
    can any one please help me regarding this situation that im looking for a solution
    My old range of public ip address are finished, i mean (the 41.x.x.0 range)
    So now i still need to have in my DMZ another two servers that will bring some new services.
    Remember that those two server, will need to be accessable both from inside and from outside users (Internet users) as well.
    So as i said, my old range of public ip address is finished and we asked the ISP to gives some additional public
    ip address to address the need of the two new servers on DMZ. and the ISP gave us the range of 197.216.1.24/29
    So my quation is, on reall time world (on the equipment) how can i Use two different public ip address on the same DMZ
    on Cisco ASA 5520 v8??
    How my configuration should look like?
    I was told about implementing static nat with Sub Interfaces on both Router and ASA interface
    Can someone please do give me a help with a practical config sample please. i can as well be reached at [email protected]
    attached is my network diagram for a better understanding
    I thank every body in advance
    Jorge

    Hi,
    So looking at your picture you have the original public IP address range configured on the OUTSIDE and its used for NAT for different servers behind the ASA firewall.
    Now you have gotten a new public IP address range from the ISP and want to get it into use.
    How do you want to use this IP address range? You want to configure the public IP addresses directly on the servers or NAT them at the ASA and have private IP addresses on the actual servers (like it seems to be for the current server)?
    To get the routing working naturally the only thing needed between your Router and Firewall would be to have a static route for the new public network range pointing towards your ASA OUTSIDE IP address. The routing between your Router and the ISP core could either be handled with Static Routing or Dynamic Routing.
    So you dont really need to change the interface configuration between the Router and ASA at all. You just need a Static route pointing the new public IP address towards the ASA outside IP address.
    Now when the routing is handled between the ISP - ISP/Your Router - Your Firewall, you can then consider how to use those IP addresses.
    Do you want to use the public IP addresses DIRECTLY on the HOSTS behind the firewall?This would require you to either configure a new physical interface with the new public IP address range OR create a new subinterface with the new public IP addresses range AND then configure the LAN devices correspondingly to the chosen method on the firewall
    Do you want to use the public IP addresses DIRECLTY on the ASA OUTSIDE as NAT IP addresses?This would require for you to only start configuring Static NAT for the new servers between the inside/dmz and outside interface of the ASA. The format would be no different from the previous NAT configuration other than for the different IP addresses ofcourse
    Of the above ways
    The first way is good because the actual hosts will have the public IP addresses. Therefore you wont run into problems with DNS when the LAN users are trying to access the server.
    The second way is the one requiring the least amount of configurations/changes on the ASA. In this case though you might run into problem with DNS (to which I refer above) as the server actually has a private IP address but the public DNS might reply to the LAN hosts with a public IP address and therefore connections from LAN could fail. This is because LAN users cant connect to the servers OUTSIDE NAT IP address (unless you NAT the server to public IP address towards LAN also)
    Hopefully the above was helpfull. Naturally ask more specific questions and I'll answer them. Hopefully I didnt miss something. But please ask more
    I'm currently at Cisco Live! 2013 London so in the "worst case" I might be able to answer on the weekend at earliest.
    - Jouni

  • How can I use two accounts ?

    How can I use two accounts (mine and my wife's) to PhotoStream to my mac? I have to turn off photo stream for one or the other...can't I just leave two accounts logged on so that the photos from my iphone and hers both go to my mac?

    Photostreaming across machines requires to use the same Apple-ID on all of these machines or devices. Share all of iclouds account stuff or nothing at all . No way around as icloud is designed that way. Photostream is not designed as a sort of gallery to share with outsiders. It is for your personal entertainment .

  • How do I use two different apple IDs on one itunes?

    How do I use two different apple IDs on one itunes?

    This would be a violation of the terms of use of the itunes store and could result in the loss of your account.
    You cannot use the U.K. itunes store unless you are in the U.K

  • How can I use two monitors to increase workspace?

    how can I use two monitors to increase workspace?

    Drag the tabs of any After Effects windows you want to the second monitor.

  • How can we use two BOM

    Dear all,
    my scenario is in this way way-
    how can we use two BOM for same material.first BOM for inhouse production. Second one for Subcontracting.(means i have to create Purchase order for partial qty.

    Dear
    1.Goto MM02-MRP4 view -Maintain two Production Version based on two BOM ( Alternative1 with Routing will be PV1 will be used for production in house  where as Alt2 with routing having PP03 as control key for external operation -PV2 )
    2.Assign the relavant production Version-PV2 in Subcontracting Info Record in ME11
    Now, based on the production version assigned in Info Record system suggests the BOM while BOM explosion in Subcon Purchase Order
    REFER : Subcontracting & BOM  alternative
    Hope this will solve your issue
    Regards
    JH
    Edited by: Jiaul Haque on Sep 29, 2010 1:27 PM

  • Using 2nd Built-In Ethernet port for internet access?

    Hello,
    I have a Quad-G5 running 10.4.8. In its current configuration, all its network communications, including web access, go over the active ethernet port (Built-in 1).
    Does anyone know how I could use the second built-in port for internet access only? I'd like to route local traffic over the first port, but go "out" over the second.
    The machine is on a corporate network, and proxy access is slowwww. I have the ability to use a direct connect to the internet, but still need to be connected locally. Any thoughts? Many thanks . . . JD

    Easy. Go to System Preferences > Network > Network Port Configurations and drag the port connected to the internet to the top, so that it has priority over the port connected to your LAN. This prevents DNS time-out when loading a website, but still allows LAN traffic over the other port because that traffic is most likely going to use ARP rather than DNS. For good measure, you can add your company's domain (such as "my_company.lan") to System Preferences > Network > Internal_Ethernet > TCP/IP > Search Domains.

  • Using both Dual Gigabit Ethernet Ports

    Using both Dual Gigabit Ethernet Ports
    If I plugged both of my ethernet ports into my LAN switch, that would double the bandwidth to and from my machine. A switch does not used shared bandwidth like a hub does. I realize that it won't speed up any of the other devices that are plugged into the switch. Regardless, I would have the capacity for double the bandwidth to my machine.
    All LAN cables are CAT6 and the switch is 10/100/1000.
    The question is, would Mac OS X 10.4.7 utilize both ports (soft of the way it uses multiple processors)?

    It's easy to try... it's call "Link Aggregation"...
    http://docs.info.apple.com/article.html?artnum=304120
    You get to it by Network>Show>Network Port Configurations>New then Port in the popup, then you schould see Port Aggregation. Selt the two ports you wish to combine.

  • How do automate using two output types in an invoice based on plant

    Hello,
    Can you tell me how to configure automatically two output types for the same invoice.
    My client has business in USA and Europe.We are using only one sales organization. But we need to print invoices in letter size and A4 size depending on whether the invoice is created in europe or in USA. So , I have created two output types, one for letter size and one for A4 size. How do I configure so that if it is based in a plant/shipping point in Europe it is printed using the A4  output type else in letter size. Please suggest.
    SAPSDUSER

    I do not think you can use plant/shipping point in your access sequence for invoice output on header level, unless you add these fields to header level kommunication structure and populate these fields in userexit.
    You can either
    1. define requirement routines for your 2 output types which are mutually exclusive (if plant = A routine 1 returns sy-subrc = 0, routine 2 returns sy-subrc <>0, if plant = B routine 1 returns sy-subrc <>0, routine 2 returns sy-subrc = 0). You can assign requirements to output type either in output determination procedure OR in the access sequence. I would do it in output determination procedure. Check transactions NACO or NACE.
    OR
    2. add your fields to komkbv3 communication structure, populate your fields in thsi structure in userexits which are called from the function module komkbv3_fill and then you can either use then in the access sequence for your output types or create routines as in case 1. but the logic will be a simple check statement since KOMKBV3 is available in these routines.
    3. In fact you can use one output type and select your layout in the print program itself... which may be even easier for you. We use this approach to select proper layout for GEOs which may have several layouts depending on region for example... so the output type is defined per country, then layout is selected by print program. (tnapr-fonam = ..., nast-spras = proper language, set country '' to use proper decimal & date format...)
    Message was edited by:
            Siarhei Mahulenka

  • How best to use TWO Time Capsules, Airport Express and Apple TV?

    Hello
    I have the following Apple equipment and am wondering how best to plug it all together. At the moment I am not using some items at all because I do not know how to best use!
    1. MacBook Pro (2012 model) 'Mac1'
    2. MacBook Pro (2009 model) 'Mac2'
    3. MacBook Air (2011 model) 'Mac3'
    4. Time Capsule 1TB (model A1355)  'TC1'
    5. (another!) Time Capsule 1TB (model A1355)  'TC2'
    6. Airport Express (2008 model)
    7. Apple TV (2013 model)
    8. LaCie 1TB USB Hard Drive
    9. Apple iPhone
    10. Sonos system
    CURRENTLY
    TC1 is plugged into the Virgin Media modem to provide a WiFi network called 'Amer's Apple Network' around the house. The Virgin Media wifi has been switched off to reduce interference.
    TC2 is not being used. The Airport Express is plugged in upstairs (or sometimes near garden) to extend the 'Amer's Apple Network' and this seems to work fine.
    Apple TV is plugged into main TV and is plugged into 'Amer's Apple Network' directly using Ethernet to TC1 but often runs slowly and does not work if Mac1 is not awake (or iTunes is not running on Mac1).
    LaCie is plugged directly into TC1 and currently has a old copy of my iTunes library stored on it which my Sonos system access. However, there seems to be a problem in that iTunes randomly uses that LaCie library and/or local Mac library. Often we get a pop up message on Mac1 saying "Library cannot be found" and we have to manually navigate to the LaCie drive (via the TC1 folder) to open iTunes. Also connecting iPhone to Mac1 seems to work very slowly as it appears to be trying to back up to LaCie drive.
    QUESTION
    What would be the best, most efficient way of using all (or if some is redundant equipement then which), to set up the following:
    1. A shared home network which enables all three computers (and any future Macs and/or iPads etc) to access one master shared iTunes library, which is the one that is updated with any new music, films etc added via any of those machines
    2. A shared home network that enables a shared files folder but also allows each user to keep their own personal hard drive (eg locally on whichever machine they are using).
    3. A fast (as possible) iTunes back up process when connecting iPhone to computer
    4. Usage of both TC1 and TC2 (and Airport Express) to extend network around the house (several weak spots exist) and also to maximise storage using the 1TB of each TC1 and TC2.
    5. Would it then also be possible to attach the LaCie USB drive for an additional 1TB storage? If so how and would it be very slow? From existing usage it appears to be very slow when used as a regular access drive, so perhaps better as a 'slow' drive that is just occassionaly used for back up and nothing else
    Main question is (to the networking experts!), how would you personally set up all above to give best wifi coverage, fastest back ups, access to Sonos for iTune library, access to Apple TV, and shared folders etc etc. I basically seem to have lots of kit (albeit some quite old) and nothing seems to be working together particularly well.
    Happy also to ditch any bottlenecks in the above equipment list (eg LaCie USB drive?) and add something which would better bring together the other components?
    Any thoughts much appreciated!
    Best
    Amer

    So ... FINALLY ... I found some time to implement this!
    Steps taken and results:
    1. Moved my entire music library to Mac1. Used the opportunity to also share my other Mac2 onto HomeShare and copy across any music files from Mac2 onto Mac1 that were not already there.
    Result:  Mac1 now holds my whole music library locally. Works incredibly fast whenever playing a track, adding a new track or updating info on existing track. Good!
    2. LaPastenague's instructions for bridging TC1 with TC2 worked a dream. Only thing is they are basically next to each other as I don't have the energy (or cabling expertise) to install (cleanly) long runs of ethernet cable.
    Result: Got a clear Wifi signal, not sure if any faster than before but I assume two TCs next to each other both sending out the same network signal can't be any worse than one. Main thing is that I have an extra 1Tb network drive (i.e. TC2) connected to TC1 which I can access from all my Macs now.
    3. Copied the entire Mac1 Music library over to TC2 drive into the Data folder. This happened relatively quickly (I think!) ... but would welcome any comments on whether slower than expected, to highlight if I might be able to improve the connection. 12,000 songs in 2 hours, with Mac1 sending the files to TC2 wirelessly. I know I could probably have connected Mac1 to TC2 by ethernet cable to speed up, but I had run out of Ethernet cables by now!
    Result: All my music (as of today anyway) now on Mac1 AND on TC2 in normal readable format (i.e. by Sonos and as a simple back-up that can just be carried around and copied anywhere in the event of loss of Mac1 drive
    4. Set up TC2 Music Library in Data folder to be the networked music folder for Sonos using "\\TC2\Data" (ps. why doesn't Sonos allow a simple click and select option for choosing drive and instead force us to go back to the 80s and type in drive path which isn't always clear, especially on a Mac!)
    Result: Sonos can access all my music (as of today anyway) on TC2 and no need for Mac1 or any other Mac to be open.
    BUT: As you may have guessed, the issue with the above set up is that as soon as I buy a new song, it will get added to my Mac1 quickly and smoothly ... but the area where I really use my music (i.e. Sonos via TC2) will have the older music library.
    QUESTION: Is there any way in which I can adjust the above set up, so that whenever I add new music to my Mac1 it also copies across to TC2? Don't mind if this is done slowly and later (eg in middle of night) but of course don't want to have to copy across manually each time. Would prefer it to just update newly added tracks regularly.

  • My partner and I each have an iTouch and one iMac.  Our iTunes only recognizes my iTouch  - how do we use two iTouches on one iMac?

    My partner and I each have an iTouch and one iMac.  iTunes only recognizes my iTouch.  How can we use one iTunes with two iTouches.
    thanks

    iTunes can manage any number of iDevices separately. Be sure each has a different name. You can only connect one at a time. Please get the IPod Touch user guide.

  • How can I use two different Yahoo mail accounts ion Firefox?

    I have two Yahoo mail IDs. How can I use them both simultaneously on Firefox? Right now I am running Firefox and Internet Explorer so I can have the two accounts open at the same time. I would prefer to have both accounts running on Firefox, but I can't figure out how to do it.

    Multifox is an extension that allows Firefox to connect to websites using different user names. Simultaneously! <br />
    http://br.mozdev.org/multifox/

  • How can I use two single-dimensional arrays-one for the titles and array

    I want to Use two single-dimensional arrays-one for the titles and one for the ID
    Could everyone help me how can i write the code for it?
    Flower
    public class Video
    public static void main(String[] args) throws Exception
    int[][] ID =
    { {145,147,148},
    {146,149, 150} };
    String[][] Titles=
    { {"Barney","True Grit","The night before Christmas"},
    {"Lalla", "Jacke Chan", "Metal"} };
    int x, y;
    int r, c;
    System.out.println("List before Sort");
    for(c =0; c< 3; ++c)
    for(r=0; r< 3; ++ r)
    System.out.println("ID:" + ID[c][r]+ "\tTitle: " + Titles[c][r]);
    System.out.println("\nAfter Sort:");
    for(c =0; c< 3; ++c)
    for(r=0; r< 3; ++ r)
    System.out.println("ID:" + ID[c][r]+ "\tTitle: " + Titles[c][r]);

    This is one of the most bizarre questions I have seen here:
    public class Video
    public static void main(String[] args) throws Exception
    int[] ID = {145,147,148, 146,149, 150};
    String[] Titles= {"Barney","True Grit","The night before Christmas", "Lalla", "Jacke Chan", "Metal"};
    System.out.println("List before Sort");
    for(int i = 0; i < Titles.length; i++)
       System.out.println("ID:" + ID[i]+ "\tTitle: " + Titles);
    System.out.println("\nAfter Sort:");
    for(int i = 0; c < Titles.length; i++)
    System.out.println("ID:" + ID[i]+ "\tTitle: " + Titles[i]);
    Generally you don't use prefix (++c) operators in you for loop. Use postfix (c++).
    Prefix means that it will increment the variable before the loop body is executed. Postfix will cause it to increment after.

  • How can I use two screens to display one window

    Before Mavericks, MAC OS allowed you to use two screens (next to each other) in order to display one (big) window of one application.
    That would mean that a window would start on your left screen en would continue on the right screen.
    With Mavericks, however, this not possible any more. The window of the application can only be seen on ONE of the screens (i.e. the left one).
    Can any one tell me whether I've missed certain options or how to adjust my settings in order to get this feature back?

    Hey CGNL,
    First, if you haven't already, set up the displays as an extended desktop:
    Choose Apple menu > System Preferences, click Displays, then click Arrangement.
    Follow the onscreen instructions.
    Then, use Mission Control preferences to uncheck/turn off the option for "Displays have separate Spaces":
    Choose Apple menu > System Preferences, click Mission Control
    Uncheck "Displays have separate Spaces"
    That should enable you to stretch whatever window you want across multiple displays.
    via: OS X Mavericks: Connect multiple displays to your Mac
    http://support.apple.com/kb/PH13814
    and
    OS X Mavericks: Mission Control preferences
    http://support.apple.com/kb/PH13925
    Welcome to Apple Support Communities!
    Have a good one,
    Delgadoh

  • How do I use two DAQ cards in one Labview code? Current I'm getting error " error 200558 occurred at DAQmx Create Channel.vi. One task cann't contain multiple independent devices". Can someone help me?

    The two DAQ cards are NI PCI-6070E & NI PCI-6052E. The Labview I'm using is labview 7 Express and the Window system is Window XP. I'm using NI SCXI-1000 chasis and SCXI-1102 & 1102B two modules plus a feedthrough SCXI-1180. 1102 is connected through SCXI-1349 cable to DAQ card 6052E while 1102B is connected through SCXI-1349 cable to DAQ card 6070E. SCXI-1180 is connected to 6070E through SCXI-1349 adaptor on the back of 1102B.

    Sarah, thank you for replying my question. It seems that I'm making progress everyday (smile). I'm able to run the test using both daq cards in my code now. But as I'm moving forward, I'm getting new questions too. How do I use one STOP button to control both tasks and how can I save data into one single file?
    I attached my code here hoping you can get the specifics on my application by looking at the code. Thanks very much!
    Thanks.
    Attachments:
    DAQmx_Task_Example_plus_voltage_2.vi ‏416 KB

Maybe you are looking for