network enabled verified low v1.0.0

ip

Show/manipulate routing, devices, policy routing and tunnels

📋 Live Preview
ip -h {flag-h}
📎 flag-h
ip -h {flag-h}

Sandbox: execFile · Timeout: 30s

Capabilities

network.config.ip

Parameters

Name Type Required Default Description Aliases
flag-h file No - -f[amily] { inet | inet6 | mpls | bridge | link } | -4 | -6 | -M | -B | -0 | -l[oops] { maximum-addr-flush-attempts } | -echo | -br[ief] | -o[neline] | -t[imestamp] | -ts[hort] | -b[atch] [filename... -h, -r, -i, -j, -p
4 boolean No - | -4, -6, -M, -B, -0
c boolean No - } -c
f boolean No - { inet | inet6 | mpls | bridge | link } | -f
l boolean No - | -l, -addr-flush-attempts, -echo, -br
o boolean No - [filename] | -o, -t, -ts, -b
rc boolean No - | -a[ll] | -rc, -n, -N

Examples

Use flag-h flag

ip inet

Display help message

ip --help

Display the current IP addresses and network interfaces

ip addr show

Display the routing table

ip route show

Add a new IP address to an interface

ip addr add 192.168.1.100/24 dev eth0

Delete an IP address from an interface

ip addr del 192.168.1.100/24 dev eth0

Bring an interface up

ip link set dev eth0 up

Bring an interface down

ip link set dev eth0 down

Show network interfaces and link status

ip link show

Add a new default gateway

ip route add default via 192.168.1.1

Delete the default gateway

ip route del default

Flush all IP addresses on an interface

ip addr flush dev eth0

Change the MAC address of an interface

ip link set dev eth0 address 00:11:22:33:44:55

Show information about tunnels

ip tunnel show

Shortcut: Show brief information about IP addresses and devices

ip -brief addr show

Shortcut: Show brief information about link status

ip -brief link show

Documentation

ip — Show/manipulate routing, devices, policy routing and tunnels

Overview

ip is a command-line utility for show/manipulate routing, devices, policy routing and tunnels.

Usage

ip -h {flag-h}

Related Tools

network-config-ifconfig