v17.0.0 v16.0.0 v15.0.0 v13.0.0

  • General
  • Commands
  • Modules

On this page:
  • ltm rule command LINK vlan id
  • CloudDocs Home > F5 TMSH Reference > ltm rule command LINK vlan id

ltm rule command LINK vlan idΒΆ

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



LINK::vlan_id
       Returns the VLAN tag of the packet.

SYNOPSIS
       LINK::vlan_id

DESCRIPTION
       Returns the VLAN tag of the packet. This command is equivalent to the
       BIG-IP 4.X variable vlan_id.

       Syntax

       LINK::vlan_id

	    * Returns the VLAN tag of the packet.

RETURN VALUE
       LINK::vlan_id

	    * Returns the VLAN tag of the packet.

VALID DURING
EXAMPLES
	# log requests
	when CLIENT_ACCEPTED {
	    set info "client { [IP::client_addr]:[TCP::client_port] -> [IP::local_addr]:[TCP::local_port] }"
	    append info " ethernet "
	    append info " { [string range [LINK::lasthop] 0 16] -> [string range [LINK::nexthop] 0 16] "
	    append info "tag [LINK::vlan_id] qos [LINK::qos] }"
	    log local0. $info
	}

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



BIG-IP				  2018-07-19			      iRule(1)