Blame man/man8/ip-link.8.in

Packit Service 3880ab
.TH IP\-LINK 8 "13 Dec 2012" "iproute2" "Linux"
Packit Service 3880ab
.SH "NAME"
Packit Service 3880ab
ip-link \- network device configuration
Packit Service 3880ab
.SH "SYNOPSIS"
Packit Service 3880ab
.sp
Packit Service 3880ab
.ad l
Packit Service 3880ab
.in +8
Packit Service 3880ab
.ti -8
Packit Service 3880ab
.B ip link
Packit Service 3880ab
.RI  " { " COMMAND " | "
Packit Service 3880ab
.BR help " }"
Packit Service 3880ab
.sp
Packit Service 3880ab
Packit Service 3880ab
.ti -8
Packit Service 3880ab
.BI "ip link add"
Packit Service 3880ab
.RB "[ " link
Packit Service 3880ab
.IR DEVICE " ]"
Packit Service 3880ab
.RB "[ " name " ]"
Packit Service 3880ab
.I NAME
Packit Service 3880ab
.br
Packit Service 3880ab
.RB "[ " txqueuelen
Packit Service 3880ab
.IR PACKETS " ]"
Packit Service 3880ab
.br
Packit Service 3880ab
.RB "[ " address
Packit Service 3880ab
.IR LLADDR " ]"
Packit Service 3880ab
.RB "[ " broadcast
Packit Service 3880ab
.IR LLADDR " ]"
Packit Service 3880ab
.br
Packit Service 3880ab
.RB "[ " mtu
Packit Service 3880ab
.IR MTU " ]"
Packit Service 3880ab
.RB "[ " index
Packit Service 3880ab
.IR IDX " ]"
Packit Service 3880ab
.br
Packit Service 3880ab
.RB "[ " numtxqueues
Packit Service 3880ab
.IR QUEUE_COUNT " ]"
Packit Service 3880ab
.RB "[ " numrxqueues
Packit Service 3880ab
.IR QUEUE_COUNT " ]"
Packit Service 3880ab
.br
Packit Service 3880ab
.BR "[ " gso_max_size
Packit Service 3880ab
.IR BYTES " ]"
Packit Service 3880ab
.RB "[ " gso_max_segs
Packit Service 3880ab
.IR SEGMENTS " ]"
Packit Service 3880ab
.br
Packit Service 3880ab
.BI type " TYPE"
Packit Service 3880ab
.RI "[ " ARGS " ]"
Packit Service 3880ab
Packit Service 3880ab
.ti -8
Packit Service 3880ab
.BR "ip link delete " {
Packit Service 3880ab
.IR DEVICE " | "
Packit Service 3880ab
.BI "group " GROUP
Packit Service 3880ab
}
Packit Service 3880ab
.BI type " TYPE"
Packit Service 3880ab
.RI "[ " ARGS " ]"
Packit Service 3880ab
Packit Service 3880ab
.ti -8
Packit Service 3880ab
.BR "ip link set " {
Packit Service 3880ab
.IR DEVICE " | "
Packit Service 3880ab
.BI "group " GROUP
Packit Service 3880ab
}
Packit Service 3880ab
.br
Packit Service 3880ab
.RB "[ { " up " | " down " } ]"
Packit Service 3880ab
.br
Packit Service 3880ab
.RB "[ " type
Packit Service 3880ab
.IR "ETYPE TYPE_ARGS" " ]"
Packit Service 3880ab
.br
Packit Service 3880ab
.RB "[ " arp " { " on " | " off " } ]"
Packit Service 3880ab
.br
Packit Service 3880ab
.RB "[ " dynamic " { " on " | " off " } ]"
Packit Service 3880ab
.br
Packit Service 3880ab
.RB "[ " multicast " { " on " | " off " } ]"
Packit Service 3880ab
.br
Packit Service 3880ab
.RB "[ " allmulticast " { " on " | " off " } ]"
Packit Service 3880ab
.br
Packit Service 3880ab
.RB "[ " promisc " { " on " | " off " } ]"
Packit Service 3880ab
.br
Packit Service 3880ab
.RB "[ " protodown " { " on " | " off " } ]"
Packit Service 3880ab
.br
Packit Service 3880ab
.RB "[ " trailers " { " on " | " off " } ]"
Packit Service 3880ab
.br
Packit Service 3880ab
.RB "[ " txqueuelen
Packit Service 3880ab
.IR PACKETS " ]"
Packit Service 3880ab
.br
Packit Service 3880ab
.RB "[ " name
Packit Service 3880ab
.IR NEWNAME " ]"
Packit Service 3880ab
.br
Packit Service 3880ab
.RB "[ " address
Packit Service 3880ab
.IR LLADDR " ]"
Packit Service 3880ab
.br
Packit Service 3880ab
.RB "[ " broadcast
Packit Service 3880ab
.IR LLADDR " ]"
Packit Service 3880ab
.br
Packit Service 3880ab
.RB "[ " mtu
Packit Service 3880ab
.IR MTU " ]"
Packit Service 3880ab
.br
Packit Service 3880ab
.RB "[ " netns " {"
Packit Service 3880ab
.IR PID " | " NETNSNAME " } ]"
Packit Service 3880ab
.br
Packit Service 3880ab
.RB "[ " link-netnsid
Packit Service 3880ab
.IR ID " ]"
Packit Service 3880ab
.br
Packit Service 3880ab
.RB "[ " alias
Packit Service 3880ab
.IR NAME  " ]"
Packit Service 3880ab
.br
Packit Service 3880ab
.RB "[ " vf
Packit Service 3880ab
.IR NUM " ["
Packit Service 3880ab
.B  mac
Packit Service 3880ab
.IR LLADDR " ]"
Packit Service 3880ab
.br
Packit Service 3880ab
.in +9
Packit Service 3880ab
.RI "[ " VFVLAN-LIST " ]"
Packit Service 3880ab
.br
Packit Service 3880ab
.RB "[ " rate
Packit Service 3880ab
.IR TXRATE " ]"
Packit Service 3880ab
.br
Packit Service 3880ab
.RB "[ " max_tx_rate
Packit Service 3880ab
.IR TXRATE " ]"
Packit Service 3880ab
.br
Packit Service 3880ab
.RB "[ " min_tx_rate
Packit Service 3880ab
.IR TXRATE " ]"
Packit Service 3880ab
.br
Packit Service 3880ab
.RB "[ " spoofchk " { " on " | " off " } ]"
Packit Service 3880ab
.br
Packit Service 3880ab
.RB "[ " query_rss " { " on " | " off " } ]"
Packit Service 3880ab
.br
Packit Service 3880ab
.RB "[ " state " { " auto " | " enable " | " disable " } ]"
Packit Service 3880ab
.br
Packit Service 3880ab
.RB "[ " trust " { " on " | " off " } ]"
Packit Service 3880ab
.br
Packit Service 3880ab
.RB "[ " node_guid " eui64 ]"
Packit Service 3880ab
.br
Packit Service 3880ab
.RB "[ " port_guid " eui64 ] ]"
Packit Service 3880ab
.br
Packit Service 3880ab
.in -9
Packit Service 3880ab
.RB "[ { " xdp " | " xdpgeneric  " | " xdpdrv " | " xdpoffload " } { " off " | "
Packit Service 3880ab
.br
Packit Service 3880ab
.in +8
Packit Service 3880ab
.BR object
Packit Service 3880ab
.IR FILE
Packit Service 3880ab
.RB "[ " section
Packit Service 3880ab
.IR NAME " ]"
Packit Service 3880ab
.RB "[ " verbose " ] |"
Packit Service 3880ab
.br
Packit Service 3880ab
.BR pinned
Packit Service 3880ab
.IR FILE " } ]"
Packit Service 3880ab
.br
Packit Service 3880ab
.in -8
Packit Service 3880ab
.RB "[ " master
Packit Service 3880ab
.IR DEVICE " ]"
Packit Service 3880ab
.br
Packit Service 3880ab
.RB "[ " nomaster " ]"
Packit Service 3880ab
.br
Packit Service 3880ab
.RB "[ " vrf
Packit Service 3880ab
.IR NAME " ]"
Packit Service 3880ab
.br
Packit Service 3880ab
.RB "[ " addrgenmode " { " eui64 " | " none " | " stable_secret " | " random " } ]"
Packit Service 3880ab
.br
Packit Service 3880ab
.RB "[ " macaddr
Packit Service 3880ab
.RI "[ " MACADDR " ]"
Packit Service 3880ab
.br
Packit Service 3880ab
.in +10
Packit Service 3880ab
.RB "[ { " flush " | " add " | " del " } "
Packit Service 3880ab
.IR MACADDR " ]"
Packit Service 3880ab
.br
Packit Service 3880ab
.RB "[ " set
Packit Service 3880ab
.IR MACADDR " ] ]"
Packit Service 3880ab
.br
Packit Service 3880ab
Packit Service 3880ab
.ti -8
Packit Service 3880ab
.B ip link show
Packit Service 3880ab
.RI "[ " DEVICE " | "
Packit Service 3880ab
.B group
Packit Service 3880ab
.IR GROUP " ] ["
Packit Service 3880ab
.BR up " ] ["
Packit Service 3880ab
.B master
Packit Service 3880ab
.IR DEVICE " ] ["
Packit Service 3880ab
.B type
Packit Service 3880ab
.IR ETYPE " ] ["
Packit Service 3880ab
.B vrf
Packit Service 3880ab
.IR NAME " ]"
Packit Service 3880ab
Packit Service 3880ab
.ti -8
Packit Service 3880ab
.B ip link xstats
Packit Service 3880ab
.BI type " TYPE"
Packit Service 3880ab
.RI "[ " ARGS " ]"
Packit Service 3880ab
Packit Service 3880ab
.ti -8
Packit Service 3880ab
.B ip link afstats
Packit Service 3880ab
.RB "[ " dev
Packit Service 3880ab
.IR DEVICE " ]"
Packit Service 3880ab
Packit Service 3880ab
.ti -8
Packit Service 3880ab
.B ip link help
Packit Service 3880ab
.RI "[ " TYPE " ]"
Packit Service 3880ab
Packit Service 3880ab
.ti -8
Packit Service 3880ab
.IR TYPE " := [ "
Packit Service 3880ab
.BR bridge " | "
Packit Service 3880ab
.BR bond " | "
Packit Service 3880ab
.BR can " | "
Packit Service 3880ab
.BR dummy " | "
Packit Service 3880ab
.BR hsr " | "
Packit Service 3880ab
.BR ifb " | "
Packit Service 3880ab
.BR ipoib " |"
Packit Service 3880ab
.BR macvlan  " | "
Packit Service 3880ab
.BR macvtap  " | "
Packit Service 3880ab
.BR vcan " | "
Packit Service 3880ab
.BR vxcan " | "
Packit Service 3880ab
.BR veth " | "
Packit Service 3880ab
.BR vlan " | "
Packit Service 3880ab
.BR vxlan " |"
Packit Service 3880ab
.BR ip6tnl " |"
Packit Service 3880ab
.BR ipip " |"
Packit Service 3880ab
.BR sit " |"
Packit Service 3880ab
.BR gre " |"
Packit Service 3880ab
.BR gretap " |"
Packit Service 3880ab
.BR erspan " |"
Packit Service 3880ab
.BR ip6gre " |"
Packit Service 3880ab
.BR ip6gretap " |"
Packit Service 3880ab
.BR ip6erspan " |"
Packit Service 3880ab
.BR vti " |"
Packit Service 3880ab
.BR nlmon " |"
Packit Service 3880ab
.BR ipvlan " |"
Packit Service 3880ab
.BR ipvtap " |"
Packit Service 3880ab
.BR lowpan " |"
Packit Service 3880ab
.BR geneve " |"
Packit Service 3880ab
.BR bareudp " |"
Packit Service 3880ab
.BR vrf " |"
Packit Service 3880ab
.BR macsec " |"
Packit Service 3880ab
.BR netdevsim " |"
Packit Service 3880ab
.BR rmnet " |"
Packit Service 3880ab
.BR xfrm " ]"
Packit Service 3880ab
Packit Service 3880ab
.ti -8
Packit Service 3880ab
.IR ETYPE " := [ " TYPE " |"
Packit Service 3880ab
.BR bridge_slave " | " bond_slave " ]"
Packit Service 3880ab
Packit Service 3880ab
.ti -8
Packit Service 3880ab
.IR VFVLAN-LIST " := [ "  VFVLAN-LIST " ] " VFVLAN
Packit Service 3880ab
Packit Service 3880ab
.ti -8
Packit Service 3880ab
.IR VFVLAN " := "
Packit Service 3880ab
.RB "[ " vlan
Packit Service 3880ab
.IR VLANID " [ "
Packit Service 3880ab
.B qos
Packit Service 3880ab
.IR VLAN-QOS " ] ["
Packit Service 3880ab
.B proto
Packit Service 3880ab
.IR VLAN-PROTO " ] ]"
Packit Service 3880ab
.in -8
Packit Service 3880ab
Packit Service 3880ab
.ti -8
Packit Service 3880ab
.BI "ip link property add"
Packit Service 3880ab
.RB "[ " altname
Packit Service 3880ab
.IR NAME " .. ]"
Packit Service 3880ab
Packit Service 3880ab
.ti -8
Packit Service 3880ab
.BI "ip link property del"
Packit Service 3880ab
.RB "[ " altname
Packit Service 3880ab
.IR NAME " .. ]"
Packit Service 3880ab
Packit Service 3880ab
.SH "DESCRIPTION"
Packit Service 3880ab
.SS ip link add - add virtual link
Packit Service 3880ab
Packit Service 3880ab
.TP
Packit Service 3880ab
.BI link " DEVICE "
Packit Service 3880ab
specifies the physical device to act operate on.
Packit Service 3880ab
Packit Service 3880ab
.I NAME
Packit Service 3880ab
specifies the name of the new virtual device.
Packit Service 3880ab
Packit Service 3880ab
.I TYPE
Packit Service 3880ab
specifies the type of the new device.
Packit Service 3880ab
.sp
Packit Service 3880ab
Link types:
Packit Service 3880ab
Packit Service 3880ab
.in +8
Packit Service 3880ab
.B bridge
Packit Service 3880ab
- Ethernet Bridge device
Packit Service 3880ab
.sp
Packit Service 3880ab
.B bond
Packit Service 3880ab
- Bonding device
Packit Service 3880ab
.sp
Packit Service 3880ab
.B dummy
Packit Service 3880ab
- Dummy network interface
Packit Service 3880ab
.sp
Packit Service 3880ab
.B hsr
Packit Service 3880ab
- High-availability Seamless Redundancy device
Packit Service 3880ab
.sp
Packit Service 3880ab
.B ifb
Packit Service 3880ab
- Intermediate Functional Block device
Packit Service 3880ab
.sp
Packit Service 3880ab
.B ipoib
Packit Service 3880ab
- IP over Infiniband device
Packit Service 3880ab
.sp
Packit Service 3880ab
.B macvlan
Packit Service 3880ab
- Virtual interface base on link layer address (MAC)
Packit Service 3880ab
.sp
Packit Service 3880ab
.B macvtap
Packit Service 3880ab
- Virtual interface based on link layer address (MAC) and TAP.
Packit Service 3880ab
.sp
Packit Service 3880ab
.B vcan
Packit Service 3880ab
- Virtual Controller Area Network interface
Packit Service 3880ab
.sp
Packit Service 3880ab
.B vxcan
Packit Service 3880ab
- Virtual Controller Area Network tunnel interface
Packit Service 3880ab
.sp
Packit Service 3880ab
.B veth
Packit Service 3880ab
- Virtual ethernet interface
Packit Service 3880ab
.sp
Packit Service 3880ab
.BR vlan
Packit Service 3880ab
- 802.1q tagged virtual LAN interface
Packit Service 3880ab
.sp
Packit Service 3880ab
.BR vxlan
Packit Service 3880ab
- Virtual eXtended LAN
Packit Service 3880ab
.sp
Packit Service 3880ab
.BR ip6tnl
Packit Service 3880ab
- Virtual tunnel interface IPv4|IPv6 over IPv6
Packit Service 3880ab
.sp
Packit Service 3880ab
.BR ipip
Packit Service 3880ab
- Virtual tunnel interface IPv4 over IPv4
Packit Service 3880ab
.sp
Packit Service 3880ab
.BR sit
Packit Service 3880ab
- Virtual tunnel interface IPv6 over IPv4
Packit Service 3880ab
.sp
Packit Service 3880ab
.BR gre
Packit Service 3880ab
- Virtual tunnel interface GRE over IPv4
Packit Service 3880ab
.sp
Packit Service 3880ab
.BR gretap
Packit Service 3880ab
- Virtual L2 tunnel interface GRE over IPv4
Packit Service 3880ab
.sp
Packit Service 3880ab
.BR erspan
Packit Service 3880ab
- Encapsulated Remote SPAN over GRE and IPv4
Packit Service 3880ab
.sp
Packit Service 3880ab
.BR ip6gre
Packit Service 3880ab
- Virtual tunnel interface GRE over IPv6
Packit Service 3880ab
.sp
Packit Service 3880ab
.BR ip6gretap
Packit Service 3880ab
- Virtual L2 tunnel interface GRE over IPv6
Packit Service 3880ab
.sp
Packit Service 3880ab
.BR ip6erspan
Packit Service 3880ab
- Encapsulated Remote SPAN over GRE and IPv6
Packit Service 3880ab
.sp
Packit Service 3880ab
.BR vti
Packit Service 3880ab
- Virtual tunnel interface
Packit Service 3880ab
.sp
Packit Service 3880ab
.BR nlmon
Packit Service 3880ab
- Netlink monitoring device
Packit Service 3880ab
.sp
Packit Service 3880ab
.BR ipvlan
Packit Service 3880ab
- Interface for L3 (IPv6/IPv4) based VLANs
Packit Service 3880ab
.sp
Packit Service 3880ab
.BR ipvtap
Packit Service 3880ab
- Interface for L3 (IPv6/IPv4) based VLANs and TAP
Packit Service 3880ab
.sp
Packit Service 3880ab
.BR lowpan
Packit Service 3880ab
- Interface for 6LoWPAN (IPv6) over IEEE 802.15.4 / Bluetooth
Packit Service 3880ab
.sp
Packit Service 3880ab
.BR geneve
Packit Service 3880ab
- GEneric NEtwork Virtualization Encapsulation
Packit Service 3880ab
.sp
Packit Service 3880ab
.BR bareudp
Packit Service 3880ab
- Bare UDP L3 encapsulation support
Packit Service 3880ab
.sp
Packit Service 3880ab
.BR macsec
Packit Service 3880ab
- Interface for IEEE 802.1AE MAC Security (MACsec)
Packit Service 3880ab
.sp
Packit Service 3880ab
.BR vrf
Packit Service 3880ab
- Interface for L3 VRF domains
Packit Service 3880ab
.sp
Packit Service 3880ab
.BR netdevsim
Packit Service 3880ab
- Interface for netdev API tests
Packit Service 3880ab
.sp
Packit Service 3880ab
.BR rmnet
Packit Service 3880ab
- Qualcomm rmnet device
Packit Service 3880ab
.sp
Packit Service 3880ab
.BR xfrm
Packit Service 3880ab
- Virtual xfrm interface
Packit Service 3880ab
.in -8
Packit Service 3880ab
Packit Service 3880ab
.TP
Packit Service 3880ab
.BI numtxqueues " QUEUE_COUNT "
Packit Service 3880ab
specifies the number of transmit queues for new device.
Packit Service 3880ab
Packit Service 3880ab
.TP
Packit Service 3880ab
.BI numrxqueues " QUEUE_COUNT "
Packit Service 3880ab
specifies the number of receive queues for new device.
Packit Service 3880ab
Packit Service 3880ab
.TP
Packit Service 3880ab
.BI gso_max_size " BYTES "
Packit Service 3880ab
specifies the recommended maximum size of a Generic Segment Offload
Packit Service 3880ab
packet the new device should accept.
Packit Service 3880ab
Packit Service 3880ab
.TP
Packit Service 3880ab
.BI gso_max_segs " SEGMENTS "
Packit Service 3880ab
specifies the recommended maximum number of a Generic Segment Offload
Packit Service 3880ab
segments the new device should accept.
Packit Service 3880ab
Packit Service 3880ab
.TP
Packit Service 3880ab
.BI index " IDX "
Packit Service 3880ab
specifies the desired index of the new virtual device. The link
Packit Service 3880ab
creation fails, if the index is busy.
Packit Service 3880ab
Packit Service 3880ab
.TP
Packit Service 3880ab
VLAN Type Support
Packit Service 3880ab
For a link of type
Packit Service 3880ab
.I VLAN
Packit Service 3880ab
the following additional arguments are supported:
Packit Service 3880ab
Packit Service 3880ab
.BI "ip link add
Packit Service 3880ab
.BI link " DEVICE "
Packit Service 3880ab
.BI name " NAME "
Packit Service 3880ab
.B "type vlan"
Packit Service 3880ab
[
Packit Service 3880ab
.BI protocol " VLAN_PROTO "
Packit Service 3880ab
]
Packit Service 3880ab
.BI id " VLANID "
Packit Service 3880ab
[
Packit Service 3880ab
.BR reorder_hdr " { " on " | " off " } "
Packit Service 3880ab
]
Packit Service 3880ab
[
Packit Service 3880ab
.BR gvrp " { " on " | " off " } "
Packit Service 3880ab
]
Packit Service 3880ab
[
Packit Service 3880ab
.BR mvrp " { " on " | " off " } "
Packit Service 3880ab
]
Packit Service 3880ab
[
Packit Service 3880ab
.BR loose_binding " { " on " | " off " } "
Packit Service 3880ab
]
Packit Service 3880ab
[
Packit Service 3880ab
.BR bridge_binding " { " on " | " off " } "
Packit Service 3880ab
]
Packit Service 3880ab
[
Packit Service 3880ab
.BI ingress-qos-map " QOS-MAP "
Packit Service 3880ab
]
Packit Service 3880ab
[
Packit Service 3880ab
.BI egress-qos-map " QOS-MAP "
Packit Service 3880ab
]
Packit Service 3880ab
Packit Service 3880ab
.in +8
Packit Service 3880ab
.sp
Packit Service 3880ab
.BI protocol " VLAN_PROTO "
Packit Service 3880ab
- either 802.1Q or 802.1ad.
Packit Service 3880ab
Packit Service 3880ab
.BI id " VLANID "
Packit Service 3880ab
- specifies the VLAN Identifer to use. Note that numbers with a leading " 0 " or " 0x " are interpreted as octal or hexadeimal, respectively.
Packit Service 3880ab
Packit Service 3880ab
.BR reorder_hdr " { " on " | " off " } "
Packit Service 3880ab
- specifies whether ethernet headers are reordered or not (default is
Packit Service 3880ab
.BR on ")."
Packit Service 3880ab
Packit Service 3880ab
.in +4
Packit Service 3880ab
If
Packit Service 3880ab
.BR reorder_hdr " is " on
Packit Service 3880ab
then VLAN header will be not inserted immediately but only before
Packit Service 3880ab
passing to the physical device (if this device does not support VLAN
Packit Service 3880ab
offloading), the similar on the RX direction - by default the packet
Packit Service 3880ab
will be untagged before being received by VLAN device. Reordering
Packit Service 3880ab
allows to accelerate tagging on egress and to hide VLAN header on
Packit Service 3880ab
ingress so the packet looks like regular Ethernet packet, at the same
Packit Service 3880ab
time it might be confusing for packet capture as the VLAN header does
Packit Service 3880ab
not exist within the packet.
Packit Service 3880ab
Packit Service 3880ab
VLAN offloading can be checked by
Packit Service 3880ab
.BR ethtool "(8):"
Packit Service 3880ab
.in +4
Packit Service 3880ab
.sp
Packit Service 3880ab
.B ethtool -k
Packit Service 3880ab
<phy_dev> |
Packit Service 3880ab
.RB grep " tx-vlan-offload"
Packit Service 3880ab
.sp
Packit Service 3880ab
.in -4
Packit Service 3880ab
where <phy_dev> is the physical device to which VLAN device is bound.
Packit Service 3880ab
.in -4
Packit Service 3880ab
Packit Service 3880ab
.BR gvrp " { " on " | " off " } "
Packit Service 3880ab
- specifies whether this VLAN should be registered using GARP VLAN
Packit Service 3880ab
  Registration Protocol.
Packit Service 3880ab
Packit Service 3880ab
.BR mvrp " { " on " | " off " } "
Packit Service 3880ab
- specifies whether this VLAN should be registered using Multiple VLAN
Packit Service 3880ab
  Registration Protocol.
Packit Service 3880ab
Packit Service 3880ab
.BR loose_binding " { " on " | " off " } "
Packit Service 3880ab
- specifies whether the VLAN device state is bound to the physical device state.
Packit Service 3880ab
Packit Service 3880ab
.BR bridge_binding " { " on " | " off " } "
Packit Service 3880ab
- specifies whether the VLAN device link state tracks the state of bridge ports
Packit Service 3880ab
that are members of the VLAN.
Packit Service 3880ab
Packit Service 3880ab
.BI ingress-qos-map " QOS-MAP "
Packit Service 3880ab
- defines a mapping of VLAN header prio field to the Linux internal packet
Packit Service 3880ab
priority on incoming frames. The format is FROM:TO with multiple mappings
Packit Service 3880ab
separated by spaces.
Packit Service 3880ab
Packit Service 3880ab
.BI egress-qos-map " QOS-MAP "
Packit Service 3880ab
- defines a mapping of Linux internal packet priority to VLAN header prio field
Packit Service 3880ab
but for outgoing frames. The format is the same as for ingress-qos-map.
Packit Service 3880ab
.in +4
Packit Service 3880ab
Packit Service 3880ab
Linux packet priority can be set by
Packit Service 3880ab
.BR iptables "(8)":
Packit Service 3880ab
.in +4
Packit Service 3880ab
.sp
Packit Service 3880ab
.B iptables
Packit Service 3880ab
-t mangle -A POSTROUTING [...] -j CLASSIFY --set-class 0:4
Packit Service 3880ab
.sp
Packit Service 3880ab
.in -4
Packit Service 3880ab
and this "4" priority can be used in the egress qos mapping to set
Packit Service 3880ab
VLAN prio "5":
Packit Service 3880ab
.sp
Packit Service 3880ab
.in +4
Packit Service 3880ab
.B ip
Packit Service 3880ab
link set veth0.10 type vlan egress 4:5
Packit Service 3880ab
.in -4
Packit Service 3880ab
.in -4
Packit Service 3880ab
.in -8
Packit Service 3880ab
Packit Service 3880ab
.TP
Packit Service 3880ab
VXLAN Type Support
Packit Service 3880ab
For a link of type
Packit Service 3880ab
.I VXLAN
Packit Service 3880ab
the following additional arguments are supported:
Packit Service 3880ab
Packit Service 3880ab
.BI "ip link add " DEVICE
Packit Service 3880ab
.BI type " vxlan " id " VNI"
Packit Service 3880ab
[
Packit Service 3880ab
.BI dev " PHYS_DEV "
Packit Service 3880ab
.RB " ] [ { " group " | " remote " } "
Packit Service 3880ab
.I IPADDR
Packit Service 3880ab
] [
Packit Service 3880ab
.B local
Packit Service 3880ab
.RI "{ "IPADDR " | "any " } "
Packit Service 3880ab
] [
Packit Service 3880ab
.BI ttl " TTL "
Packit Service 3880ab
] [
Packit Service 3880ab
.BI tos " TOS "
Packit Service 3880ab
] [
Packit Service 3880ab
.BI df " DF "
Packit Service 3880ab
] [
Packit Service 3880ab
.BI flowlabel " FLOWLABEL "
Packit Service 3880ab
] [
Packit Service 3880ab
.BI dstport " PORT "
Packit Service 3880ab
] [
Packit Service 3880ab
.BI srcport " MIN MAX "
Packit Service 3880ab
] [
Packit Service 3880ab
.RB [ no ] learning
Packit Service 3880ab
] [
Packit Service 3880ab
.RB [ no ] proxy
Packit Service 3880ab
] [
Packit Service 3880ab
.RB [ no ] rsc
Packit Service 3880ab
] [
Packit Service 3880ab
.RB [ no ] l2miss
Packit Service 3880ab
] [
Packit Service 3880ab
.RB [ no ] l3miss
Packit Service 3880ab
] [
Packit Service 3880ab
.RB [ no ] udpcsum
Packit Service 3880ab
] [
Packit Service 3880ab
.RB [ no ] udp6zerocsumtx
Packit Service 3880ab
] [
Packit Service 3880ab
.RB [ no ] udp6zerocsumrx
Packit Service 3880ab
] [
Packit Service 3880ab
.BI ageing " SECONDS "
Packit Service 3880ab
] [
Packit Service 3880ab
.BI maxaddress " NUMBER "
Packit Service 3880ab
] [
Packit Service 3880ab
.RB [ no ] external
Packit Service 3880ab
] [
Packit Service 3880ab
.B gbp
Packit Service 3880ab
] [
Packit Service 3880ab
.B gpe
Packit Service 3880ab
]
Packit Service 3880ab
Packit Service 3880ab
.in +8
Packit Service 3880ab
.sp
Packit Service 3880ab
.BI  id " VNI "
Packit Service 3880ab
- specifies the VXLAN Network Identifer (or VXLAN Segment
Packit Service 3880ab
Identifier) to use.
Packit Service 3880ab
Packit Service 3880ab
.BI dev " PHYS_DEV"
Packit Service 3880ab
- specifies the physical device to use for tunnel endpoint communication.
Packit Service 3880ab
Packit Service 3880ab
.sp
Packit Service 3880ab
.BI group " IPADDR"
Packit Service 3880ab
- specifies the multicast IP address to join.
Packit Service 3880ab
This parameter cannot be specified with the
Packit Service 3880ab
.B remote
Packit Service 3880ab
parameter.
Packit Service 3880ab
Packit Service 3880ab
.sp
Packit Service 3880ab
.BI remote " IPADDR"
Packit Service 3880ab
- specifies the unicast destination IP address to use in outgoing packets
Packit Service 3880ab
when the destination link layer address is not known in the VXLAN device
Packit Service 3880ab
forwarding database. This parameter cannot be specified with the
Packit Service 3880ab
.B group
Packit Service 3880ab
parameter.
Packit Service 3880ab
Packit Service 3880ab
.sp
Packit Service 3880ab
.BI local " IPADDR"
Packit Service 3880ab
- specifies the source IP address to use in outgoing packets.
Packit Service 3880ab
Packit Service 3880ab
.sp
Packit Service 3880ab
.BI ttl " TTL"
Packit Service 3880ab
- specifies the TTL value to use in outgoing packets.
Packit Service 3880ab
Packit Service 3880ab
.sp
Packit Service 3880ab
.BI tos " TOS"
Packit Service 3880ab
- specifies the TOS value to use in outgoing packets.
Packit Service 3880ab
Packit Service 3880ab
.sp
Packit Service 3880ab
.BI df " DF"
Packit Service 3880ab
- specifies the usage of the Don't Fragment flag (DF) bit in outgoing packets
Packit Service 3880ab
with IPv4 headers. The value
Packit Service 3880ab
.B inherit
Packit Service 3880ab
causes the bit to be copied from the original IP header. The values
Packit Service 3880ab
.B unset
Packit Service 3880ab
and
Packit Service 3880ab
.B set
Packit Service 3880ab
cause the bit to be always unset or always set, respectively. By default, the
Packit Service 3880ab
bit is not set.
Packit Service 3880ab
Packit Service 3880ab
.sp
Packit Service 3880ab
.BI flowlabel " FLOWLABEL"
Packit Service 3880ab
- specifies the flow label to use in outgoing packets.
Packit Service 3880ab
Packit Service 3880ab
.sp
Packit Service 3880ab
.BI dstport " PORT"
Packit Service 3880ab
- specifies the UDP destination port to communicate to the remote
Packit Service 3880ab
  VXLAN tunnel endpoint.
Packit Service 3880ab
Packit Service 3880ab
.sp
Packit Service 3880ab
.BI srcport " MIN MAX"
Packit Service 3880ab
- specifies the range of port numbers to use as UDP
Packit Service 3880ab
source ports to communicate to the remote VXLAN tunnel endpoint.
Packit Service 3880ab
Packit Service 3880ab
.sp
Packit Service 3880ab
.RB [ no ] learning
Packit Service 3880ab
- specifies if unknown source link layer addresses and IP addresses
Packit Service 3880ab
are entered into the VXLAN device forwarding database.
Packit Service 3880ab
Packit Service 3880ab
.sp
Packit Service 3880ab
.RB [ no ] rsc
Packit Service 3880ab
- specifies if route short circuit is turned on.
Packit Service 3880ab
Packit Service 3880ab
.sp
Packit Service 3880ab
.RB [ no ] proxy
Packit Service 3880ab
- specifies ARP proxy is turned on.
Packit Service 3880ab
Packit Service 3880ab
.sp
Packit Service 3880ab
.RB [ no ] l2miss
Packit Service 3880ab
- specifies if netlink LLADDR miss notifications are generated.
Packit Service 3880ab
Packit Service 3880ab
.sp
Packit Service 3880ab
.RB [ no ] l3miss
Packit Service 3880ab
- specifies if netlink IP ADDR miss notifications are generated.
Packit Service 3880ab
Packit Service 3880ab
.sp
Packit Service 3880ab
.RB [ no ] udpcsum
Packit Service 3880ab
- specifies if UDP checksum is calculated for transmitted packets over IPv4.
Packit Service 3880ab
Packit Service 3880ab
.sp
Packit Service 3880ab
.RB [ no ] udp6zerocsumtx
Packit Service 3880ab
- skip UDP checksum calculation for transmitted packets over IPv6.
Packit Service 3880ab
Packit Service 3880ab
.sp
Packit Service 3880ab
.RB [ no ] udp6zerocsumrx
Packit Service 3880ab
- allow incoming UDP packets over IPv6 with zero checksum field.
Packit Service 3880ab
Packit Service 3880ab
.sp
Packit Service 3880ab
.BI ageing " SECONDS"
Packit Service 3880ab
- specifies the lifetime in seconds of FDB entries learnt by the kernel.
Packit Service 3880ab
Packit Service 3880ab
.sp
Packit Service 3880ab
.BI maxaddress " NUMBER"
Packit Service 3880ab
- specifies the maximum number of FDB entries.
Packit Service 3880ab
Packit Service 3880ab
.sp
Packit Service 3880ab
.RB [ no ] external
Packit Service 3880ab
- specifies whether an external control plane
Packit Service 3880ab
.RB "(e.g. " "ip route encap" )
Packit Service 3880ab
or the internal FDB should be used.
Packit Service 3880ab
Packit Service 3880ab
.sp
Packit Service 3880ab
.B gbp
Packit Service 3880ab
- enables the Group Policy extension (VXLAN-GBP).
Packit Service 3880ab
Packit Service 3880ab
.in +4
Packit Service 3880ab
Allows to transport group policy context across VXLAN network peers.
Packit Service 3880ab
If enabled, includes the mark of a packet in the VXLAN header for outgoing
Packit Service 3880ab
packets and fills the packet mark based on the information found in the
Packit Service 3880ab
VXLAN header for incoming packets.
Packit Service 3880ab
Packit Service 3880ab
Format of upper 16 bits of packet mark (flags);
Packit Service 3880ab
Packit Service 3880ab
.in +2
Packit Service 3880ab
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Packit Service 3880ab
.br
Packit Service 3880ab
|-|-|-|-|-|-|-|-|-|D|-|-|A|-|-|-|
Packit Service 3880ab
.br
Packit Service 3880ab
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Packit Service 3880ab
Packit Service 3880ab
.B D :=
Packit Service 3880ab
Don't Learn bit. When set, this bit indicates that the egress
Packit Service 3880ab
VTEP MUST NOT learn the source address of the encapsulated frame.
Packit Service 3880ab
Packit Service 3880ab
.B A :=
Packit Service 3880ab
Indicates that the group policy has already been applied to
Packit Service 3880ab
this packet. Policies MUST NOT be applied by devices when the A bit is set.
Packit Service 3880ab
.in -2
Packit Service 3880ab
Packit Service 3880ab
Format of lower 16 bits of packet mark (policy ID):
Packit Service 3880ab
Packit Service 3880ab
.in +2
Packit Service 3880ab
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Packit Service 3880ab
.br
Packit Service 3880ab
|        Group Policy ID        |
Packit Service 3880ab
.br
Packit Service 3880ab
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Packit Service 3880ab
.in -2
Packit Service 3880ab
Packit Service 3880ab
Example:
Packit Service 3880ab
  iptables -A OUTPUT [...] -j MARK --set-mark 0x800FF
