10.2.2 Low level network configuration – ip
The ip
equivalents of the preceding ifconfig
and
route
commands are:
-
ip link show
-
ip route list
-
ip link set eth0 down
-
ip addr del dev eth0 local 192.168.0.3
-
ip addr add dev eth0 local 192.168.0.111/24 broadcast
192.168.0.255
-
ip link set eth0 up
-
ip route add dev eth0 to 10.0.0.0/8 src 192.168.0.111 via
192.168.0.1
The ip
program prints its command syntax when run with the
argument help. For example, ip link help prints:
Usage: ip link set DEVICE { up | down | arp { on | off } |
dynamic { on | off } |
multicast { on | off } | txqueuelen PACKETS |
name NEWNAME |
address LLADDR | broadcast LLADDR |
mtu MTU }
ip link show [ DEVICE ]
See also ip(8)
.