为什么 MQ Websphere Queue Manager 开始通过 TCP6 监听
Why MQ Websphere Queue Manager starts listening trough TCP6
如标题所述。我有 queue 管理器,IPADDR 配置为 (IPV4)。但是,每当我在 queue 管理器上启动监听器时,它都会通过 TCP6 进行监听。
WebSphere 版本:7.5
请注意 Migrating a queue manager to IPv6 页面上的文档,其中指出:
The preferred IP version that two systems use for communicating (if
both IPv4 and IPv6 are available) is determined by a new queue manager
attribute IPADDRV. This parameter only has an effect if the hostname
resolves ambiguously to both an IPv4 address and an IPv6 address.
(强调已添加。)请注意,其效果取决于解析 DNS 名称的参数将主要应用于 出站 连接。
您想要的是 DEFINE LISTENER
命令的 IPADDR
参数,其中规定:
IP address for the listener specified in IPv4 dotted decimal, IPv6
hexadecimal notation, or alphanumeric host name form. If you do not
specify a value for this parameter, the listener listens on all
configured IPv4 and IPv6 stacks.
这是关于将名称解析应用于出站连接的 IPADDRV
指南的例外情况。如果将 DNS 名称放在侦听器的 IPADDR
中,则侦听器将使用该名称解析到的 IP 版本地址,或者如果它解析为 IPV4 和 IPV6 将采用 [=12] 中设置的版本=].
由于您报告 IPADDRV
无效,那么侦听器要么绑定到 IPV6 地址或 DNS 名称,要么侦听器未绑定到任何特定地址,而是在所有接口上混杂地侦听。
如标题所述。我有 queue 管理器,IPADDR 配置为 (IPV4)。但是,每当我在 queue 管理器上启动监听器时,它都会通过 TCP6 进行监听。
WebSphere 版本:7.5
请注意 Migrating a queue manager to IPv6 页面上的文档,其中指出:
The preferred IP version that two systems use for communicating (if both IPv4 and IPv6 are available) is determined by a new queue manager attribute IPADDRV. This parameter only has an effect if the hostname resolves ambiguously to both an IPv4 address and an IPv6 address.
(强调已添加。)请注意,其效果取决于解析 DNS 名称的参数将主要应用于 出站 连接。
您想要的是 DEFINE LISTENER
命令的 IPADDR
参数,其中规定:
IP address for the listener specified in IPv4 dotted decimal, IPv6 hexadecimal notation, or alphanumeric host name form. If you do not specify a value for this parameter, the listener listens on all configured IPv4 and IPv6 stacks.
这是关于将名称解析应用于出站连接的 IPADDRV
指南的例外情况。如果将 DNS 名称放在侦听器的 IPADDR
中,则侦听器将使用该名称解析到的 IP 版本地址,或者如果它解析为 IPV4 和 IPV6 将采用 [=12] 中设置的版本=].
由于您报告 IPADDRV
无效,那么侦听器要么绑定到 IPV6 地址或 DNS 名称,要么侦听器未绑定到任何特定地址,而是在所有接口上混杂地侦听。