Packit Service 3880ab
Packit Service 3880ab
.in -4
Packit Service 3880ab
Packit Service 3880ab
.sp
Packit Service 3880ab
.B gpe
Packit Service 3880ab
- enables the Generic Protocol extension (VXLAN-GPE). Currently, this is
Packit Service 3880ab
only supported together with the
Packit Service 3880ab
.B external
Packit Service 3880ab
keyword.
Packit Service 3880ab
Packit Service 3880ab
.in -8
Packit Service 3880ab
Packit Service 3880ab
.TP
Packit Service 3880ab
VETH, VXCAN Type Support
Packit Service 3880ab
For a link of types
Packit Service 3880ab
.I VETH/VXCAN
Packit Service 3880ab
the following additional arguments are supported:
Packit Service 3880ab
Packit Service 3880ab
.BI "ip link add " DEVICE
Packit Service 3880ab
.BR type " { " veth " | " vxcan " }"
Packit Service 3880ab
[
Packit Service 3880ab
.BR peer
Packit Service 3880ab
.BI "name " NAME
Packit Service 3880ab
]
Packit Service 3880ab
Packit Service 3880ab
.in +8
Packit Service 3880ab
.sp
Packit Service 3880ab
.BR peer
Packit Service 3880ab
.BI "name " NAME
Packit Service 3880ab
- specifies the virtual pair device name of the
Packit Service 3880ab
.I VETH/VXCAN
Packit Service 3880ab
tunnel.
Packit Service 3880ab
Packit Service 3880ab
.in -8
Packit Service 3880ab
Packit Service 3880ab
.TP
Packit Service 3880ab
IPIP, SIT Type Support
Packit Service 3880ab
For a link of type
Packit Service 3880ab
.IR IPIP or SIT
Packit Service 3880ab
the following additional arguments are supported:
Packit Service 3880ab
Packit Service 3880ab
.BI "ip link add " DEVICE
Packit Service 3880ab
.BR type " { " ipip " | " sit " }"
Packit Service 3880ab
.BI " remote " ADDR " local " ADDR
Packit Service 3880ab
[
Packit Service 3880ab
.BR encap " { " fou " | " gue " | " none " }"
Packit Service 3880ab
] [
Packit Service 3880ab
.BR encap-sport " { " \fIPORT " | " auto " }"
Packit Service 3880ab
] [
Packit Service 3880ab
.BI "encap-dport " PORT
Packit Service 3880ab
] [
Packit Service 3880ab
.RB [ no ] encap-csum
Packit Service 3880ab
] [
Packit Service 3880ab
.I " [no]encap-remcsum "
Packit Service 3880ab
] [
Packit Service 3880ab
.I " mode " { ip6ip | ipip | mplsip | any } "
Packit Service 3880ab
] [
Packit Service 3880ab
.BR external
Packit Service 3880ab
]
Packit Service 3880ab
Packit Service 3880ab
.in +8
Packit Service 3880ab
.sp
Packit Service 3880ab
.BI  remote " ADDR "
Packit Service 3880ab
- specifies the remote address of the tunnel.
Packit Service 3880ab
Packit Service 3880ab
.sp
Packit Service 3880ab
.BI  local " ADDR "
Packit Service 3880ab
- specifies the fixed local address for tunneled packets.
Packit Service 3880ab
It must be an address on another interface on this host.
Packit Service 3880ab
Packit Service 3880ab
.sp
Packit Service 3880ab
.BR encap " { " fou " | " gue " | " none " }"
Packit Service 3880ab
- specifies type of secondary UDP encapsulation. "fou" indicates
Packit Service 3880ab
Foo-Over-UDP, "gue" indicates Generic UDP Encapsulation.
Packit Service 3880ab
Packit Service 3880ab
.sp
Packit Service 3880ab
.BR encap-sport " { " \fIPORT " | " auto " }"
Packit Service 3880ab
- specifies the source port in UDP encapsulation.
Packit Service 3880ab
.IR PORT
Packit Service 3880ab
indicates the port by number, "auto"
Packit Service 3880ab
indicates that the port number should be chosen automatically
Packit Service 3880ab
(the kernel picks a flow based on the flow hash of the
Packit Service 3880ab
encapsulated packet).
Packit Service 3880ab
Packit Service 3880ab
.sp
Packit Service 3880ab
.RB [ no ] encap-csum
Packit Service 3880ab
- specifies if UDP checksums are enabled in the secondary
Packit Service 3880ab
encapsulation.
Packit Service 3880ab
Packit Service 3880ab
.sp
Packit Service 3880ab
.RB [ no ] encap-remcsum
Packit Service 3880ab
- specifies if Remote Checksum Offload is enabled. This is only
Packit Service 3880ab
applicable for Generic UDP Encapsulation.
Packit Service 3880ab
Packit Service 3880ab
.sp
Packit Service 3880ab
.BI mode " { ip6ip | ipip | mplsip | any } "
Packit Service 3880ab
- specifies mode in which device should run. "ip6ip" indicates
Packit Service 3880ab
IPv6-Over-IPv4, "ipip" indicates "IPv4-Over-IPv4", "mplsip" indicates
Packit Service 3880ab
MPLS-Over-IPv4, "any" indicates IPv6, IPv4 or MPLS Over IPv4. Supported for
Packit Service 3880ab
SIT where the default is "ip6ip" and IPIP where the default is "ipip".
Packit Service 3880ab
IPv6-Over-IPv4 is not supported for IPIP.
Packit Service 3880ab
Packit Service 3880ab
.sp
Packit Service 3880ab
.BR external
Packit Service 3880ab
- make this tunnel externally controlled
Packit Service 3880ab
.RB "(e.g. " "ip route encap" ).
Packit Service 3880ab
Packit Service 3880ab
.in -8
Packit Service 3880ab
.TP
Packit Service 3880ab
GRE Type Support
Packit Service 3880ab
For a link of type
Packit Service 3880ab
.IR GRE " or " GRETAP
Packit Service 3880ab
the following additional arguments are supported:
Packit Service 3880ab
Packit Service 3880ab
.BI "ip link add " DEVICE
Packit Service 3880ab
.BR type " { " gre " | " gretap " }"
Packit Service 3880ab
.BI " remote " ADDR " local " ADDR
Packit Service 3880ab
[
Packit Service 3880ab
.RB [ no ] "" [ i | o ] seq
Packit Service 3880ab
] [
Packit Service 3880ab
.RB [ i | o ] key
Packit Service 3880ab
.I KEY
Packit Service 3880ab
|
Packit Service 3880ab
.BR no [ i | o ] key
Packit Service 3880ab
] [
Packit Service 3880ab
.RB [ no ] "" [ i | o ] csum
Packit Service 3880ab
] [
Packit Service 3880ab
.BI ttl " TTL "
Packit Service 3880ab
] [
Packit Service 3880ab
.BI tos " TOS "
Packit Service 3880ab
] [
Packit Service 3880ab
.RB [ no ] pmtudisc
Packit Service 3880ab
] [
Packit Service 3880ab
.RB [ no ] ignore-df
Packit Service 3880ab
] [
Packit Service 3880ab
.BI dev " PHYS_DEV "
Packit Service 3880ab
] [
Packit Service 3880ab
.BR encap " { " fou " | " gue " | " none " }"
Packit Service 3880ab
] [
Packit Service 3880ab
.BR encap-sport " { " \fIPORT " | " auto " }"
Packit Service 3880ab
] [
Packit Service 3880ab
.BI "encap-dport " PORT
Packit Service 3880ab
] [
Packit Service 3880ab
.RB [ no ] encap-csum
Packit Service 3880ab
] [
Packit Service 3880ab
.RB [ no ] encap-remcsum
Packit Service 3880ab
] [
Packit Service 3880ab
.BR external
Packit Service 3880ab
]
Packit Service 3880ab
Packit Service 3880ab
.in +8
Packit Service 3880ab
.sp
Packit Service 3880ab
.BI  remote " ADDR "
Packit Service 3880ab
- specifies the remote address of the tunnel.
Packit Service 3880ab
Packit Service 3880ab
.sp
Packit Service 3880ab
.BI  local " ADDR "
Packit Service 3880ab
- specifies the fixed local address for tunneled packets.
Packit Service 3880ab
It must be an address on another interface on this host.
Packit Service 3880ab
Packit Service 3880ab
.sp
Packit Service 3880ab
.RB  [ no ] "" [ i | o ] seq
Packit Service 3880ab
- serialize packets.
Packit Service 3880ab
The
Packit Service 3880ab
.B oseq
Packit Service 3880ab
flag enables sequencing of outgoing packets.
Packit Service 3880ab
The
Packit Service 3880ab
.B iseq
Packit Service 3880ab
flag requires that all input packets are serialized.
Packit Service 3880ab
Packit Service 3880ab
.sp
Packit Service 3880ab
.RB [ i | o ] key
Packit Service 3880ab
.I KEY
Packit Service 3880ab
|
Packit Service 3880ab
.BR no [ i | o ] key
Packit Service 3880ab
- use keyed GRE with key
Packit Service 3880ab
.IR KEY ". "KEY
Packit Service 3880ab
is either a number or an IPv4 address-like dotted quad.
Packit Service 3880ab
The
Packit Service 3880ab
.B key
Packit Service 3880ab
parameter specifies the same key to use in both directions.
Packit Service 3880ab
The
Packit Service 3880ab
.BR ikey " and " okey
Packit Service 3880ab
parameters specify different keys for input and output.
Packit Service 3880ab
Packit Service 3880ab
.sp
Packit Service 3880ab
.RB  [ no ] "" [ i | o ] csum
Packit Service 3880ab
- generate/require checksums for tunneled packets.
Packit Service 3880ab
The
Packit Service 3880ab
.B ocsum
Packit Service 3880ab
flag calculates checksums for outgoing packets.
Packit Service 3880ab
The
Packit Service 3880ab
.B icsum
Packit Service 3880ab
flag requires that all input packets have the correct
Packit Service 3880ab
checksum. The
Packit Service 3880ab
.B csum
Packit Service 3880ab
flag is equivalent to the combination
Packit Service 3880ab
.B "icsum ocsum" .
Packit Service 3880ab
Packit Service 3880ab
.sp
Packit Service 3880ab
.BI ttl " TTL"
Packit Service 3880ab
- specifies the TTL value to use in outgoing packets.
Packit Service 3880ab
Packit Service 3880ab
.sp
Packit Service 3880ab
.BI tos " TOS"
Packit Service 3880ab
- specifies the TOS value to use in outgoing packets.
Packit Service 3880ab
Packit Service 3880ab
.sp
Packit Service 3880ab
.RB [ no ] pmtudisc
Packit Service 3880ab
- enables/disables Path MTU Discovery on this tunnel.
Packit Service 3880ab
It is enabled by default. Note that a fixed ttl is incompatible
Packit Service 3880ab
with this option: tunneling with a fixed ttl always makes pmtu
Packit Service 3880ab
discovery.
Packit Service 3880ab
Packit Service 3880ab
.sp
Packit Service 3880ab
.RB [ no ] ignore-df
Packit Service 3880ab
- enables/disables IPv4 DF suppression on this tunnel.
Packit Service 3880ab
Normally datagrams that exceed the MTU will be fragmented; the presence
Packit Service 3880ab
of the DF flag inhibits this, resulting instead in an ICMP Unreachable
Packit Service 3880ab
(Fragmentation Required) message.  Enabling this attribute causes the
Packit Service 3880ab
DF flag to be ignored.
Packit Service 3880ab
Packit Service 3880ab
.sp
Packit Service 3880ab
.BI dev " PHYS_DEV"
Packit Service 3880ab
- specifies the physical device to use for tunnel endpoint communication.
Packit Service 3880ab
Packit Service 3880ab
.sp
Packit Service 3880ab
.BR encap " { " fou " | " gue " | " none " }"
Packit Service 3880ab
- specifies type of secondary UDP encapsulation. "fou" indicates
Packit Service 3880ab
Foo-Over-UDP, "gue" indicates Generic UDP Encapsulation.
Packit Service 3880ab
Packit Service 3880ab
.sp
Packit Service 3880ab
.BR encap-sport " { " \fIPORT " | " auto " }"
Packit Service 3880ab
- specifies the source port in UDP encapsulation.
Packit Service 3880ab
.IR PORT
Packit Service 3880ab
indicates the port by number, "auto"
Packit Service 3880ab
indicates that the port number should be chosen automatically
Packit Service 3880ab
(the kernel picks a flow based on the flow hash of the
Packit Service 3880ab
encapsulated packet).
Packit Service 3880ab
Packit Service 3880ab
.sp
Packit Service 3880ab
.RB [ no ] encap-csum
Packit Service 3880ab
- specifies if UDP checksums are enabled in the secondary
Packit Service 3880ab
encapsulation.
Packit Service 3880ab
Packit Service 3880ab
.sp
Packit Service 3880ab
.RB [ no ] encap-remcsum
Packit Service 3880ab
- specifies if Remote Checksum Offload is enabled. This is only
Packit Service 3880ab
applicable for Generic UDP Encapsulation.
Packit Service 3880ab
Packit Service 3880ab
.sp
Packit Service 3880ab
.BR external
Packit Service 3880ab
- make this tunnel externally controlled
Packit Service 3880ab
.RB "(e.g. " "ip route encap" ).
Packit Service 3880ab
Packit Service 3880ab
.in -8
Packit Service 3880ab
Packit Service 3880ab
.TP
Packit Service 3880ab
IP6GRE/IP6GRETAP Type Support
Packit Service 3880ab
For a link of type
Packit Service 3880ab
.I IP6GRE/IP6GRETAP
Packit Service 3880ab
the following additional arguments are supported:
Packit Service 3880ab
Packit Service 3880ab
.BI "ip link add " DEVICE
Packit Service 3880ab
.BR type " { " ip6gre " | " ip6gretap " }"
Packit Service 3880ab
.BI remote " ADDR " local " ADDR"
Packit Service 3880ab
[
Packit Service 3880ab
.RB [ no ] "" [ i | o ] seq
Packit Service 3880ab
] [
Packit Service 3880ab
.RB [ i | o ] key
Packit Service 3880ab
.I KEY
Packit Service 3880ab
|
Packit Service 3880ab
.BR no [ i | o ] key
Packit Service 3880ab
] [
Packit Service 3880ab
.RB [ no ] "" [ i | o ] csum
Packit Service 3880ab
] [
Packit Service 3880ab
.BI hoplimit " TTL "
Packit Service 3880ab
] [
Packit Service 3880ab
.BI encaplimit " ELIM "
Packit Service 3880ab
] [
Packit Service 3880ab
.BI tclass " TCLASS "
Packit Service 3880ab
] [
Packit Service 3880ab
.BI flowlabel " FLOWLABEL "
Packit Service 3880ab
] [
Packit Service 3880ab
.BI "dscp inherit"
Packit Service 3880ab
] [
Packit Service 3880ab
.BI "[no]allow-localremote"
Packit Service 3880ab
] [
Packit Service 3880ab
.BI dev " PHYS_DEV "
Packit Service 3880ab
] [
Packit Service 3880ab
.RB external
Packit Service 3880ab
]
Packit Service 3880ab
Packit Service 3880ab
.in +8
Packit Service 3880ab
.sp
Packit Service 3880ab
.BI  remote " ADDR "
Packit Service 3880ab
- specifies the remote IPv6 address of the tunnel.
Packit Service 3880ab
Packit Service 3880ab
.sp
Packit Service 3880ab
.BI  local " ADDR "
Packit Service 3880ab
- specifies the fixed local IPv6 address for tunneled packets.
Packit Service 3880ab
It must be an address on another interface on this host.
Packit Service 3880ab
Packit Service 3880ab
.sp
Packit Service 3880ab
.RB  [ no ] "" [ i | o ] seq
Packit Service 3880ab
- serialize packets.
Packit Service 3880ab
The
Packit Service 3880ab
.B oseq
Packit Service 3880ab
flag enables sequencing of outgoing packets.
Packit Service 3880ab
The
Packit Service 3880ab
.B iseq
Packit Service 3880ab
flag requires that all input packets are serialized.
Packit Service 3880ab
Packit Service 3880ab
.sp
Packit Service 3880ab
.RB [ i | o ] key
Packit Service 3880ab
.I KEY
Packit Service 3880ab
|
Packit Service 3880ab
.BR no [ i | o ] key
Packit Service 3880ab
- use keyed GRE with key
Packit Service 3880ab
.IR KEY ". "KEY
Packit Service 3880ab
is either a number or an IPv4 address-like dotted quad.
Packit Service 3880ab
The
Packit Service 3880ab
.B key
Packit Service 3880ab
parameter specifies the same key to use in both directions.
Packit Service 3880ab
The
Packit Service 3880ab
.BR ikey " and " okey
Packit Service 3880ab
parameters specify different keys for input and output.
Packit Service 3880ab
Packit Service 3880ab
.sp
Packit Service 3880ab
.RB  [ no ] "" [ i | o ] csum
Packit Service 3880ab
- generate/require checksums for tunneled packets.
Packit Service 3880ab
The
Packit Service 3880ab
.B ocsum
Packit Service 3880ab
flag calculates checksums for outgoing packets.
Packit Service 3880ab
The
Packit Service 3880ab
.B icsum
Packit Service 3880ab
flag requires that all input packets have the correct
Packit Service 3880ab
checksum. The
Packit Service 3880ab
.B csum
Packit Service 3880ab
flag is equivalent to the combination
Packit Service 3880ab
.BR "icsum ocsum" .
Packit Service 3880ab
Packit Service 3880ab
.sp
Packit Service 3880ab
.BI  hoplimit " TTL"
Packit Service 3880ab
- specifies Hop Limit value to use in outgoing packets.
Packit Service 3880ab
Packit Service 3880ab
.sp
Packit Service 3880ab
.BI  encaplimit " ELIM"
Packit Service 3880ab
- specifies a fixed encapsulation limit. Default is 4.
Packit Service 3880ab
Packit Service 3880ab
.sp
Packit Service 3880ab
.BI  flowlabel " FLOWLABEL"
Packit Service 3880ab
- specifies a fixed flowlabel.
Packit Service 3880ab
Packit Service 3880ab
.sp
Packit Service 3880ab
.BI  [no]allow-localremote
Packit Service 3880ab
- specifies whether to allow remote endpoint to have an address configured on
Packit Service 3880ab
local host.
Packit Service 3880ab
Packit Service 3880ab
.sp
Packit Service 3880ab
.BI  tclass " TCLASS"
Packit Service 3880ab
- specifies the traffic class field on
Packit Service 3880ab
tunneled packets, which can be specified as either a two-digit
Packit Service 3880ab
hex value (e.g. c0) or a predefined string (e.g. internet).
Packit Service 3880ab
The value
Packit Service 3880ab
.B inherit
Packit Service 3880ab
causes the field to be copied from the original IP header. The
Packit Service 3880ab
values
Packit Service 3880ab
.BI "inherit/" STRING
Packit Service 3880ab
or
Packit Service 3880ab
.BI "inherit/" 00 ".." ff
Packit Service 3880ab
will set the field to
Packit Service 3880ab
.I STRING
Packit Service 3880ab
or
Packit Service 3880ab
.IR 00 ".." ff
Packit Service 3880ab
when tunneling non-IP packets. The default value is 00.
Packit Service 3880ab
Packit Service 3880ab
.sp
Packit Service 3880ab
.RB external
Packit Service 3880ab
- make this tunnel externally controlled (or not, which is the default).
Packit Service 3880ab
In the kernel, this is referred to as collect metadata mode.  This flag is
Packit Service 3880ab
mutually exclusive with the
Packit Service 3880ab
.BR remote ,
Packit Service 3880ab
.BR local ,
Packit Service 3880ab
.BR seq ,
Packit Service 3880ab
.BR key,
Packit Service 3880ab
.BR csum,
Packit Service 3880ab
.BR hoplimit,
Packit Service 3880ab
.BR encaplimit,
Packit Service 3880ab
.BR flowlabel " and " tclass
Packit Service 3880ab
options.
Packit Service 3880ab
Packit Service 3880ab
.in -8
Packit Service 3880ab
Packit Service 3880ab
.TP
Packit Service 3880ab
IPoIB Type Support
Packit Service 3880ab
For a link of type
Packit Service 3880ab
.I IPoIB
Packit Service 3880ab
the following additional arguments are supported:
Packit Service 3880ab
Packit Service 3880ab
.BI "ip link add " DEVICE " name " NAME
Packit Service 3880ab
.BR "type ipoib " [ " pkey \fIPKEY" " ] [ " mode " \fIMODE \fR]"
Packit Service 3880ab
Packit Service 3880ab
.in +8
Packit Service 3880ab
.sp
Packit Service 3880ab
.BI  pkey " PKEY "
Packit Service 3880ab
- specifies the IB P-Key to use.
Packit Service 3880ab
Packit Service 3880ab
.BI  mode " MODE "
Packit Service 3880ab
- specifies the mode (datagram or connected) to use.
Packit Service 3880ab
Packit Service 3880ab
.TP
Packit Service 3880ab
ERSPAN Type Support
Packit Service 3880ab
For a link of type
Packit Service 3880ab
.I ERSPAN/IP6ERSPAN
Packit Service 3880ab
the following additional arguments are supported:
Packit Service 3880ab
Packit Service 3880ab
.BI "ip link add " DEVICE
Packit Service 3880ab
.BR type " { " erspan " | " ip6erspan " }"
Packit Service 3880ab
.BI remote " ADDR " local " ADDR " seq
Packit Service 3880ab
.RB key
Packit Service 3880ab
.I KEY
Packit Service 3880ab
.BR erspan_ver " \fIversion "
Packit Service 3880ab
[
Packit Service 3880ab
.BR erspan " \fIIDX "
Packit Service 3880ab
] [
Packit Service 3880ab
.BR erspan_dir " { " \fIingress " | " \fIegress " }"
Packit Service 3880ab
] [
Packit Service 3880ab
.BR erspan_hwid " \fIhwid "
Packit Service 3880ab
] [
Packit Service 3880ab
.BI "[no]allow-localremote"
Packit Service 3880ab
] [
Packit Service 3880ab
.RB external
Packit Service 3880ab
]
Packit Service 3880ab
Packit Service 3880ab
.in +8
Packit Service 3880ab
.sp
Packit Service 3880ab
.BI  remote " ADDR "
Packit Service 3880ab
- specifies the remote address of the tunnel.
Packit Service 3880ab
Packit Service 3880ab
.sp
Packit Service 3880ab
.BI  local " ADDR "
Packit Service 3880ab
- specifies the fixed local address for tunneled packets.
Packit Service 3880ab
It must be an address on another interface on this host.
Packit Service 3880ab
Packit Service 3880ab
.sp
Packit Service 3880ab
.BR erspan_ver " \fIversion "
Packit Service 3880ab
- specifies the ERSPAN version number.
Packit Service 3880ab
.IR version
Packit Service 3880ab
indicates the ERSPAN version to be created: 0 for version 0 type I,
Packit Service 3880ab
1 for version 1 (type II) or 2 for version 2 (type III).
Packit Service 3880ab
Packit Service 3880ab
.sp
Packit Service 3880ab
.BR erspan " \fIIDX "
Packit Service 3880ab
- specifies the ERSPAN v1 index field.
Packit Service 3880ab
.IR IDX
Packit Service 3880ab
indicates a 20 bit index/port number associated with the ERSPAN
Packit Service 3880ab
traffic's source port and direction.
Packit Service 3880ab
Packit Service 3880ab
.sp
Packit Service 3880ab
.BR erspan_dir " { " \fIingress " | " \fIegress " }"
Packit Service 3880ab
- specifies the ERSPAN v2 mirrored traffic's direction.
Packit Service 3880ab
Packit Service 3880ab
.sp
Packit Service 3880ab
.BR erspan_hwid " \fIhwid "
Packit Service 3880ab
- an unique identifier of an ERSPAN v2 engine within a system.
Packit Service 3880ab
.IR hwid
Packit Service 3880ab
is a 6-bit value for users to configure.
Packit Service 3880ab
Packit Service 3880ab
.sp
Packit Service 3880ab
.BI  [no]allow-localremote
Packit Service 3880ab
- specifies whether to allow remote endpoint to have an address configured on
Packit Service 3880ab
local host.
Packit Service 3880ab
Packit Service 3880ab
.sp
Packit Service 3880ab
.BR external
Packit Service 3880ab
- make this tunnel externally controlled (or not, which is the default).
Packit Service 3880ab
In the kernel, this is referred to as collect metadata mode.  This flag is
Packit Service 3880ab
mutually exclusive with the
Packit Service 3880ab
.BR remote ,
Packit Service 3880ab
.BR local ,
Packit Service 3880ab
.BR erspan_ver ,
Packit Service 3880ab
.BR erspan ,
Packit Service 3880ab
.BR erspan_dir " and " erspan_hwid
Packit Service 3880ab
options.
Packit Service 3880ab
Packit Service 3880ab
.in -8
Packit Service 3880ab
Packit Service 3880ab
.TP
Packit Service 3880ab
GENEVE Type Support
Packit Service 3880ab
For a link of type
Packit Service 3880ab
.I GENEVE
Packit Service 3880ab
the following additional arguments are supported:
Packit Service 3880ab
Packit Service 3880ab
.BI "ip link add " DEVICE
Packit Service 3880ab
.BI type " geneve " id " VNI " remote " IPADDR"
Packit Service 3880ab
[
Packit Service 3880ab
.BI ttl " TTL "
Packit Service 3880ab
] [
Packit Service 3880ab
.BI tos " TOS "
Packit Service 3880ab
] [
Packit Service 3880ab
.BI df " DF "
Packit Service 3880ab
] [
Packit Service 3880ab
.BI flowlabel " FLOWLABEL "
Packit Service 3880ab
] [
Packit Service 3880ab
.BI dstport " PORT"
Packit Service 3880ab
] [
Packit Service 3880ab
.RB [ no ] external
Packit Service 3880ab
] [
Packit Service 3880ab
.RB [ no ] udpcsum
Packit Service 3880ab
] [
Packit Service 3880ab
.RB [ no ] udp6zerocsumtx
Packit Service 3880ab
] [
Packit Service 3880ab
.RB [ no ] udp6zerocsumrx
Packit Service 3880ab
]
Packit Service 3880ab
Packit Service 3880ab
.in +8
Packit Service 3880ab
.sp
Packit Service 3880ab
.BI  id " VNI "
Packit Service 3880ab
- specifies the Virtual Network Identifer to use.
Packit Service 3880ab
Packit Service 3880ab
.sp
Packit Service 3880ab
.BI remote " IPADDR"
Packit Service 3880ab
- specifies the unicast destination IP address to use in outgoing packets.
Packit Service 3880ab
Packit Service 3880ab
.sp
Packit Service 3880ab
.BI ttl " TTL"
Packit Service 3880ab
- specifies the TTL value to use in outgoing packets. "0" or "auto" means
Packit Service 3880ab
use whatever default value, "inherit" means inherit the inner protocol's
Packit Service 3880ab
ttl. Default option is "0".
Packit Service 3880ab
Packit Service 3880ab
.sp
Packit Service 3880ab
.BI tos " TOS"
Packit Service 3880ab
- specifies the TOS value to use in outgoing packets.
Packit Service 3880ab
Packit Service 3880ab
.sp
Packit Service 3880ab
.BI df " DF"
Packit Service 3880ab
- specifies the usage of the Don't Fragment flag (DF) bit in outgoing packets
Packit Service 3880ab
with IPv4 headers. The value
Packit Service 3880ab
.B inherit
Packit Service 3880ab
causes the bit to be copied from the original IP header. The values
Packit Service 3880ab
.B unset
Packit Service 3880ab
and
Packit Service 3880ab
.B set
Packit Service 3880ab
cause the bit to be always unset or always set, respectively. By default, the
Packit Service 3880ab
bit is not set.
Packit Service 3880ab
Packit Service 3880ab
.sp
Packit Service 3880ab
.BI flowlabel " FLOWLABEL"
Packit Service 3880ab
- specifies the flow label to use in outgoing packets.
Packit Service 3880ab
Packit Service 3880ab
.sp
Packit Service 3880ab
.BI dstport " PORT"
Packit Service 3880ab
- select a destination port other than the default of 6081.
Packit Service 3880ab
Packit Service 3880ab
.sp
Packit Service 3880ab
.RB [ no ] external
Packit Service 3880ab
- make this tunnel externally controlled (or not, which is the default). This
Packit Service 3880ab
flag is mutually exclusive with the
Packit Service 3880ab
.BR id ,
Packit Service 3880ab
.BR remote ,
Packit Service 3880ab
.BR ttl ,
Packit Service 3880ab
.BR tos " and " flowlabel
Packit Service 3880ab
options.
Packit Service 3880ab
Packit Service 3880ab
.sp
Packit Service 3880ab
.RB [ no ] udpcsum
Packit Service 3880ab
- specifies if UDP checksum is calculated for transmitted packets over IPv4.
Packit Service 3880ab
Packit Service 3880ab
.sp
Packit Service 3880ab
.RB [ no ] udp6zerocsumtx
Packit Service 3880ab
- skip UDP checksum calculation for transmitted packets over IPv6.
Packit Service 3880ab
Packit Service 3880ab
.sp
Packit Service 3880ab
.RB [ no ] udp6zerocsumrx
Packit Service 3880ab
- allow incoming UDP packets over IPv6 with zero checksum field.
Packit Service 3880ab
Packit Service 3880ab
.in -8
Packit Service 3880ab
Packit Service 3880ab
.TP
Packit Service 3880ab
Bareudp Type Support
Packit Service 3880ab
For a link of type
Packit Service 3880ab
.I Bareudp
Packit Service 3880ab
the following additional arguments are supported:
Packit Service 3880ab
Packit Service 3880ab
.BI "ip link add " DEVICE
Packit Service 3880ab
.BI type " bareudp " dstport " PORT " ethertype " ETHERTYPE"
Packit Service 3880ab
[
Packit Service 3880ab
.BI srcportmin " SRCPORTMIN "
Packit Service 3880ab
] [
Packit Service 3880ab
.RB [ no ] multiproto
Packit Service 3880ab
]
Packit Service 3880ab
Packit Service 3880ab
.in +8
Packit Service 3880ab
.sp
Packit Service 3880ab
.BI dstport " PORT"
Packit Service 3880ab
- specifies the destination port for the UDP tunnel.
Packit Service 3880ab
Packit Service 3880ab
.sp
Packit Service 3880ab
.BI ethertype " ETHERTYPE"
Packit Service 3880ab
- specifies the ethertype of the L3 protocol being tunnelled.
Packit Service 3880ab
Packit Service 3880ab
.sp
Packit Service 3880ab
.BI srcportmin " SRCPORTMIN"
Packit Service 3880ab
- selects the lowest value of the UDP tunnel source port range.
Packit Service 3880ab
Packit Service 3880ab
.sp
Packit Service 3880ab
.RB [ no ] multiproto
Packit Service 3880ab
- activates support for protocols similar to the one
Packit Service 3880ab
.RB "specified by " ethertype .
Packit Service 3880ab
When
Packit Service 3880ab
.I ETHERTYPE
Packit Service 3880ab
is "mpls_uc" (that is, unicast MPLS), this allows the tunnel to also handle
Packit Service 3880ab
multicast MPLS.
Packit Service 3880ab
When
Packit Service 3880ab
.I ETHERTYPE
Packit Service 3880ab
is "ipv4", this allows the tunnel to also handle IPv6. This option is disabled
Packit Service 3880ab
by default.
Packit Service 3880ab
Packit Service 3880ab
.TP
Packit Service 3880ab
MACVLAN and MACVTAP Type Support
Packit Service 3880ab
For a link of type
Packit Service 3880ab
.I MACVLAN
Packit Service 3880ab
or
Packit Service 3880ab
.I MACVTAP
Packit Service 3880ab
the following additional arguments are supported:
Packit Service 3880ab
Packit Service 3880ab
.BI "ip link add link " DEVICE " name " NAME
Packit Service 3880ab
.BR type " { " macvlan " | " macvtap " } "
Packit Service 3880ab
.BR mode " { " private " | " vepa " | " bridge " | " passthru
Packit Service 3880ab
.RB " [ " nopromisc " ] | " source " } "
Packit Service 3880ab
Packit Service 3880ab
.in +8
Packit Service 3880ab
.sp
Packit Service 3880ab
.BR type " { " macvlan " | " macvtap " } "
Packit Service 3880ab
- specifies the link type to use.
Packit Service 3880ab
.BR macvlan " creates just a virtual interface, while "
Packit Service 3880ab
.BR macvtap " in addition creates a character device "
Packit Service 3880ab
.BR /dev/tapX " to be used just like a " tuntap " device."
Packit Service 3880ab
Packit Service 3880ab
.B mode private
Packit Service 3880ab
- Do not allow communication between
Packit Service 3880ab
.B macvlan
Packit Service 3880ab
instances on the same physical interface, even if the external switch supports
Packit Service 3880ab
hairpin mode.
Packit Service 3880ab
Packit Service 3880ab
.B mode vepa
Packit Service 3880ab
- Virtual Ethernet Port Aggregator mode. Data from one
Packit Service 3880ab
.B macvlan
Packit Service 3880ab
instance to the other on the same physical interface is transmitted over the
Packit Service 3880ab
physical interface. Either the attached switch needs to support hairpin mode,
Packit Service 3880ab
or there must be a TCP/IP router forwarding the packets in order to allow
Packit Service 3880ab
communication. This is the default mode.
Packit Service 3880ab
Packit Service 3880ab
.B mode bridge
Packit Service 3880ab
- In bridge mode, all endpoints are directly connected to each other,
Packit Service 3880ab
communication is not redirected through the physical interface's peer.
Packit Service 3880ab
Packit Service 3880ab
.BR mode " " passthru " [ " nopromisc " ] "
Packit Service 3880ab
- This mode gives more power to a single endpoint, usually in
Packit Service 3880ab
.BR macvtap " mode. It is not allowed for more than one endpoint on the same "
Packit Service 3880ab
physical interface. All traffic will be forwarded to this endpoint, allowing
Packit Service 3880ab
virtio guests to change MAC address or set promiscuous mode in order to bridge
Packit Service 3880ab
the interface or create vlan interfaces on top of it. By default, this mode
Packit Service 3880ab
forces the underlying interface into promiscuous mode. Passing the
Packit Service 3880ab
.BR nopromisc " flag prevents this, so the promisc flag may be controlled "
Packit Service 3880ab
using standard tools.
Packit Service 3880ab
Packit Service 3880ab
.B mode source
Packit Service 3880ab
- allows one to set a list of allowed mac address, which is used to match
Packit Service 3880ab
against source mac address from received frames on underlying interface. This
Packit Service 3880ab
allows creating mac based VLAN associations, instead of standard port or tag
Packit Service 3880ab
based. The feature is useful to deploy 802.1x mac based behavior,
Packit Service 3880ab
where drivers of underlying interfaces doesn't allows that.
Packit Service 3880ab
.in -8
Packit Service 3880ab
Packit Service 3880ab
.TP
Packit Service 3880ab
High-availability Seamless Redundancy (HSR) Support
Packit Service 3880ab
For a link of type
Packit Service 3880ab
.I HSR
Packit Service 3880ab
the following additional arguments are supported:
Packit Service 3880ab
Packit Service 3880ab
.BI "ip link add link " DEVICE " name " NAME " type hsr"
Packit Service 3880ab
.BI slave1 " SLAVE1-IF " slave2 " SLAVE2-IF "
Packit Service 3880ab
.RB [ " supervision"
Packit Service 3880ab
.IR ADDR-BYTE " ] ["
Packit Service 3880ab
.BR version " { " 0 " | " 1 " } ["
Packit Service 3880ab
.BR proto " { " 0 " | " 1 " } ]"
Packit Service 3880ab
Packit Service 3880ab
.in +8
Packit Service 3880ab
.sp
Packit Service 3880ab
.BR type " hsr "
Packit Service 3880ab
- specifies the link type to use, here HSR.
Packit Service 3880ab
Packit Service 3880ab
.BI slave1 " SLAVE1-IF "
Packit Service 3880ab
- Specifies the physical device used for the first of the two ring ports.
Packit Service 3880ab
Packit Service 3880ab
.BI slave2 " SLAVE2-IF "
Packit Service 3880ab
- Specifies the physical device used for the second of the two ring ports.
Packit Service 3880ab
Packit Service 3880ab
.BI supervision " ADDR-BYTE"
Packit Service 3880ab
- The last byte of the multicast address used for HSR supervision frames.
Packit Service 3880ab
Default option is "0", possible values 0-255.
Packit Service 3880ab
Packit Service 3880ab
.BR version " { " 0 " | " 1 " }"
Packit Service 3880ab
- Selects the protocol version of the interface. Default option is "0", which
Packit Service 3880ab
corresponds to the 2010 version of the HSR standard. Option "1" activates the
Packit Service 3880ab
2012 version.
Packit Service 3880ab
Packit Service 3880ab
.BR proto " { " 0 " | " 1 " }"
Packit Service 3880ab
- Selects the protocol at the interface. Default option is "0", which
Packit Service 3880ab
corresponds to the HSR standard. Option "1" activates the Parallel
Packit Service 3880ab
Redundancy Protocol (PRP).
Packit Service 3880ab
.
Packit Service 3880ab
.in -8
Packit Service 3880ab
Packit Service 3880ab
.TP
Packit Service 3880ab
BRIDGE Type Support
Packit Service 3880ab
For a link of type
Packit Service 3880ab
.I BRIDGE
Packit Service 3880ab
the following additional arguments are supported:
Packit Service 3880ab
Packit Service 3880ab
.BI "ip link add " DEVICE " type bridge "
Packit Service 3880ab
[
Packit Service 3880ab
.BI ageing_time " AGEING_TIME "
Packit Service 3880ab
] [
Packit Service 3880ab
.BI group_fwd_mask " MASK "
Packit Service 3880ab
] [
Packit Service 3880ab
.BI group_address " ADDRESS "
Packit Service 3880ab
] [
Packit Service 3880ab
.BI forward_delay " FORWARD_DELAY "
Packit Service 3880ab
] [
Packit Service 3880ab
.BI hello_time " HELLO_TIME "
Packit Service 3880ab
] [
Packit Service 3880ab
.BI max_age " MAX_AGE "
Packit Service 3880ab
] [
Packit Service 3880ab
.BI stp_state " STP_STATE "
Packit Service 3880ab
] [
Packit Service 3880ab
.BI priority " PRIORITY "
Packit Service 3880ab
] [
Packit Service 3880ab
.BI vlan_filtering " VLAN_FILTERING "
Packit Service 3880ab
] [
Packit Service 3880ab
.BI vlan_protocol " VLAN_PROTOCOL "
Packit Service 3880ab
] [
Packit Service 3880ab
.BI vlan_default_pvid " VLAN_DEFAULT_PVID "
Packit Service 3880ab
] [
Packit Service 3880ab
.BI vlan_stats_enabled " VLAN_STATS_ENABLED "
Packit Service 3880ab
] [
Packit Service 3880ab
.BI vlan_stats_per_port " VLAN_STATS_PER_PORT "
Packit Service 3880ab
] [
Packit Service 3880ab
.BI mcast_snooping " MULTICAST_SNOOPING "
Packit Service 3880ab
] [
Packit Service 3880ab
.BI mcast_router " MULTICAST_ROUTER "
Packit Service 3880ab
] [
Packit Service 3880ab
.BI mcast_query_use_ifaddr " MCAST_QUERY_USE_IFADDR "
Packit Service 3880ab
] [
Packit Service 3880ab
.BI mcast_querier " MULTICAST_QUERIER "
Packit Service 3880ab
] [
Packit Service 3880ab
.BI mcast_hash_elasticity " HASH_ELASTICITY "
Packit Service 3880ab
] [
Packit Service 3880ab
.BI mcast_hash_max " HASH_MAX "
Packit Service 3880ab
] [
Packit Service 3880ab
.BI mcast_last_member_count " LAST_MEMBER_COUNT "
Packit Service 3880ab
] [
Packit Service 3880ab
.BI mcast_startup_query_count " STARTUP_QUERY_COUNT "
Packit Service 3880ab
] [
Packit Service 3880ab
.BI mcast_last_member_interval " LAST_MEMBER_INTERVAL "
Packit Service 3880ab
] [
Packit Service 3880ab
.BI mcast_membership_interval " MEMBERSHIP_INTERVAL "
Packit Service 3880ab
] [
Packit Service 3880ab
.BI mcast_querier_interval " QUERIER_INTERVAL "
Packit Service 3880ab
] [
Packit Service 3880ab
.BI mcast_query_interval " QUERY_INTERVAL "
Packit Service 3880ab
] [
Packit Service 3880ab
.BI mcast_query_response_interval " QUERY_RESPONSE_INTERVAL "
Packit Service 3880ab
] [
Packit Service 3880ab
.BI mcast_startup_query_interval " STARTUP_QUERY_INTERVAL "
Packit Service 3880ab
] [
Packit Service 3880ab
.BI mcast_stats_enabled " MCAST_STATS_ENABLED "
Packit Service 3880ab
] [
Packit Service 3880ab
.BI mcast_igmp_version " IGMP_VERSION "
Packit Service 3880ab
] [
Packit Service 3880ab
.BI mcast_mld_version " MLD_VERSION "
Packit Service 3880ab
] [
Packit Service 3880ab
.BI nf_call_iptables " NF_CALL_IPTABLES "
Packit Service 3880ab
] [
Packit Service 3880ab
.BI nf_call_ip6tables " NF_CALL_IP6TABLES "
Packit Service 3880ab
] [
Packit Service 3880ab
.BI nf_call_arptables " NF_CALL_ARPTABLES "
Packit Service 3880ab
]
Packit Service 3880ab
Packit Service 3880ab
.in +8
Packit Service 3880ab
.sp
Packit Service 3880ab
.BI ageing_time " AGEING_TIME "
Packit Service 3880ab
- configure the bridge's FDB entries ageing time, ie the number of
Packit Service 3880ab
seconds a MAC address will be kept in the FDB after a packet has been
Packit Service 3880ab
received from that address. after this time has passed, entries are
Packit Service 3880ab
cleaned up.
Packit Service 3880ab
Packit Service 3880ab
.BI group_fwd_mask " MASK "
Packit Service 3880ab
- set the group forward mask. This is the bitmask that is applied to
Packit Service 3880ab
decide whether to forward incoming frames destined to link-local
Packit Service 3880ab
addresses, ie addresses of the form 01:80:C2:00:00:0X (defaults to 0,
Packit Service 3880ab
ie the bridge does not forward any link-local frames).
Packit Service 3880ab
Packit Service 3880ab
.BI group_address " ADDRESS "
Packit Service 3880ab
- set the MAC address of the multicast group this bridge uses for STP.
Packit Service 3880ab
The address must be a link-local address in standard Ethernet MAC
Packit Service 3880ab
address format, ie an address of the form 01:80:C2:00:00:0X, with X
Packit Service 3880ab
 in [0, 4..f].
Packit Service 3880ab
Packit Service 3880ab
.BI forward_delay " FORWARD_DELAY "
Packit Service 3880ab
- set the forwarding delay in seconds, ie the time spent in LISTENING
Packit Service 3880ab
state (before moving to LEARNING) and in LEARNING state (before
Packit Service 3880ab
moving to FORWARDING). Only relevant if STP is enabled. Valid values
Packit Service 3880ab
are between 2 and 30.
Packit Service 3880ab
Packit Service 3880ab
.BI hello_time " HELLO_TIME "
Packit Service 3880ab
- set the time in seconds between hello packets sent by the bridge,
Packit Service 3880ab
when it is a root bridge or a designated bridges.
Packit Service 3880ab
Only relevant if STP is enabled. Valid values are between 1 and 10.
Packit Service 3880ab
Packit Service 3880ab
.BI max_age " MAX_AGE "
Packit Service 3880ab
- set the hello packet timeout, ie the time in seconds until another
Packit Service 3880ab
bridge in the spanning tree is assumed to be dead, after reception of
Packit Service 3880ab
its last hello message. Only relevant if STP is enabled. Valid values
Packit Service 3880ab
are between 6 and 40.
Packit Service 3880ab
Packit Service 3880ab
.BI stp_state " STP_STATE "
Packit Service 3880ab
- turn spanning tree protocol on
Packit Service 3880ab
.RI ( STP_STATE " > 0) "
Packit Service 3880ab
or off
Packit Service 3880ab
.RI ( STP_STATE " == 0). "
Packit Service 3880ab
for this bridge.
Packit Service 3880ab
Packit Service 3880ab
.BI priority " PRIORITY "
Packit Service 3880ab
- set this bridge's spanning tree priority, used during STP root
Packit Service 3880ab
bridge election.
Packit Service 3880ab
.I PRIORITY
Packit Service 3880ab
is a 16bit unsigned integer.
Packit Service 3880ab
Packit Service 3880ab
.BI vlan_filtering " VLAN_FILTERING "
Packit Service 3880ab
- turn VLAN filtering on
Packit Service 3880ab
.RI ( VLAN_FILTERING " > 0) "
Packit Service 3880ab
or off
Packit Service 3880ab
.RI ( VLAN_FILTERING " == 0). "
Packit Service 3880ab
When disabled, the bridge will not consider the VLAN tag when handling packets.
Packit Service 3880ab
Packit Service 3880ab
.BR vlan_protocol " { " 802.1Q " | " 802.1ad " } "
Packit Service 3880ab
- set the protocol used for VLAN filtering.
Packit Service 3880ab
Packit Service 3880ab
.BI vlan_default_pvid " VLAN_DEFAULT_PVID "
Packit Service 3880ab
- set the default PVID (native/untagged VLAN ID) for this bridge.
Packit Service 3880ab
Packit Service 3880ab
.BI vlan_stats_enabled " VLAN_STATS_ENABLED "
Packit Service 3880ab
- enable
Packit Service 3880ab
.RI ( VLAN_STATS_ENABLED " == 1) "
Packit Service 3880ab
or disable
Packit Service 3880ab
.RI ( VLAN_STATS_ENABLED " == 0) "
Packit Service 3880ab
per-VLAN stats accounting.
Packit Service 3880ab
Packit Service 3880ab
.BI vlan_stats_per_port " VLAN_STATS_PER_PORT "
Packit Service 3880ab
- enable
Packit Service 3880ab
.RI ( VLAN_STATS_PER_PORT " == 1) "
Packit Service 3880ab
or disable
Packit Service 3880ab
.RI ( VLAN_STATS_PER_PORT " == 0) "
Packit Service 3880ab
per-VLAN per-port stats accounting. Can be changed only when there are no port VLANs configured.
Packit Service 3880ab
Packit Service 3880ab
.BI mcast_snooping " MULTICAST_SNOOPING "
Packit Service 3880ab
- turn multicast snooping on
Packit Service 3880ab
.RI ( MULTICAST_SNOOPING " > 0) "
Packit Service 3880ab
or off
Packit Service 3880ab
.RI ( MULTICAST_SNOOPING " == 0). "
Packit Service 3880ab
Packit Service 3880ab
.BI mcast_router " MULTICAST_ROUTER "
Packit Service 3880ab
- set bridge's multicast router if IGMP snooping is enabled.
Packit Service 3880ab
.I MULTICAST_ROUTER
Packit Service 3880ab
is an integer value having the following meaning:
Packit Service 3880ab
.in +8
Packit Service 3880ab
.sp
Packit Service 3880ab
.B 0
Packit Service 3880ab
- disabled.
Packit Service 3880ab
Packit Service 3880ab
.B 1
Packit Service 3880ab
- automatic (queried).
Packit Service 3880ab
Packit Service 3880ab
.B 2
Packit Service 3880ab
- permanently enabled.
Packit Service 3880ab
.in -8
Packit Service 3880ab
Packit Service 3880ab
.BI mcast_query_use_ifaddr " MCAST_QUERY_USE_IFADDR "
Packit Service 3880ab
- whether to use the bridge's own IP address as source address for IGMP queries
Packit Service 3880ab
.RI ( MCAST_QUERY_USE_IFADDR " > 0) "
Packit Service 3880ab
or the default of 0.0.0.0
Packit Service 3880ab
.RI ( MCAST_QUERY_USE_IFADDR " == 0). "
Packit Service 3880ab
Packit Service 3880ab
.BI mcast_querier " MULTICAST_QUERIER "
Packit Service 3880ab
- enable
Packit Service 3880ab
.RI ( MULTICAST_QUERIER " > 0) "
Packit Service 3880ab
or disable
Packit Service 3880ab
.RI ( MULTICAST_QUERIER " == 0) "
Packit Service 3880ab
IGMP querier, ie sending of multicast queries by the bridge (default: disabled).
Packit Service 3880ab
Packit Service 3880ab
.BI mcast_querier_interval " QUERIER_INTERVAL "
Packit Service 3880ab
- interval between queries sent by other routers. if no queries are seen
Packit Service 3880ab
after this delay has passed, the bridge will start to send its own queries
Packit Service 3880ab
(as if
Packit Service 3880ab
.BI mcast_querier
Packit Service 3880ab
was enabled).
Packit Service 3880ab
Packit Service 3880ab
.BI mcast_hash_elasticity " HASH_ELASTICITY "
Packit Service 3880ab
- set multicast database hash elasticity, ie the maximum chain length
Packit Service 3880ab
in the multicast hash table (defaults to 4).
Packit Service 3880ab
Packit Service 3880ab
.BI mcast_hash_max " HASH_MAX "
Packit Service 3880ab
- set maximum size of multicast hash table (defaults to 512,
Packit Service 3880ab
value must be a power of 2).
Packit Service 3880ab
Packit Service 3880ab
.BI mcast_last_member_count " LAST_MEMBER_COUNT "
Packit Service 3880ab
- set multicast last member count, ie the number of queries the bridge
Packit Service 3880ab
will send before stopping forwarding a multicast group after a "leave"
Packit Service 3880ab
message has been received (defaults to 2).
Packit Service 3880ab
Packit Service 3880ab
.BI mcast_last_member_interval " LAST_MEMBER_INTERVAL "
Packit Service 3880ab
- interval between queries to find remaining members of a group,
Packit Service 3880ab
after a "leave" message is received.
Packit Service 3880ab
Packit Service 3880ab
.BI mcast_startup_query_count " STARTUP_QUERY_COUNT "
Packit Service 3880ab
- set the number of IGMP queries to send during startup phase (defaults to 2).
Packit Service 3880ab
Packit Service 3880ab
.BI mcast_startup_query_interval " STARTUP_QUERY_INTERVAL "
Packit Service 3880ab
- interval between queries in the startup phase.
Packit Service 3880ab
Packit Service 3880ab
.BI mcast_query_interval " QUERY_INTERVAL "
Packit Service 3880ab
- interval between queries sent by the bridge after the end of the
Packit Service 3880ab
startup phase.
Packit Service 3880ab
Packit Service 3880ab
.BI mcast_query_response_interval " QUERY_RESPONSE_INTERVAL "
Packit Service 3880ab
- set the Max Response Time/Maximum Response Delay for IGMP/MLD
Packit Service 3880ab
queries sent by the bridge.
Packit Service 3880ab
Packit Service 3880ab
.BI mcast_membership_interval " MEMBERSHIP_INTERVAL "
Packit Service 3880ab
- delay after which the bridge will leave a group,
Packit Service 3880ab
if no membership reports for this group are received.
Packit Service 3880ab
Packit Service 3880ab
.BI mcast_stats_enabled " MCAST_STATS_ENABLED "
Packit Service 3880ab
- enable
Packit Service 3880ab
.RI ( MCAST_STATS_ENABLED " > 0) "
Packit Service 3880ab
or disable
Packit Service 3880ab
.RI ( MCAST_STATS_ENABLED " == 0) "
Packit Service 3880ab
multicast (IGMP/MLD) stats accounting.
Packit Service 3880ab
Packit Service 3880ab
.BI mcast_igmp_version " IGMP_VERSION "
Packit Service 3880ab
- set the IGMP version.
Packit Service 3880ab
Packit Service 3880ab
.BI mcast_mld_version " MLD_VERSION "
Packit Service 3880ab
- set the MLD version.
Packit Service 3880ab
Packit Service 3880ab
.BI nf_call_iptables " NF_CALL_IPTABLES "
Packit Service 3880ab
- enable
Packit Service 3880ab
.RI ( NF_CALL_IPTABLES " > 0) "
Packit Service 3880ab
or disable
Packit Service 3880ab
.RI ( NF_CALL_IPTABLES " == 0) "
Packit Service 3880ab
iptables hooks on the bridge.
Packit Service 3880ab
Packit Service 3880ab
.BI nf_call_ip6tables " NF_CALL_IP6TABLES "
Packit Service 3880ab
- enable
Packit Service 3880ab
.RI ( NF_CALL_IP6TABLES " > 0) "
Packit Service 3880ab
or disable
Packit Service 3880ab
.RI ( NF_CALL_IP6TABLES " == 0) "
Packit Service 3880ab
ip6tables hooks on the bridge.
Packit Service 3880ab
Packit Service 3880ab
.BI nf_call_arptables " NF_CALL_ARPTABLES "
Packit Service 3880ab
- enable
Packit Service 3880ab
.RI ( NF_CALL_ARPTABLES " > 0) "
Packit Service 3880ab
or disable
Packit Service 3880ab
.RI ( NF_CALL_ARPTABLES " == 0) "
Packit Service 3880ab
arptables hooks on the bridge.
Packit Service 3880ab
Packit Service 3880ab
Packit Service 3880ab
.in -8
Packit Service 3880ab
Packit Service 3880ab
.TP
Packit Service 3880ab
MACsec Type Support
Packit Service 3880ab
For a link of type
Packit Service 3880ab
.I MACsec
Packit Service 3880ab
the following additional arguments are supported:
Packit Service 3880ab
Packit Service 3880ab
.BI "ip link add link " DEVICE " name " NAME " type macsec"
Packit Service 3880ab
[ [
Packit Service 3880ab
.BI address " <lladdr>"
Packit Service 3880ab
]
Packit Service 3880ab
.BI port " PORT"
Packit Service 3880ab
|
Packit Service 3880ab
.BI sci " SCI"
Packit Service 3880ab
] [
Packit Service 3880ab
.BI cipher " CIPHER_SUITE"
Packit Service 3880ab
] [
Packit Service 3880ab
.BR icvlen " { "
Packit Service 3880ab
.IR 8..16 " } ] ["
Packit Service 3880ab
.BR encrypt " {"
Packit Service 3880ab
.BR on " | " off " } ] [ "
Packit Service 3880ab
.BR send_sci " { " on " | " off " } ] ["
Packit Service 3880ab
.BR end_station " { " on " | " off " } ] ["
Packit Service 3880ab
.BR scb " { " on " | " off " } ] ["
Packit Service 3880ab
.BR protect " { " on " | " off " } ] ["
Packit Service 3880ab
.BR replay " { " on " | " off " }"
Packit Service 3880ab
.BR window " { "
Packit Service 3880ab
.IR 0..2^32-1 " } ] ["
Packit Service 3880ab
.BR validate " { " strict " | " check " | " disabled " } ] ["
Packit Service 3880ab
.BR encodingsa " { "
Packit Service 3880ab
.IR 0..3 " } ]"
Packit Service 3880ab
Packit Service 3880ab
.in +8
Packit Service 3880ab
.sp
Packit Service 3880ab
.BI address " <lladdr> "
Packit Service 3880ab
- sets the system identifier component of secure channel for this MACsec device.
Packit Service 3880ab
Packit Service 3880ab
.sp
Packit Service 3880ab
.BI port " PORT "
Packit Service 3880ab
- sets the port number component of secure channel for this MACsec
Packit Service 3880ab
device, in a range from 1 to 65535 inclusive. Numbers with a leading "
Packit Service 3880ab
0 " or " 0x " are interpreted as octal and hexadecimal, respectively.
Packit Service 3880ab
Packit Service 3880ab
.sp
Packit Service 3880ab
.BI sci " SCI "
Packit Service 3880ab
- sets the secure channel identifier for this MACsec device.
Packit Service 3880ab
.I SCI
Packit Service 3880ab
is a 64bit wide number in hexadecimal format.
Packit Service 3880ab
Packit Service 3880ab
.sp
Packit Service 3880ab
.BI cipher " CIPHER_SUITE "
Packit Service 3880ab
- defines the cipher suite to use.
Packit Service 3880ab
Packit Service 3880ab
.sp
Packit Service 3880ab
.BI icvlen " LENGTH "
Packit Service 3880ab
- sets the length of the Integrity Check Value (ICV).
Packit Service 3880ab
Packit Service 3880ab
.sp
Packit Service 3880ab
.BR "encrypt on " or " encrypt off"
Packit Service 3880ab
- switches between authenticated encryption, or authenticity mode only.
Packit Service 3880ab
Packit Service 3880ab
.sp
Packit Service 3880ab
.BR "send_sci on " or " send_sci off"
Packit Service 3880ab
- specifies whether the SCI is included in every packet,
Packit Service 3880ab
or only when it is necessary.
Packit Service 3880ab
Packit Service 3880ab
.sp
Packit Service 3880ab
.BR "end_station on " or " end_station off"
Packit Service 3880ab
- sets the End Station bit.
Packit Service 3880ab
Packit Service 3880ab
.sp
Packit Service 3880ab
.BR "scb on " or " scb off"
Packit Service 3880ab
- sets the Single Copy Broadcast bit.
Packit Service 3880ab
Packit Service 3880ab
.sp
Packit Service 3880ab
.BR "protect on " or " protect off"
Packit Service 3880ab
- enables MACsec protection on the device.
Packit Service 3880ab
Packit Service 3880ab
.sp
Packit Service 3880ab
.BR "replay on " or " replay off"
Packit Service 3880ab
- enables replay protection on the device.
Packit Service 3880ab
Packit Service 3880ab
.in +8
Packit Service 3880ab
Packit Service 3880ab
.sp
Packit Service 3880ab
.BI window " SIZE "
Packit Service 3880ab
- sets the size of the replay window.
Packit Service 3880ab
Packit Service 3880ab
.in -8
Packit Service 3880ab
Packit Service 3880ab
.sp
Packit Service 3880ab
.BR "validate strict " or " validate check " or " validate disabled"
Packit Service 3880ab
- sets the validation mode on the device.
Packit Service 3880ab
Packit Service 3880ab
.sp
Packit Service 3880ab
.BI encodingsa " AN "
Packit Service 3880ab
- sets the active secure association for transmission.
Packit Service 3880ab
Packit Service 3880ab
.in -8
Packit Service 3880ab
Packit Service 3880ab
.TP
Packit Service 3880ab
VRF Type Support
Packit Service 3880ab
For a link of type
Packit Service 3880ab
.I VRF
Packit Service 3880ab
the following additional arguments are supported:
Packit Service 3880ab
Packit Service 3880ab
.BI "ip link add " DEVICE " type vrf table " TABLE
Packit Service 3880ab
Packit Service 3880ab
.in +8
Packit Service 3880ab
.sp
Packit Service 3880ab
.BR table " table id associated with VRF device"
Packit Service 3880ab
Packit Service 3880ab
.in -8
Packit Service 3880ab
Packit Service 3880ab
.TP
Packit Service 3880ab
RMNET Type Support
Packit Service 3880ab
For a link of type
Packit Service 3880ab
.I RMNET
Packit Service 3880ab
the following additional arguments are supported:
Packit Service 3880ab
Packit Service 3880ab
.BI "ip link add link " DEVICE " name " NAME " type rmnet mux_id " MUXID
Packit Service 3880ab
Packit Service 3880ab
.in +8
Packit Service 3880ab
.sp
Packit Service 3880ab
.BI mux_id " MUXID "
Packit Service 3880ab
- specifies the mux identifier for the rmnet device, possible values 1-254.
Packit Service 3880ab
Packit Service 3880ab
.in -8
Packit Service 3880ab
Packit Service 3880ab
.TP
Packit Service 3880ab
XFRM Type Support
Packit Service 3880ab
For a link of type
Packit Service 3880ab
.I XFRM
Packit Service 3880ab
the following additional arguments are supported:
Packit Service 3880ab
Packit Service 3880ab
.BI "ip link add " DEVICE " type xfrm dev " PHYS_DEV " [ if_id " IF_ID " ]"
Packit Service 3880ab
Packit Service 3880ab
.in +8
Packit Service 3880ab
.sp
Packit Service 3880ab
.BI dev " PHYS_DEV "
Packit Service 3880ab
- specifies the underlying physical interface from which transform traffic is sent and received.
Packit Service 3880ab
Packit Service 3880ab
.sp
Packit Service 3880ab
.BI if_id " IF-ID "
Packit Service 3880ab
- specifies the hexadecimal lookup key used to send traffic to and from specific xfrm
Packit Service 3880ab
policies. Policies must be configured with the same key. If not set, the key defaults to
Packit Service 3880ab
0 and will match any policies which similarly do not have a lookup key configuration.
Packit Service 3880ab
Packit Service 3880ab
.in -8
Packit Service 3880ab
Packit Service 3880ab
.SS ip link delete - delete virtual link
Packit Service 3880ab
Packit Service 3880ab
.TP
Packit Service 3880ab
.BI dev " DEVICE "
Packit Service 3880ab
specifies the virtual device to act operate on.
Packit Service 3880ab
Packit Service 3880ab
.TP
Packit Service 3880ab
.BI group " GROUP "
Packit Service 3880ab
specifies the group of virtual links to delete. Group 0 is not allowed to be
Packit Service 3880ab
deleted since it is the default group.
Packit Service 3880ab
Packit Service 3880ab
.TP
Packit Service 3880ab
.BI type " TYPE "
Packit Service 3880ab
specifies the type of the device.
Packit Service 3880ab
Packit Service 3880ab
.SS ip link set - change device attributes
Packit Service 3880ab
Packit Service 3880ab
.PP
Packit Service 3880ab
.B Warning:
Packit Service 3880ab
If multiple parameter changes are requested,
Packit Service 3880ab
.B ip
Packit Service 3880ab
aborts immediately after any of the changes have failed.
Packit Service 3880ab
This is the only case when
Packit Service 3880ab
.B ip
Packit Service 3880ab
can move the system to an unpredictable state. The solution
Packit Service 3880ab
is to avoid changing several parameters with one
Packit Service 3880ab
.B ip link set
Packit Service 3880ab
call.
Packit Service 3880ab
The modifier
Packit Service 3880ab
.B change
Packit Service 3880ab
is equivalent to
Packit Service 3880ab
.BR "set" .
Packit Service 3880ab
Packit Service 3880ab
Packit Service 3880ab
.TP
Packit Service 3880ab
.BI dev " DEVICE "
Packit Service 3880ab
.I DEVICE
Packit Service 3880ab
specifies network device to operate on. When configuring SR-IOV
Packit Service 3880ab
Virtual Function (VF) devices, this keyword should specify the
Packit Service 3880ab
associated Physical Function (PF) device.
Packit Service 3880ab
Packit Service 3880ab
.TP
Packit Service 3880ab
.BI group " GROUP "
Packit Service 3880ab
.I GROUP
Packit Service 3880ab
has a dual role: If both group and dev are present, then move the device to the
Packit Service 3880ab
specified group. If only a group is specified, then the command operates on
Packit Service 3880ab
all devices in that group.
Packit Service 3880ab
Packit Service 3880ab
.TP
Packit Service 3880ab
.BR up " and " down
Packit Service 3880ab
change the state of the device to
Packit Service 3880ab
.B UP
Packit Service 3880ab
or
Packit Service 3880ab
.BR "DOWN" .
Packit Service 3880ab
Packit Service 3880ab
.TP
Packit Service 3880ab
.BR "arp on " or " arp off"
Packit Service 3880ab
change the
Packit Service 3880ab
.B NOARP
Packit Service 3880ab
flag on the device.
Packit Service 3880ab
Packit Service 3880ab
.TP
Packit Service 3880ab
.BR "multicast on " or " multicast off"
Packit Service 3880ab
change the
Packit Service 3880ab
.B MULTICAST
Packit Service 3880ab
flag on the device.
Packit Service 3880ab
Packit Service 3880ab
.TP
Packit Service 3880ab
.BR "allmulticast on " or " allmulticast off"
Packit Service 3880ab
change the
Packit Service 3880ab
.B ALLMULTI
Packit Service 3880ab
flag on the device. When enabled, instructs network driver to retrieve all
Packit Service 3880ab
multicast packets from the network to the kernel for further processing.
Packit Service 3880ab
Packit Service 3880ab
.TP
Packit Service 3880ab
.BR "promisc on " or " promisc off"
Packit Service 3880ab
change the
Packit Service 3880ab
.B PROMISC
Packit Service 3880ab
flag on the device. When enabled, activates promiscuous operation of the
Packit Service 3880ab
network device.
Packit Service 3880ab
Packit Service 3880ab
.TP
Packit Service 3880ab
.BR "trailers on " or " trailers off"
Packit Service 3880ab
change the
Packit Service 3880ab
.B NOTRAILERS
Packit Service 3880ab
flag on the device,
Packit Service 3880ab
.B NOT
Packit Service 3880ab
used by the Linux and exists for BSD compatibility.
Packit Service 3880ab
Packit Service 3880ab
.TP
Packit Service 3880ab
.BR "protodown on " or " protodown off"
Packit Service 3880ab
change the
Packit Service 3880ab
.B PROTODOWN
Packit Service 3880ab
state on the device. Indicates that a protocol error has been detected
Packit Service 3880ab
on the port. Switch drivers can react to this error by doing a phys
Packit Service 3880ab
down on the switch port.
Packit Service 3880ab
Packit Service 3880ab
.TP
Packit Service 3880ab
.BR "dynamic on " or " dynamic off"
Packit Service 3880ab
change the
Packit Service 3880ab
.B DYNAMIC
Packit Service 3880ab
flag on the device. Indicates that address can change when interface
Packit Service 3880ab
goes down (currently
Packit Service 3880ab
.B NOT
Packit Service 3880ab
used by the Linux).
Packit Service 3880ab
Packit Service 3880ab
.TP
Packit Service 3880ab
.BI name " NAME"
Packit Service 3880ab
change the name of the device. This operation is not
Packit Service 3880ab
recommended if the device is running or has some addresses
Packit Service 3880ab
already configured.
Packit Service 3880ab
Packit Service 3880ab
.TP
Packit Service 3880ab
.BI txqueuelen " NUMBER"
Packit Service 3880ab
.TP
Packit Service 3880ab
.BI txqlen " NUMBER"
Packit Service 3880ab
change the transmit queue length of the device.
Packit Service 3880ab
Packit Service 3880ab
.TP
Packit Service 3880ab
.BI mtu " NUMBER"
Packit Service 3880ab
change the
Packit Service 3880ab
.I MTU
Packit Service 3880ab
of the device.
Packit Service 3880ab
Packit Service 3880ab
.TP
Packit Service 3880ab
.BI address " LLADDRESS"
Packit Service 3880ab
change the station address of the interface.
Packit Service 3880ab
Packit Service 3880ab
.TP
Packit Service 3880ab
.BI broadcast " LLADDRESS"
Packit Service 3880ab
.TP
Packit Service 3880ab
.BI brd " LLADDRESS"
Packit Service 3880ab
.TP
Packit Service 3880ab
.BI peer " LLADDRESS"
Packit Service 3880ab
change the link layer broadcast address or the peer address when
Packit Service 3880ab
the interface is
Packit Service 3880ab
.IR "POINTOPOINT" .
Packit Service 3880ab
Packit Service 3880ab
.TP
Packit Service 3880ab
.BI netns " NETNSNAME " \fR| " PID"
Packit Service 3880ab
move the device to the network namespace associated with name
Packit Service 3880ab
.IR "NETNSNAME " or
Packit Service 3880ab
.RI process " PID".
Packit Service 3880ab
Packit Service 3880ab
Some devices are not allowed to change network namespace: loopback, bridge,
Packit Service 3880ab
wireless. These are network namespace local devices. In such case
Packit Service 3880ab
.B ip
Packit Service 3880ab
tool will return "Invalid argument" error. It is possible to find out
Packit Service 3880ab
if device is local to a single network namespace by checking
Packit Service 3880ab
.B netns-local
Packit Service 3880ab
flag in the output of the
Packit Service 3880ab
.BR ethtool ":"
Packit Service 3880ab
Packit Service 3880ab
.in +8
Packit Service 3880ab
.B ethtool -k
Packit Service 3880ab
.I DEVICE
Packit Service 3880ab
.in -8
Packit Service 3880ab
Packit Service 3880ab
To change network namespace for wireless devices the
Packit Service 3880ab
.B iw
Packit Service 3880ab
tool can be used. But it allows to change network namespace only for
Packit Service 3880ab
physical devices and by process
Packit Service 3880ab
.IR PID .
Packit Service 3880ab
Packit Service 3880ab
.TP
Packit Service 3880ab
.BI alias " NAME"
Packit Service 3880ab
give the device a symbolic name for easy reference.
Packit Service 3880ab
Packit Service 3880ab
.TP
Packit Service 3880ab
.BI group " GROUP"
Packit Service 3880ab
specify the group the device belongs to.
Packit Service 3880ab
The available groups are listed in file
Packit Service 3880ab
.BR "@SYSCONFDIR@/group" .
Packit Service 3880ab
Packit Service 3880ab
.TP
Packit Service 3880ab
.BI vf " NUM"
Packit Service 3880ab
specify a Virtual Function device to be configured. The associated PF device
Packit Service 3880ab
must be specified using the
Packit Service 3880ab
.B dev
Packit Service 3880ab
parameter.
Packit Service 3880ab
Packit Service 3880ab
.in +8
Packit Service 3880ab
.BI mac " LLADDRESS"
Packit Service 3880ab
- change the station address for the specified VF. The
Packit Service 3880ab
.B vf
Packit Service 3880ab
parameter must be specified.
Packit Service 3880ab
Packit Service 3880ab
.sp
Packit Service 3880ab
.BI vlan " VLANID"
Packit Service 3880ab
- change the assigned VLAN for the specified VF. When specified, all traffic
Packit Service 3880ab
sent from the VF will be tagged with the specified VLAN ID. Incoming traffic
Packit Service 3880ab
will be filtered for the specified VLAN ID, and will have all VLAN tags
Packit Service 3880ab
stripped before being passed to the VF. Setting this parameter to 0 disables
Packit Service 3880ab
VLAN tagging and filtering. The
Packit Service 3880ab
.B vf
Packit Service 3880ab
parameter must be specified.
Packit Service 3880ab
Packit Service 3880ab
.sp
Packit Service 3880ab
.BI qos " VLAN-QOS"
Packit Service 3880ab
- assign VLAN QOS (priority) bits for the VLAN tag. When specified, all VLAN
Packit Service 3880ab
tags transmitted by the VF will include the specified priority bits in the
Packit Service 3880ab
VLAN tag. If not specified, the value is assumed to be 0. Both the
Packit Service 3880ab
.B vf
Packit Service 3880ab
and
Packit Service 3880ab
.B vlan
Packit Service 3880ab
parameters must be specified. Setting both
Packit Service 3880ab
.B vlan
Packit Service 3880ab
and
Packit Service 3880ab
.B qos
Packit Service 3880ab
as 0 disables VLAN tagging and filtering for the VF.
Packit Service 3880ab
Packit Service 3880ab
.sp
Packit Service 3880ab
.BI proto " VLAN-PROTO"
Packit Service 3880ab
- assign VLAN PROTOCOL for the VLAN tag, either 802.1Q or 802.1ad.
Packit Service 3880ab
Setting to 802.1ad, all traffic sent from the VF will be tagged with
Packit Service 3880ab
VLAN S-Tag.  Incoming traffic will have VLAN S-Tags stripped before
Packit Service 3880ab
being passed to the VF.  Setting to 802.1ad also enables an option to
Packit Service 3880ab
concatenate another VLAN tag, so both S-TAG and C-TAG will be
Packit Service 3880ab
inserted/stripped for outgoing/incoming traffic, respectively.  If not
Packit Service 3880ab
specified, the value is assumed to be 802.1Q. Both the
Packit Service 3880ab
.B vf
Packit Service 3880ab
and
Packit Service 3880ab
.B vlan
Packit Service 3880ab
parameters must be specified.
Packit Service 3880ab
Packit Service 3880ab
.sp
Packit Service 3880ab
.BI rate " TXRATE"
Packit Service 3880ab
-- change the allowed transmit bandwidth, in Mbps, for the specified VF.
Packit Service 3880ab
Setting this parameter to 0 disables rate limiting.
Packit Service 3880ab
.B vf
Packit Service 3880ab
parameter must be specified.
Packit Service 3880ab
Please use new API
Packit Service 3880ab
.B "max_tx_rate"
Packit Service 3880ab
option instead.
Packit Service 3880ab
Packit Service 3880ab
.sp
Packit Service 3880ab
.BI max_tx_rate " TXRATE"
Packit Service 3880ab
- change the allowed maximum transmit bandwidth, in Mbps, for the
Packit Service 3880ab
specified VF.  Setting this parameter to 0 disables rate limiting.
Packit Service 3880ab
.B vf
Packit Service 3880ab
parameter must be specified.
Packit Service 3880ab
Packit Service 3880ab
.sp
Packit Service 3880ab
.BI min_tx_rate " TXRATE"
Packit Service 3880ab
- change the allowed minimum transmit bandwidth, in Mbps, for the specified VF.
Packit Service 3880ab
Minimum TXRATE should be always <= Maximum TXRATE.
Packit Service 3880ab
Setting this parameter to 0 disables rate limiting.
Packit Service 3880ab
.B vf
Packit Service 3880ab
parameter must be specified.
Packit Service 3880ab
Packit Service 3880ab
.sp
Packit Service 3880ab
.BI spoofchk " on|off"
Packit Service 3880ab
- turn packet spoof checking on or off for the specified VF.
Packit Service 3880ab
.sp
Packit Service 3880ab
.BI query_rss " on|off"
Packit Service 3880ab
- toggle the ability of querying the RSS configuration of a specific
Packit Service 3880ab
  VF. VF RSS information like RSS hash key may be considered sensitive
Packit Service 3880ab
  on some devices where this information is shared between VF and PF
Packit Service 3880ab
  and thus its querying may be prohibited by default.
Packit Service 3880ab
.sp
Packit Service 3880ab
.BI state " auto|enable|disable"
Packit Service 3880ab
- set the virtual link state as seen by the specified VF. Setting to
Packit Service 3880ab
auto means a reflection of the PF link state, enable lets the VF to
Packit Service 3880ab
communicate with other VFs on this host even if the PF link state is
Packit Service 3880ab
down, disable causes the HW to drop any packets sent by the VF.
Packit Service 3880ab
.sp
Packit Service 3880ab
.BI trust " on|off"
Packit Service 3880ab
- trust the specified VF user. This enables that VF user can set a
Packit Service 3880ab
specific feature which may impact security and/or
Packit Service 3880ab
performance. (e.g. VF multicast promiscuous mode)
Packit Service 3880ab
.sp
Packit Service 3880ab
.BI node_guid " eui64"
Packit Service 3880ab
- configure node GUID for Infiniband VFs.
Packit Service 3880ab
.sp
Packit Service 3880ab
.BI port_guid " eui64"
Packit Service 3880ab
- configure port GUID for Infiniband VFs.
Packit Service 3880ab
.in -8
Packit Service 3880ab
Packit Service 3880ab
.TP
Packit Service 3880ab
.B xdp object "|" pinned "|" off
Packit Service 3880ab
set (or unset) a XDP ("eXpress Data Path") BPF program to run on every
Packit Service 3880ab
packet at driver level.
Packit Service 3880ab
.B ip link
Packit Service 3880ab
output will indicate a
Packit Service 3880ab
.B xdp
Packit Service 3880ab
flag for the networking device. If the driver does not have native XDP
Packit Service 3880ab
support, the kernel will fall back to a slower, driver-independent "generic"
Packit Service 3880ab
XDP variant. The
Packit Service 3880ab
.B ip link
Packit Service 3880ab
output will in that case indicate
Packit Service 3880ab
.B xdpgeneric
Packit Service 3880ab
instead of
Packit Service 3880ab
.B xdp
Packit Service 3880ab
only. If the driver does have native XDP support, but the program is
Packit Service 3880ab
loaded under
Packit Service 3880ab
.B xdpgeneric object "|" pinned
Packit Service 3880ab
then the kernel will use the generic XDP variant instead of the native one.
Packit Service 3880ab
.B xdpdrv
Packit Service 3880ab
has the opposite effect of requestsing that the automatic fallback to the
Packit Service 3880ab
generic XDP variant be disabled and in case driver is not XDP-capable error
Packit Service 3880ab
should be returned.
Packit Service 3880ab
.B xdpdrv
Packit Service 3880ab
also disables hardware offloads.
Packit Service 3880ab
.B xdpoffload
Packit Service 3880ab
in ip link output indicates that the program has been offloaded to hardware
Packit Service 3880ab
and can also be used to request the "offload" mode, much like
Packit Service 3880ab
.B xdpgeneric
Packit Service 3880ab
it forces program to be installed specifically in HW/FW of the apater.
Packit Service 3880ab
Packit Service 3880ab
.B off
Packit Service 3880ab
(or
Packit Service 3880ab
.B none
Packit Service 3880ab
)
Packit Service 3880ab
- Detaches any currently attached XDP/BPF program from the given device.
Packit Service 3880ab
Packit Service 3880ab
.BI object " FILE "
Packit Service 3880ab
- Attaches a XDP/BPF program to the given device. The
Packit Service 3880ab
.I FILE
Packit Service 3880ab
points to a BPF ELF file (f.e. generated by LLVM) that contains the BPF
Packit Service 3880ab
program code, map specifications, etc. If a XDP/BPF program is already
Packit Service 3880ab
attached to the given device, an error will be thrown. If no XDP/BPF
Packit Service 3880ab
program is currently attached, the device supports XDP and the program
Packit Service 3880ab
from the BPF ELF file passes the kernel verifier, then it will be attached
Packit Service 3880ab
to the device. If the option
Packit Service 3880ab
.I -force
Packit Service 3880ab
is passed to
Packit Service 3880ab
.B ip
Packit Service 3880ab
then any prior attached XDP/BPF program will be atomically overridden and
Packit Service 3880ab
no error will be thrown in this case. If no
Packit Service 3880ab
.B section
Packit Service 3880ab
option is passed, then the default section name ("prog") will be assumed,
Packit Service 3880ab
otherwise the provided section name will be used. If no
Packit Service 3880ab
.B verbose
Packit Service 3880ab
option is passed, then a verifier log will only be dumped on load error.
Packit Service 3880ab
See also
Packit Service 3880ab
.B EXAMPLES
Packit Service 3880ab
section for usage examples.
Packit Service 3880ab
Packit Service 3880ab
.BI section " NAME "
Packit Service 3880ab
- Specifies a section name that contains the BPF program code. If no section
Packit Service 3880ab
name is specified, the default one ("prog") will be used. This option is
Packit Service 3880ab
to be passed with the
Packit Service 3880ab
.B object
Packit Service 3880ab
option.
Packit Service 3880ab
Packit Service 3880ab
.BI verbose
Packit Service 3880ab
- Act in verbose mode. For example, even in case of success, this will
Packit Service 3880ab
print the verifier log in case a program was loaded from a BPF ELF file.
Packit Service 3880ab
Packit Service 3880ab
.BI pinned " FILE "
Packit Service 3880ab
- Attaches a XDP/BPF program to the given device. The
Packit Service 3880ab
.I FILE
Packit Service 3880ab
points to an already pinned BPF program in the BPF file system. The option
Packit Service 3880ab
.B section
Packit Service 3880ab
doesn't apply here, but otherwise semantics are the same as with the option
Packit Service 3880ab
.B object
Packit Service 3880ab
described already.
Packit Service 3880ab
Packit Service 3880ab
.TP
Packit Service 3880ab
.BI master " DEVICE"
Packit Service 3880ab
set master device of the device (enslave device).
Packit Service 3880ab
Packit Service 3880ab
.TP
Packit Service 3880ab
.BI nomaster
Packit Service 3880ab
unset master device of the device (release device).
Packit Service 3880ab
Packit Service 3880ab
.TP
Packit Service 3880ab
.BI addrgenmode " eui64|none|stable_secret|random"
Packit Service 3880ab
set the IPv6 address generation mode
Packit Service 3880ab
Packit Service 3880ab
.I eui64
Packit Service 3880ab
- use a Modified EUI-64 format interface identifier
Packit Service 3880ab
Packit Service 3880ab
.I none
Packit Service 3880ab
- disable automatic address generation
Packit Service 3880ab
Packit Service 3880ab
.I stable_secret
Packit Service 3880ab
- generate the interface identifier based on a preset
Packit Service 3880ab
  /proc/sys/net/ipv6/conf/{default,DEVICE}/stable_secret
Packit Service 3880ab
Packit Service 3880ab
.I random
Packit Service 3880ab
- like stable_secret, but auto-generate a new random secret if none is set
Packit Service 3880ab
Packit Service 3880ab
.TP
Packit Service 3880ab
.BR "link-netnsid "
Packit Service 3880ab
set peer netnsid for a cross-netns interface
Packit Service 3880ab
Packit Service 3880ab
.TP
Packit Service 3880ab
.BI type " ETYPE TYPE_ARGS"
Packit Service 3880ab
Change type-specific settings. For a list of supported types and arguments refer
Packit Service 3880ab
to the description of
Packit Service 3880ab
.B "ip link add"
Packit Service 3880ab
above. In addition to that, it is possible to manipulate settings to slave
Packit Service 3880ab
devices:
Packit Service 3880ab
Packit Service 3880ab
.TP
Packit Service 3880ab
Bridge Slave Support
Packit Service 3880ab
For a link with master
Packit Service 3880ab
.B bridge
Packit Service 3880ab
the following additional arguments are supported:
Packit Service 3880ab
Packit Service 3880ab
.B "ip link set type bridge_slave"
Packit Service 3880ab
[
Packit Service 3880ab
.B fdb_flush
Packit Service 3880ab
] [
Packit Service 3880ab
.BI state " STATE"
Packit Service 3880ab
] [
Packit Service 3880ab
.BI priority " PRIO"
Packit Service 3880ab
] [
Packit Service 3880ab
.BI cost " COST"
Packit Service 3880ab
] [
Packit Service 3880ab
.BR guard " { " on " | " off " }"
Packit Service 3880ab
] [
Packit Service 3880ab
.BR hairpin " { " on " | " off " }"
Packit Service 3880ab
] [
Packit Service 3880ab
.BR fastleave " { " on " | " off " }"
Packit Service 3880ab
] [
Packit Service 3880ab
.BR root_block " { " on " | " off " }"
Packit Service 3880ab
] [
Packit Service 3880ab
.BR learning " { " on " | " off " }"
Packit Service 3880ab
] [
Packit Service 3880ab
.BR flood " { " on " | " off " }"
Packit Service 3880ab
] [
Packit Service 3880ab
.BR proxy_arp " { " on " | " off " }"
Packit Service 3880ab
] [
Packit Service 3880ab
.BR proxy_arp_wifi " { " on " | " off " }"
Packit Service 3880ab
] [
Packit Service 3880ab
.BI mcast_router " MULTICAST_ROUTER"
Packit Service 3880ab
] [
Packit Service 3880ab
.BR mcast_fast_leave " { " on " | " off "}"
Packit Service 3880ab
] [
Packit Service 3880ab
.BR mcast_flood " { " on " | " off " }"
Packit Service 3880ab
] [
Packit Service 3880ab
.BR mcast_to_unicast " { " on " | " off " }"
Packit Service 3880ab
] [
Packit Service 3880ab
.BR group_fwd_mask " MASK"
Packit Service 3880ab
] [
Packit Service 3880ab
.BR neigh_suppress " { " on " | " off " }"
Packit Service 3880ab
] [
Packit Service 3880ab
.BR vlan_tunnel " { " on " | " off " }"
Packit Service 3880ab
] [
Packit Service 3880ab
.BR isolated " { " on " | " off " }"
Packit Service 3880ab
] [
Packit Service 3880ab
.BR backup_port " DEVICE"
Packit Service 3880ab
] [
Packit Service 3880ab
.BR nobackup_port " ]"
Packit Service 3880ab
Packit Service 3880ab
.in +8
Packit Service 3880ab
.sp
Packit Service 3880ab
.B fdb_flush
Packit Service 3880ab
- flush bridge slave's fdb dynamic entries.
Packit Service 3880ab
Packit Service 3880ab
.BI state " STATE"
Packit Service 3880ab
- Set port state.
Packit Service 3880ab
.I STATE
Packit Service 3880ab
is a number representing the following states:
Packit Service 3880ab
.BR 0 " (disabled),"
Packit Service 3880ab
.BR 1 " (listening),"
Packit Service 3880ab
.BR 2 " (learning),"
Packit Service 3880ab
.BR 3 " (forwarding),"
Packit Service 3880ab
.BR 4 " (blocking)."
Packit Service 3880ab
Packit Service 3880ab
.BI priority " PRIO"
Packit Service 3880ab
- set port priority (allowed values are between 0 and 63, inclusively).
Packit Service 3880ab
Packit Service 3880ab
.BI cost " COST"
Packit Service 3880ab
- set port cost (allowed values are between 1 and 65535, inclusively).
Packit Service 3880ab
Packit Service 3880ab
.BR guard " { " on " | " off " }"
Packit Service 3880ab
- block incoming BPDU packets on this port.
Packit Service 3880ab
Packit Service 3880ab
.BR hairpin " { " on " | " off " }"
Packit Service 3880ab
- enable hairpin mode on this port. This will allow incoming packets on this
Packit Service 3880ab
port to be reflected back.
Packit Service 3880ab
Packit Service 3880ab
.BR fastleave " { " on " | " off " }"
Packit Service 3880ab
- enable multicast fast leave on this port.
Packit Service 3880ab
Packit Service 3880ab
.BR root_block " { " on " | " off " }"
Packit Service 3880ab
- block this port from becoming the bridge's root port.
Packit Service 3880ab
Packit Service 3880ab
.BR learning " { " on " | " off " }"
Packit Service 3880ab
- allow MAC address learning on this port.
Packit Service 3880ab
Packit Service 3880ab
.BR flood " { " on " | " off " }"
Packit Service 3880ab
- open the flood gates on this port, i.e. forward all unicast frames to this
Packit Service 3880ab
port also. Requires
Packit Service 3880ab
.BR proxy_arp " and " proxy_arp_wifi
Packit Service 3880ab
to be turned off.
Packit Service 3880ab
Packit Service 3880ab
.BR proxy_arp " { " on " | " off " }"
Packit Service 3880ab
- enable proxy ARP on this port.
Packit Service 3880ab
Packit Service 3880ab
.BR proxy_arp_wifi " { " on " | " off " }"
Packit Service 3880ab
- enable proxy ARP on this port which meets extended requirements by IEEE
Packit Service 3880ab
802.11 and Hotspot 2.0 specifications.
Packit Service 3880ab
Packit Service 3880ab
.BI mcast_router " MULTICAST_ROUTER"
Packit Service 3880ab
- configure this port for having multicast routers attached. A port with a
Packit Service 3880ab
multicast router will receive all multicast traffic.
Packit Service 3880ab
.I MULTICAST_ROUTER
Packit Service 3880ab
may be either
Packit Service 3880ab
.B 0
Packit Service 3880ab
to disable multicast routers on this port,
Packit Service 3880ab
.B 1
Packit Service 3880ab
to let the system detect the presence of of routers (this is the default),
Packit Service 3880ab
.B 2
Packit Service 3880ab
to permanently enable multicast traffic forwarding on this port or
Packit Service 3880ab
.B 3
Packit Service 3880ab
to enable multicast routers temporarily on this port, not depending on incoming
Packit Service 3880ab
queries.
Packit Service 3880ab
Packit Service 3880ab
.BR mcast_fast_leave " { " on " | " off " }"
Packit Service 3880ab
- this is a synonym to the
Packit Service 3880ab
.B fastleave
Packit Service 3880ab
option above.
Packit Service 3880ab
Packit Service 3880ab
.BR mcast_flood " { " on " | " off " }"
Packit Service 3880ab
- controls whether a given port will flood multicast traffic for which
Packit Service 3880ab
  there is no MDB entry.
Packit Service 3880ab
Packit Service 3880ab
.BR mcast_to_unicast " { " on " | " off " }"
Packit Service 3880ab
- controls whether a given port will replicate packets using unicast
Packit Service 3880ab
  instead of multicast. By default this flag is off.
Packit Service 3880ab
Packit Service 3880ab
.BI group_fwd_mask " MASK "
Packit Service 3880ab
- set the group forward mask. This is the bitmask that is applied to
Packit Service 3880ab
decide whether to forward incoming frames destined to link-local
Packit Service 3880ab
addresses, ie addresses of the form 01:80:C2:00:00:0X (defaults to
Packit Service 3880ab
0, ie the bridge does not forward any link-local frames coming on
Packit Service 3880ab
this port).
Packit Service 3880ab
Packit Service 3880ab
.BR neigh_suppress " { " on " | " off " }"
Packit Service 3880ab
- controls whether neigh discovery (arp and nd) proxy and suppression
Packit Service 3880ab
is enabled on the port. By default this flag is off.
Packit Service 3880ab
Packit Service 3880ab
.BR vlan_tunnel " { " on " | " off " }"
Packit Service 3880ab
- controls whether vlan to tunnel mapping is enabled on the port. By
Packit Service 3880ab
default this flag is off.
Packit Service 3880ab
Packit Service 3880ab
.BI backup_port " DEVICE"
Packit Service 3880ab
- if the port loses carrier all traffic will be redirected to the
Packit Service 3880ab
configured backup port
Packit Service 3880ab
Packit Service 3880ab
.BR nobackup_port
Packit Service 3880ab
- removes the currently configured backup port
Packit Service 3880ab
Packit Service 3880ab
.in -8
Packit Service 3880ab
Packit Service 3880ab
.TP
Packit Service 3880ab
Bonding Slave Support
Packit Service 3880ab
For a link with master
Packit Service 3880ab
.B bond
Packit Service 3880ab
the following additional arguments are supported:
Packit Service 3880ab
Packit Service 3880ab
.B "ip link set type bond_slave"
Packit Service 3880ab
[
Packit Service 3880ab
.BI queue_id " ID"
Packit Service 3880ab
]
Packit Service 3880ab
Packit Service 3880ab
.in +8
Packit Service 3880ab
.sp
Packit Service 3880ab
.BI queue_id " ID"
Packit Service 3880ab
- set the slave's queue ID (a 16bit unsigned value).
Packit Service 3880ab
Packit Service 3880ab
.in -8
Packit Service 3880ab
Packit Service 3880ab
.TP
Packit Service 3880ab
MACVLAN and MACVTAP Support
Packit Service 3880ab
Modify list of allowed macaddr for link in source mode.
Packit Service 3880ab
Packit Service 3880ab
.B "ip link set type { macvlan | macvap } "
Packit Service 3880ab
[
Packit Service 3880ab
.BI macaddr " " "" COMMAND " " MACADDR " ..."
Packit Service 3880ab
]
Packit Service 3880ab
Packit Service 3880ab
Commands:
Packit Service 3880ab
.in +8
Packit Service 3880ab
.B add
Packit Service 3880ab
- add MACADDR to allowed list
Packit Service 3880ab
.sp
Packit Service 3880ab
.B set
Packit Service 3880ab
- replace allowed list
Packit Service 3880ab
.sp
Packit Service 3880ab
.B del
Packit Service 3880ab
- remove MACADDR from allowed list
Packit Service 3880ab
.sp
Packit Service 3880ab
.B flush
Packit Service 3880ab
- flush whole allowed list
Packit Service 3880ab
.sp
Packit Service 3880ab
.in -8
Packit Service 3880ab
Packit Service 3880ab
Packit Service 3880ab
.SS  ip link show - display device attributes
Packit Service 3880ab
Packit Service 3880ab
.TP
Packit Service 3880ab
.BI dev " NAME " (default)
Packit Service 3880ab
.I NAME
Packit Service 3880ab
specifies the network device to show.
Packit Service 3880ab
Packit Service 3880ab
.TP
Packit Service 3880ab
.BI group " GROUP "
Packit Service 3880ab
.I GROUP
Packit Service 3880ab
specifies what group of devices to show.
Packit Service 3880ab
Packit Service 3880ab
.TP
Packit Service 3880ab
.B up
Packit Service 3880ab
only display running interfaces.
Packit Service 3880ab
Packit Service 3880ab
.TP
Packit Service 3880ab
.BI master " DEVICE "
Packit Service 3880ab
.I DEVICE
Packit Service 3880ab
specifies the master device which enslaves devices to show.
Packit Service 3880ab
Packit Service 3880ab
.TP
Packit Service 3880ab
.BI vrf " NAME "
Packit Service 3880ab
.I NAME
Packit Service 3880ab
speficies the VRF which enslaves devices to show.
Packit Service 3880ab
Packit Service 3880ab
.TP
Packit Service 3880ab
.BI type " TYPE "
Packit Service 3880ab
.I TYPE
Packit Service 3880ab
specifies the type of devices to show.
Packit Service 3880ab
Packit Service 3880ab
Note that the type name is not checked against the list of supported types -
Packit Service 3880ab
instead it is sent as-is to the kernel. Later it is used to filter the returned
Packit Service 3880ab
interface list by comparing it with the relevant attribute in case the kernel
Packit Service 3880ab
didn't filter already. Therefore any string is accepted, but may lead to empty
Packit Service 3880ab
output.
Packit Service 3880ab
Packit Service 3880ab
.SS  ip link xstats - display extended statistics
Packit Service 3880ab
Packit Service 3880ab
.TP
Packit Service 3880ab
.BI type " TYPE "
Packit Service 3880ab
.I TYPE
Packit Service 3880ab
specifies the type of devices to display extended statistics for.
Packit Service 3880ab
Packit Service 3880ab
.SS  ip link afstats - display address-family specific statistics
Packit Service 3880ab
Packit Service 3880ab
.TP
Packit Service 3880ab
.BI dev " DEVICE "
Packit Service 3880ab
.I DEVICE
Packit Service 3880ab
specifies the device to display address-family statistics for.
Packit Service 3880ab
Packit Service 3880ab
.SS  ip link help - display help
Packit Service 3880ab
Packit Service 3880ab
.PP
Packit Service 3880ab
.I "TYPE"
Packit Service 3880ab
specifies which help of link type to dislpay.
Packit Service 3880ab
Packit Service 3880ab
.SS
Packit Service 3880ab
.I GROUP
Packit Service 3880ab
may be a number or a string from the file
Packit Service 3880ab
.B @SYSCONFDIR@/group
Packit Service 3880ab
which can be manually filled.
Packit Service 3880ab
Packit Service 3880ab
.SH "EXAMPLES"
Packit Service 3880ab
.PP
Packit Service 3880ab
ip link show
Packit Service 3880ab
.RS 4
Packit Service 3880ab
Shows the state of all network interfaces on the system.
Packit Service 3880ab
.RE
Packit Service 3880ab
.PP
Packit Service 3880ab
ip link show type bridge
Packit Service 3880ab
.RS 4
Packit Service 3880ab
Shows the bridge devices.
Packit Service 3880ab
.RE
Packit Service 3880ab
.PP
Packit Service 3880ab
ip link show type vlan
Packit Service 3880ab
.RS 4
Packit Service 3880ab
Shows the vlan devices.
Packit Service 3880ab
.RE
Packit Service 3880ab
.PP
Packit Service 3880ab
ip link show master br0
Packit Service 3880ab
.RS 4
Packit Service 3880ab
Shows devices enslaved by br0
Packit Service 3880ab
.RE
Packit Service 3880ab
.PP
Packit Service 3880ab
ip link set dev ppp0 mtu 1400
Packit Service 3880ab
.RS 4
Packit Service 3880ab
Change the MTU the ppp0 device.
Packit Service 3880ab
.RE
Packit Service 3880ab
.PP
Packit Service 3880ab
ip link add link eth0 name eth0.10 type vlan id 10
Packit Service 3880ab
.RS 4
Packit Service 3880ab
Creates a new vlan device eth0.10 on device eth0.
Packit Service 3880ab
.RE
Packit Service 3880ab
.PP
Packit Service 3880ab
ip link delete dev eth0.10
Packit Service 3880ab
.RS 4
Packit Service 3880ab
Removes vlan device.
Packit Service 3880ab
.RE
Packit Service 3880ab
Packit Service 3880ab
ip link help gre
Packit Service 3880ab
.RS 4
Packit Service 3880ab
Display help for the gre link type.
Packit Service 3880ab
.RE
Packit Service 3880ab
.PP
Packit Service 3880ab
ip link add name tun1 type ipip remote 192.168.1.1
Packit Service 3880ab
local 192.168.1.2 ttl 225 encap gue encap-sport auto
Packit Service 3880ab
encap-dport 5555 encap-csum encap-remcsum
Packit Service 3880ab
.RS 4
Packit Service 3880ab
Creates an IPIP that is encapsulated with Generic UDP Encapsulation,
Packit Service 3880ab
and the outer UDP checksum and remote checksum offload are enabled.
Packit Service 3880ab
.RE
Packit Service 3880ab
.PP
Packit Service 3880ab
ip link set dev eth0 xdp obj prog.o
Packit Service 3880ab
.RS 4
Packit Service 3880ab
Attaches a XDP/BPF program to device eth0, where the program is
Packit Service 3880ab
located in prog.o, section "prog" (default section). In case a
Packit Service 3880ab
XDP/BPF program is already attached, throw an error.
Packit Service 3880ab
.RE
Packit Service 3880ab
.PP
Packit Service 3880ab
ip -force link set dev eth0 xdp obj prog.o sec foo
Packit Service 3880ab
.RS 4
Packit Service 3880ab
Attaches a XDP/BPF program to device eth0, where the program is
Packit Service 3880ab
located in prog.o, section "foo". In case a XDP/BPF program is
Packit Service 3880ab
already attached, it will be overridden by the new one.
Packit Service 3880ab
.RE
Packit Service 3880ab
.PP
Packit Service 3880ab
ip -force link set dev eth0 xdp pinned /sys/fs/bpf/foo
Packit Service 3880ab
.RS 4
Packit Service 3880ab
Attaches a XDP/BPF program to device eth0, where the program was
Packit Service 3880ab
previously pinned as an object node into BPF file system under
Packit Service 3880ab
name foo.
Packit Service 3880ab
.RE
Packit Service 3880ab
.PP
Packit Service 3880ab
ip link set dev eth0 xdp off
Packit Service 3880ab
.RS 4
Packit Service 3880ab
If a XDP/BPF program is attached on device eth0, detach it and
Packit Service 3880ab
effectively turn off XDP for device eth0.
Packit Service 3880ab
.RE
Packit Service 3880ab
.PP
Packit Service 3880ab
ip link add link wpan0 lowpan0 type lowpan
Packit Service 3880ab
.RS 4
Packit Service 3880ab
Creates a 6LoWPAN interface named lowpan0 on the underlying
Packit Service 3880ab
IEEE 802.15.4 device wpan0.
Packit Service 3880ab
.RE
Packit Service 3880ab
.PP
Packit Service 3880ab
ip link add dev ip6erspan11 type ip6erspan seq key 102
Packit Service 3880ab
local fc00:100::2 remote fc00:100::1
Packit Service 3880ab
erspan_ver 2 erspan_dir ingress erspan_hwid 17
Packit Service 3880ab
.RS 4
Packit Service 3880ab
Creates a IP6ERSPAN version 2 interface named ip6erspan00.
Packit Service 3880ab
.RE
Packit Service 3880ab
Packit Service 3880ab
.SH SEE ALSO
Packit Service 3880ab
.br
Packit Service 3880ab
.BR ip (8),
Packit Service 3880ab
.BR ip-netns (8),
Packit Service 3880ab
.BR ethtool (8),
Packit Service 3880ab
.BR iptables (8)
Packit Service 3880ab
Packit Service 3880ab
.SH AUTHOR
Packit Service 3880ab
Original Manpage by Michail Litvak <mci@owl.openwall.com>