What is the need to create host.properties file in system/drivers/etc path.. if i have a Dual NIC Card comfiguration

SHASANKA Routaraya 1 Reputation point
2021-01-11T11:28:20.137+00:00

I want to know what is the need of host.properties in system/drivers/etc path.

The RDS is having a dual network interface card configuration.

I found out that this is needed to route the packets properly through a interface card.

I need more clarification on this.

Please help...!!!

Regards
Shasanka

Windows for business | Windows Client for IT Pros | Networking | Network connectivity and file sharing
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. MotoX80 36,291 Reputation points
    2021-01-11T14:22:39.807+00:00

    What documentation are you looking at that says that you need a host.properties file?

    It's been some time since I've had to do this, but I believe that you need to use the route command to tell Windows which interface to use for a given IP range.

    https://sourcedaddy.com/networking/using-route-command.html

    https://www.howtogeek.com/howto/windows/adding-a-tcpip-route-to-the-windows-routing-table/

    https://www.raymond.cc/blog/choosing-which-connection-to-use-with-windows-routing-table-editor-gui/


  2. Anonymous
    2021-01-12T06:41:00.293+00:00

    Hi,

    Thanks for posting in Q&A platform.

    Based on provided information, my understanding is the session host has 2 network adapters and you want the package from client can be sent to the specific IP address of one of these network adapters. If my understanding is wrong, please help to correct me.

    If you need to resolve the hostname of session host to the specific IP address, you can add the map of hostname and IP address in the host file from client side. However, may I know whether this IP address and the IP of client are in the same subnet? If no, you should use IP routing for all traffic to the right subnet.

    The hosts file is used to map hostnames (in other words domains) to IP addresses. With the hosts file, you can change the IP address that you resolve a given domain name to. This change only affects your own computer without affecting how the domain is resolved worldwide.

    For more detailed steps on how to add a route to the Windows Routing Table, please refer to the following article:

    How to Add a Static TCP/IP Route to the Windows Routing Table

    Please Note: Since the websites are not hosted by Microsoft, the links may change without notice. Microsoft does not guarantee the accuracy of this information.

    Best Regards,
    Sunny

    ----------

    If the Answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


  3. MotoX80 36,291 Reputation points
    2021-01-12T14:59:09.71+00:00

    But there is no extensive descrption about the usage.

    Either your documentation is bad, or that is a Citrix specific file. The actual Windows file name is just "hosts", not "host.properties".

    host.name=eth2 IP

    Just the opposite. The hosts file format is:

    IP Hostname

    https://www.howtogeek.com/howto/27350/beginner-geek-how-to-edit-your-hosts-file/

    C:\>type C:\Windows\System32\drivers\etc\hosts
    # Copyright (c) 1993-2009 Microsoft Corp.
    #
    # This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
    #
    # This file contains the mappings of IP addresses to host names. Each
    # entry should be kept on an individual line. The IP address should
    # be placed in the first column followed by the corresponding host name.
    # The IP address and the host name should be separated by at least one
    # space.
    #
    # Additionally, comments (such as these) may be inserted on individual
    # lines or following the machine name denoted by a '#' symbol.
    #
    # For example:
    #
    #      102.54.94.97     rhino.acme.com          # source server
    #       38.25.63.10     x.acme.com              # x client host
    
    # localhost name resolution is handled within DNS itself.
    #       127.0.0.1       localhost
    #       ::1             localhost
    
    192.168.1.5  Testweb.com
    192.168.1.5  sub.Testweb.com
    

    Go back to your manager and your application support team and ask them for clarification.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.