[jboss-jira] [JBoss JIRA] Commented: (JGRP-916) TCP_NIO uses default IP address instead of bind_addr
Bela Ban (JIRA)
jira-events at lists.jboss.org
Fri Mar 20 06:26:23 EDT 2009
[ https://jira.jboss.org/jira/browse/JGRP-916?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12458353#action_12458353 ]
Bela Ban commented on JGRP-916:
-------------------------------
When you mention several IP addresses for a physical NIC, you associate them as aliases ? Like this:
ifconfig eth1 192.168.1.5
ifconfig eth1:1 192.168.1.6
ifconfig eth1:2 192.168.1.7
I tried tcp-nio shipped with JGroups 2.7 and this worked without problems. I tested this on Linux (Fedora 9)
My config included TCP(bind_port="7800") and TCPPING with initial_hosts being "192.168.1.5[7800],192.168.1.6[7800],192.168.1.7[7800]".
If this doesn't work, please re-open this case, but add concise instructions as to how to reproduce this.
> TCP_NIO uses default IP address instead of bind_addr
> ----------------------------------------------------
>
> Key: JGRP-916
> URL: https://jira.jboss.org/jira/browse/JGRP-916
> Project: JGroups
> Issue Type: Bug
> Affects Versions: 2.7
> Environment: ubuntu linux 8.10
> Reporter: Victor N
> Assignee: Bela Ban
> Priority: Minor
> Fix For: 2.6.9, 2.8
>
>
> I have seen that TCP_NIO ignores 'bind_addr' in some requests, in the same situation TCP works perfectly.
> How to reproduce.
> let's assume you have 2 computers - the first one with 1 physical network card but this card have several IP addresses (the first IP is considered default); the seconds computer just has 1 network card with one IP.
> node A - run it at the first computer and set 'bind_addr' to a NON-DEFAULT IP address
> node B - run it at the second computer
> You will see in networks sniffer that some packets goes from wrong address - instead of 'bind_addr", the default IP is used. And the communication does not work.
> In the same situation TCP works perfectly, so it seems to be bug in TCP_NIO.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list