ltm rule command lasthopΒΆ

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



lasthop
       Sets the lasthop of an IP connection.

SYNOPSIS
       lasthop (VLAN_OBJ)? (IP_ADDR | MAC_ADDR)

DESCRIPTION
       Sets the lasthop of a IP connection. The lasthop is the MAC destination
       for packets going back to the client. This is usually the router
       (gateway) that forwards the client's packets to the BIG-IP (if "auto
       lasthop" is set), or is determined by the IP routing table. This
       command lets you specify the lasthop to use for a particular
       connection.

       Syntax

       lasthop [] 

	    * Sets the lasthop to the ethernet address belonging to the specified
	      IP address, optionally on the specified vlan. The IP address must
	      be directly connected to the BIG-IP (no intermediate router).

       lasthop  

	    * Sets the lasthop to the specified ethernet address on the specified
	      vlan.

RETURN VALUE
VALID DURING
       AUTH_ERROR, AUTH_FAILURE, AUTH_RESULT, AUTH_SUCCESS,
       AUTH_WANTCREDENTIAL, CACHE_REQUEST, CACHE_RESPONSE, CACHE_UPDATE,
       CLIENT_ACCEPTED, CLIENT_CLOSED, CLIENT_DATA, CLIENT_LINE,
       CLIENTSSL_CLIENTCERT, CLIENTSSL_HANDSHAKE, HTTP_CLASS_FAILED,
       HTTP_CLASS_SELECTED, HTTP_REQUEST, HTTP_REQUEST_DATA,
       HTTP_REQUEST_SEND, HTTP_RESPONSE, HTTP_RESPONSE_CONTINUE,
       HTTP_RESPONSE_DATA, LB_FAILED, LB_SELECTED, NAME_RESOLVED,
       PERSIST_DOWN, RTSP_REQUEST, RTSP_REQUEST_DATA, RTSP_RESPONSE,
       RTSP_RESPONSE_DATA, SERVER_CLOSED, SERVER_CONNECTED, SERVER_DATA,
       SERVER_LINE, SERVERSSL_HANDSHAKE, SIP_REQUEST, SIP_REQUEST_SEND,
       SIP_RESPONSE, SIP_RESPONSE_SEND, STREAM_MATCHED, USER_REQUEST,
       USER_RESPONSE, XML_BEGIN_DOCUMENT, XML_BEGIN_ELEMENT, XML_CDATA,
       XML_END_DOCUMENT, XML_END_ELEMENT, XML_EVENT

EXAMPLES
	when CLIENT_ACCEPTED {
	  lasthop external 01:23:45:ab:cd:ef
	}

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



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