Jump to content
OpenSplice DDS Forum
JMStranz

Determination of the used network adapter

Recommended Posts

Hi,

What is the safest or best way to determine which network adapter to use?

I have a PC with Linux (Ubuntu 16.04) with 2 network adapters (cable adapter and wireless adapter).
The name of the wireless adapter is "wlp2s0" and the ip address is "192.168.4.74".

I'm trying to set the network adapter to use in the configuration file:

    <DDSI2Service name="ddsi2">
        <General>
            <NetworkInterfaceAddress>wlp2s0</NetworkInterfaceAddress>
           ...

or

    <DDSI2Service name="ddsi2">
        <General>
            <NetworkInterfaceAddress>192.168.4.74</NetworkInterfaceAddress>
            ...

This works fine if only the WLAN adapter is activated.
If both network adapters are activated, then it will not work.

Remark:
Selecting the network adapter this way works fine on a PC with Windos 7.

Best regards
Jan-Marc.

Share this post


Link to post
Share on other sites

I typically use the logical-name so that the same configuration can be exploited on multiple (similarly 'hosted') machines.

Not sure which of the 2 options doesn't work when your WLAN adapter is activated, but I can't imagine why any of them wouldn't work (assuming that both adapters have both unique names as well as unique ip-addresses)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×