5 Replies Latest reply on Dec 24, 2003 11:13 AM by Tameshwar Sahu

    HAMembershipListener gives defaut IP in Multihome machine

    Tameshwar Sahu Newbie

      We have a server will three NICs. We don't want to use the default NIC for Jboss services.

      We use HAMembershipListener to get IP address of Jboss servers in cluster. But the cluster view gives IP of default NIC.

      lo0: flags=1000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4> mtu 8232 index 1
      inet 127.0.0.1 netmask ff000000
      eri0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
      inet 172.16.11.151 netmask fffff000 broadcast 172.16.15.255
      hme0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 3
      inet 10.1.1.151 netmask ffffff00 broadcast 10.1.1.255
      hme1: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 4
      inet 10.1.2.151 netmask ffffff00 broadcast 10.1.2.255

      We would like to use 10.1.1.151 instead of 171.16.11.151 in Jboss.

      We have set the following system properties and still the HAMembershipListener doesn't give desired IP address.

      -Djboss.bind.address=10.1.1.151-Djava.rmi.server.hostname=10.1.1.151

      Please give valuable suggestion.

      Cheers
      Monu

        • 2. Re: HAMembershipListener gives defaut IP in Multihome machin
          Tameshwar Sahu Newbie

          Hi Bela,

          I tried setting bind_addr in UDP but then also it is not working.

          Monu

          • 3. Re: HAMembershipListener gives defaut IP in Multihome machin
            Tameshwar Sahu Newbie

            The below is the UDP configuration from cluster.xml file.


            <!-- UDP: if you have a multihomed machine,
            set the bind_addr attribute to the appropriate NIC IP address -->
            <!-- UDP: On Windows machines, because of the media sense feature
            being broken with multicast (even after disabling media sense)
            set the loopback attribute to true -->
            <UDP mcast_addr="228.1.2.3" mcast_port="45566" bind_addr="10.1.1.151"
            ip_ttl="64" ip_mcast="true"
            mcast_send_buf_size="150000" mcast_recv_buf_size="80000"
            ucast_send_buf_size="150000" ucast_recv_buf_size="80000"
            loopback="false"/>
            <PING timeout="2000" num_initial_members="3"
            up_thread="true" down_thread="true" />
            <MERGE2 min_interval="5000" max_interval="10000" />
            <FD shun="true" up_thread="true" down_thread="true"
            timeout="2500" max_tries="5" />
            <VERIFY_SUSPECT timeout="3000" num_msgs="3"
            up_thread="true" down_thread="true" />
            <pbcast.NAKACK gc_lag="50" retransmit_timeout="300,600,1200,2400,4800"
            up_thread="true" down_thread="true" />
            <pbcast.STABLE desired_avg_gossip="20000"
            up_thread="true" down_thread="true" />
            <UNICAST timeout="5000" window_size="100" min_threshold="10"
            down_thread="true" />
            <FRAG frag_size="8192"
            down_thread="true" up_thread="true" />
            <pbcast.GMS join_timeout="5000" join_retry_timeout="2000"
            shun="true" print_local_addr="true" />
            <pbcast.STATE_TRANSFER up_thread="true" down_thread="true" />


            Regards,
            Monu

            • 4. Re: HAMembershipListener gives defaut IP in Multihome machin
              Tameshwar Sahu Newbie

              For the above query i have given below the environment:

              OS- SunOS
              Jboss version - 3.2.2
              jdk version-j2sdk1.4.2_02


              Thanks,
              Monu

              • 5. Re: HAMembershipListener gives defaut IP in Multihome machin
                Tameshwar Sahu Newbie

                Tried all above settings with Jboss 3.2.3 but still have same issue.

                17:47:22,964 WARN [NamingContext] Failed to connect to 172.16.11.151:21099
                javax.naming.CommunicationException: Failed to connect to server 172.16.11.151:21099 [Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server 172.16.11.151:21099 [Root exception is java.net.ConnectException: Connection refused]]

                Here instead of 172.16.11.151 I should get 10.1.1.151 ( from HAMembershipListener) but we get 172.16.11.151 and hence my application is not working.