ip link show
Shows the state of all network interfaces on the system.
ip link show type bridge
Shows the bridge devices.
ip link show type vlan
Shows the vlan devices.
ip link show master br0
Shows devices enslaved by br0
ip link set dev ppp0 mtu 1400
Change the MTU the ppp0 device.
ip link add link eth0 name eth0.10 type vlan id 10
Creates a new vlan device eth0.10 on device eth0.
ip link delete dev eth0.10
Removes vlan device.
ip link help gre
Display help for the gre link type.
ip link add name tun1 type ipip remote 192.168.1.1 local
192.168.1.2 ttl 225 encap gue encap-sport auto encap-dport 5555
encap-csum encap-remcsum
Creates an IPIP that is encapsulated with Generic UDP
Encapsulation, and the outer UDP checksum and remote checksum
offload are enabled.
ip link set dev eth0 xdp obj prog.o
Attaches a XDP/BPF program to device eth0, where the program
is located in prog.o, section "prog" (default section). In
case a XDP/BPF program is already attached, throw an error.
ip -force link set dev eth0 xdp obj prog.o sec foo
Attaches a XDP/BPF program to device eth0, where the program
is located in prog.o, section "foo". In case a XDP/BPF
program is already attached, it will be overridden by the new
one.
ip -force link set dev eth0 xdp pinned /sys/fs/bpf/foo
Attaches a XDP/BPF program to device eth0, where the program
was previously pinned as an object node into BPF file system
under name foo.
ip link set dev eth0 xdp off
If a XDP/BPF program is attached on device eth0, detach it
and effectively turn off XDP for device eth0.
ip link add link wpan0 lowpan0 type lowpan
Creates a 6LoWPAN interface named lowpan0 on the underlying
IEEE 802.15.4 device wpan0.
ip link add dev ip6erspan11 type ip6erspan seq key 102 local
fc00:100::2 remote fc00:100::1 erspan_ver 2 erspan_dir ingress
erspan_hwid 17
Creates a IP6ERSPAN version 2 interface named ip6erspan00.