IPv6 and IPv4 preference
search cancel

IPv6 and IPv4 preference

book

Article ID: 260776

calendar_today

Updated On:

Products

CA API Gateway

Issue/Introduction

After configuring an CA API Gateway to be dual stacked how does the Gateway know which stack to transmit and receive from: IPv4 or IPv6?  Is this done through Policy Manager?

Environment

Release : 10.1

Resolution

The default gateway behavior in the ssgruntimedefs.sh  if IPv6 is configured it will use it by default 

/home/ssgconfig/profile.d/ssgruntimedefs.sh

default_java_opts="-server "

if [ ! -f "/etc/sysconfig/network" -o  "$(grep "^NETWORKING_IPV6=yes" /etc/sysconfig/network 2>/dev/null)" ]

then

  default_java_opts="$default_java_opts -Djava.net.preferIPv4Stack=false "

else

  default_java_opts="$default_java_opts -Djava.net.preferIPv4Stack=true "

fi