Commit df33d7a4 authored by Stephen Hemminger's avatar Stephen Hemminger

Add documentation for ip link add/delete sub-commands

Add some missing pieces. Still need to add doucmentation for rest
of vlan arguments.
parent a1713954
...@@ -26,6 +26,34 @@ ip \- show / manipulate routing, devices, policy routing and tunnels ...@@ -26,6 +26,34 @@ ip \- show / manipulate routing, devices, policy routing and tunnels
.BR inet " | " inet6 " | " ipx " | " dnet " | " link " } | " .BR inet " | " inet6 " | " ipx " | " dnet " | " link " } | "
\fB\-o\fR[\fIneline\fR] } \fB\-o\fR[\fIneline\fR] }
.ti -8
.BI "ip link add link " DEVICE
.RB "[ " name " ]"
.I NAME
.br
.RB "[ " txqueuelen
.IR PACKETS " ]"
.br
.RB "[ " address
.IR LLADDR " ]"
.RB "[ " broadcast
.IR LLADDR " ]"
.br
.RB "[ " mtu
.IR MTU " ]"
.br
.BR type TYPE
.RI "[ " ARGS " ]"
.ti -8
.IR TYPE " := [ "
.BR vlan " | " maclan " | " can " ]"
.ti -8
.BI "ip link delete " DEVICE
.BI type TYPE
.RI "[ " ARGS " ]"
.ti -8 .ti -8
.BI "ip link set " DEVICE .BI "ip link set " DEVICE
.RB "{ " up " | " down " | " arp " { " on " | " off " } |" .RB "{ " up " | " down " | " arp " { " on " | " off " } |"
...@@ -68,8 +96,6 @@ ip \- show / manipulate routing, devices, policy routing and tunnels ...@@ -68,8 +96,6 @@ ip \- show / manipulate routing, devices, policy routing and tunnels
.IR VLAN-QOS " ] ] [" .IR VLAN-QOS " ] ] ["
.B rate .B rate
.IR TXRATE " ]" .IR TXRATE " ]"
.BR " }"
.ti -8 .ti -8
.B ip link show .B ip link show
...@@ -833,11 +859,47 @@ or, if the objects of this class cannot be listed, ...@@ -833,11 +859,47 @@ or, if the objects of this class cannot be listed,
is a network device and the corresponding commands is a network device and the corresponding commands
display and change the state of devices. display and change the state of devices.
.SS ip link set - change device attributes .SS ip link add - add virtual link
.TP .TP
.BI dev " NAME " (default) .BI link " DEVICE "
specifies the physical device to act operate on.
.I NAME .I NAME
specifies the name of the new virtual device.
.I TYPE
specifies the type of the new device.
.sp
Link types:
.in +8
.B vlan
- 802.1q tagged virrtual LAN interface
.sp
.B macvlan
- virtual interface base on link layer address (MAC)
.sp
.B can
- Controller Area Network interface
.in -8
.SS ip link delete - delete virtual link
.I DEVICE
specifies the virtual device to act operate on.
.I TYPE
specifies the type of the device.
.TP
.BI dev " DEVICE "
specifies the physical device to act operate on.
.SS ip link set - change device attributes
.TP
.BI dev " DEVICE "
.I DEVICE
specifies network device to operate on. When configuring SR-IOV Virtual Fuction specifies network device to operate on. When configuring SR-IOV Virtual Fuction
(VF) devices, this keyword should specify the associated Physical Function (PF) (VF) devices, this keyword should specify the associated Physical Function (PF)
device. device.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment