|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Changing the LOCLADDR attribute |
« View previous topic :: View next topic » |
Author |
Message
|
pintrader |
Posted: Tue Oct 07, 2014 5:12 pm Post subject: Changing the LOCLADDR attribute |
|
|
Disciple
Joined: 22 Jan 2014 Posts: 164
|
hi
On my QMGR, I have sender channels with LOCLADDR(10.10.10.10(1414)) but my receiver channels have LOCLADDR((::ffff:10.10.10.10(1414))..
It seems my receiver channels have IPv6 mappings. How can i change it to IPv4 format? In fact should i change it at all ?
thanks |
|
Back to top |
|
 |
PaulClarke |
Posted: Tue Oct 07, 2014 6:57 pm Post subject: |
|
|
 Grand Master
Joined: 17 Nov 2005 Posts: 1002 Location: New Zealand
|
Both of these are IPv4 addresses. Just that one of them is in IPv6 syntax. I don't really see a need to change them if it's working.
However, specifying 1414 as the port number is, in my experience, unusual. I would have expected either no port or a port range that should be bind()'ed to this side of the channel. This is quite different from the listener port number.
Cheers,
Paul. _________________ Paul Clarke
MQGem Software
www.mqgem.com |
|
Back to top |
|
 |
pintrader |
Posted: Tue Oct 07, 2014 7:07 pm Post subject: |
|
|
Disciple
Joined: 22 Jan 2014 Posts: 164
|
PaulClarke wrote: |
Both of these are IPv4 addresses. Just that one of them is in IPv6 syntax. I don't really see a need to change them if it's working.
However, specifying 1414 as the port number is, in my experience, unusual. I would have expected either no port or a port range that should be bind()'ed to this side of the channel. This is quite different from the listener port number.
Cheers,
Paul. |
hi
thanks. I only have one listener running on 1414.
My sender channels can establish connection to the other side without delay.
But my receiver channels establish connection with the other side after several minutes ,so i am not sure if this LOCLADDR has any relation to this issue or not. |
|
Back to top |
|
 |
fjb_saper |
Posted: Tue Oct 07, 2014 8:36 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
It probably does. As Paul said, remove the port from the localaddr field or specify a range of ports. This tells the system that you do not want the connection being established on port 1414 to be handed off to a random port but to a specific port range.
Keeping a single port in there is counterproductive. Making it the port of the listener is killing you on inbound connections...
Have fun  _________________ MQ & Broker admin |
|
Back to top |
|
 |
pintrader |
Posted: Tue Oct 07, 2014 10:24 pm Post subject: |
|
|
Disciple
Joined: 22 Jan 2014 Posts: 164
|
fjb_saper wrote: |
It probably does. As Paul said, remove the port from the localaddr field or specify a range of ports. This tells the system that you do not want the connection being established on port 1414 to be handed off to a random port but to a specific port range.
Keeping a single port in there is counterproductive. Making it the port of the listener is killing you on inbound connections...
Have fun :innocent: |
hi fjb_saper, thanks.
Actually i am quite confused about this listener port.
I followed the document : http://www-01.ibm.com/support/knowledgecenter/SSFKSJ_7.5.0/com.ibm.mq.ref.adm.doc/q085630_.htm
to create a listener on just one QMGR. I have only one QMGR
Code: |
DEFINE LISTENER(LISTENER1) TRPTYPE(TCP) PORT(1414) CONTROL(QMGR) |
I cannot have a range of ports as firewalls are already created to allow only 1414. Hence the only choice is to remove the port. But will remote sites know which port to connect to if I remove the 1414 port number?
Also, how would I change this parameter? Just like this ?
Code: |
alter chl(Mychannel) chltype(RCVR) LOCLADDR('10.10.10.10') |
after I change this parameter do I need to restart the QMGR? And this change is permanent right?
thanks |
|
Back to top |
|
 |
smdavies99 |
Posted: Wed Oct 08, 2014 12:38 am Post subject: |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
Here is an example of using a port range as suggested by Paul.
Code: |
DEFINE CHANNEL ('SAM.SVRCONN') CHLTYPE(CLNTCONN) +
TRPTYPE(TCP) +
CONNAME('10.10.14.150(10141)') +
LOCLADDR('(10000,10003),(10004,10006),(10007,10009)') +
REPLACE
|
Is used to limit the range of addresses that the IP Handoff can use so that the ports 10000-10009 and only those are used.
The client opens the port (10141) and when established, the next available port in the ranges is used for the connection.
This is defined in the Channel table file that is given to the client. Then both ends can agree on the port to be used.
Only the ports 10141, 10000-10009 are open in the firewall for this client to connect. We actually have three clients connecting from this remote system hence the three groups. _________________ WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995
Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions. |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|