ltm rule command IP versionΒΆ

iRule(1)		      BIG-IP TMSH Manual		      iRule(1)



IP::version
       Returns the IP version of a connection.

SYNOPSIS
       IP::version

DESCRIPTION
       Returns the IP version of a connection. When called in a clientside
       event, this command returns the IP version for the clientside
       connection. When called in a serverside event, this command returns the
       IP version for the serverside connection.

RETURN VALUE
       IP version of a connection

VALID DURING
       ANY_EVENT

EXAMPLES
	when CLIENT_ACCEPTED {
	   log local0. "Client [IP::client_addr], VS: [IP::local_addr],\
	      \[IP::version\]: [IP::version], \[IP::protocol\]: [IP::protocol]"
	}

	# Log output for a TCP connection over IPv4:
	# : Client 10.1.0.11, VS: 10.1.0.15, [IP::version]: 4, [IP::protocol]: 6

	# Log output for a TCP connection over IPv6:
	# : Client fc00::1, VS: fc00::2, [IP::version]: 6, [IP::protocol]: 6

HINTS
SEE ALSO
CHANGE LOG
       @BIGIP-9.2.0 --First introduced the command.



BIG-IP				  2017-01-31			      iRule(1)