Internal
Optional
addressChange the station address of the interface.
Optional
addrgenmodeSet the IPv6 address generation mode.
Optional
aliasGive the device a symbolic name for easy reference.
Optional
allmulticastChange the ALLMULTI flag on the device. When enabled, instructs network driver to retrieve all multicast packets from the network to the kernel for further processing.
Optional
arpChange the NOARP flag on the device.
Optional
broadcastChange the link layer broadcast address or the peer address when the interface is POINTOPOINT.
Optional
devSpecifies network device to operate on.
When configuring SR-IOV Virtual Function (VF) devices, this keyword should specify the associated Physical Function (PF) device.
Optional
downChange the state of the device to DOWN.
Optional
dynamicChange the DYNAMIC flag on the device. Indicates that address can change when interface goes down (currently NOT used by the Linux).
Optional
link-Set peer netnsid for a cross-netns interface.
Optional
masterSet master device of the device (enslave device).
Optional
mtuChange the MTU of the device.
Optional
multicastChange the MULTICAST flag on the device.
Optional
nameChange the name of the device. This operation is not recommended if the device is running or has some addresses already configured.
Optional
netnsMove the device to the network namespace associated with name NETNSNAME or process PID.
Some devices are not allowed to change network namespace: loopback, bridge, wireless. These are network namespace local devices. In such case ip tool will return "Invalid argument" error. It is possible to find out if device is local to a single network namespace by checking netns-local flag in the output of the ethtool:
ethtool -k DEVICE
To change network namespace for wireless devices the iw tool can be used. But it allows to change network namespace only for physical devices and by process PID.
Optional
nomasterUnset master device of the device (release device).
Optional
promiscChange the PROMISC flag on the device. When enabled, activates promiscuous operation of the network device.
Optional
protodownChange the PROTODOWN state on the device. Indicates that a protocol error has been detected on the port. Switch drivers can react to this error by doing a phys down on the switch port.
Optional
protodown_Set PROTODOWN reasons on the device. protodown reason bit names can be enumerated under
/etc/iproute2/protodown_reasons.d/
.
Possible reasons bits 0-31.
Optional
trailersChange the NOTRAILERS flag on the device, NOT used by the Linux and exists for BSD compatibility.
Optional
txqueuelenChange the transmit queue length of the device.
Optional
typeChange type-specific settings.
For a list of supported types and arguments refer to LinkAddOptions.type. In addition to that, it is possible to manipulate settings to slave devices type.
Optional
upChange the state of the device to UP.
Optional
vfSpecify a Virtual Function device to be configured. The associated PF device must be specified using the dev parameter.
Optional
vf_Optional
mac?: stringChange the station address for the specified VF. The vf parameter must be specified.
Optional
max_Change the allowed maximum transmit bandwidth, in Mbps, for the specified VF.
Setting this parameter to 0
disables rate limiting.
vf parameter must be specified.
Optional
min_Change the allowed minimum transmit bandwidth, in Mbps, for the specified VF.
Minimum TXRATE should be always <= Maximum TXRATE.
Setting this parameter to 0
disables rate limiting.
vf parameter must be specified.
Optional
node_Configure node GUID for Infiniband VFs.
Optional
port_Configure port GUID for Infiniband VFs.
Optional
query_Toggle the ability of querying the RSS configuration of a specific VF. VF RSS information like RSS hash key may be considered sensitive on some devices where this information is shared between VF and PF and thus its querying may be prohibited by default.
Optional
rate?: numberChange the allowed transmit bandwidth, in Mbps, for the specified VF.
Setting this parameter to 0
disables rate limiting.
vf parameter must be specified.
Please use new API max_tx_rate option instead.
Optional
spoofchk?: OnOffToggleTurn packet spoof checking on or off for the specified VF.
Optional
state?: EnableDisableAutoToggleSet the virtual link state as seen by the specified VF. Setting to auto means a reflection of the PF link state, enable lets the VF to communicate with other VFs on this host even if the PF link state is down, disable causes the HW to drop any packets sent by the VF.
Optional
trust?: OnOffToggleTrust the specified VF user. This enables that VF user can set a specific feature which may impact security and/or performance. (e.g. VF multicast promiscuous mode)
Optional
vlan_Optional
xdpSet (or unset) a XDP ("eXpress Data Path") BPF program to run on every packet at driver level.
ip link
output will indicate a xdp flag for the networking device. If the driver does not have native XDP
support, the kernel will fall back to a slower, driver-independent "generic" XDP variant.
The ip link
output will in that case indicate xdpgeneric instead of xdp only.
If the driver does have native XDP support, but the program is loaded under xdpgeneric object | pinned
then the kernel will use the generic XDP variant instead of the native one.
xdpdrv has the opposite effect of requestsing that the automatic fallback to the generic XDP variant be disabled and in case driver is not XDP-capable error should be returned. xdpdrv also disables hardware offloads.
xdpoffload in ip link
output indicates that the program has been offloaded to hardware and can also be
used to request the "offload" mode, much like xdpgeneric it forces program to be installed specifically in
HW/FW of the apater.
Optional
xdpdrvOptional
xdpgenericOptional
xdpoffloadGenerated using TypeDoc
Link set dev options.