other versions
- wheezy 20120521-3+b3
- wheezy-backports 3.16.0-2~bpo70+1
- jessie 3.16.0-2
- testing 4.9.0-1
- unstable 4.9.0-1
IP-LINK(8) | Linux | IP-LINK(8) |
NAME¶
ip-link - network device configurationSYNOPSIS¶
ip [ OPTIONS ] link { COMMAND | help }
DESCRIPTION¶
ip link add - add virtual link¶
- link DEVICE
- specifies the physical device to act operate on.
vlan - 802.1q tagged virtual LAN interface
ip link delete - delete virtual link¶
DEVICE specifies the virtual device to act operate on. TYPE specifies the type of the device.- dev DEVICE
- specifies the physical device to act operate on.
ip link set - change device attributes¶
- dev DEVICE
- DEVICE specifies network device to operate on. When
configuring SR-IOV Virtual Fuction (VF) devices, this keyword should
specify the associated Physical Function (PF) device.
- group GROUP
- GROUP has a dual role: If both group and dev are
present, then move the device to the specified group. If only a group is
specified, then the command operates on all devices in that group.
- up and down
- change the state of the device to UP or DOWN.
- arp on or arp off
- change the NOARP flag on the device.
- multicast on or multicast off
- change the MULTICAST flag on the device.
- dynamic on or dynamic off
- change the DYNAMIC flag on the device.
- name NAME
- change the name of the device. This operation is not
recommended if the device is running or has some addresses already
configured.
- txqueuelen NUMBER
- txqlen NUMBER
- change the transmit queue length of the device.
- mtu NUMBER
- change the MTU of the device.
- address LLADDRESS
- change the station address of the interface.
- broadcast LLADDRESS
- brd LLADDRESS
- peer LLADDRESS
- change the link layer broadcast address or the peer address
when the interface is POINTOPOINT.
- netns PID
- move the device to the network namespace associated with
the process PID.
- netns NETNSNAME
- move the device to the network namespace associated with
name NETNSNAME.
- alias NAME
- give the device a symbolic name for easy reference.
- group GROUP
- specify the group the device belongs to. The available
groups are listed in file /etc/iproute2/group.
- vf NUM
- specify a Virtual Function device to be configured. The
associated PF device must be specified using the dev parameter.
mac LLADDRESS - change the station address for the specified VF. The vf parameter must be specified.
- master DEVICE
- set master device of the device (enslave device).
- nomaster
- unset master device of the device (release device).
ip link show - display device attributes¶
- dev NAME (default)
- NAME specifies the network device to show. If this
argument is omitted all devices in the default group are listed.
- group GROUP
- GROUP specifies what group of devices to show.
- up
- only display running interfaces.
EXAMPLES¶
ip link showShows the state of all network interfaces on
the system.
ip link set dev ppp0 mtu 1400
Change the MTU the ppp0 device.
ip link add link eth0 name eth0.10 type vlan id 10
Creates a new vlan device eth0.10 on device
eth0.
ip link delete dev eth0.10
Removes vlan device.
SEE ALSO¶
ip(8)AUTHOR¶
Original Manpage by Michail Litvak <mci@owl.openwall.com>20 Dec 2011 | iproute2 |