ifconfig — configure network interfaces
Contents
Description
Configure network interfaces.
Mandatory or optional arguments to long options are also mandatory or optional for any corresponding
short options.
Known flags are: allmulti, arp, automedia, broadcast, debug, dynamic, master, multicast, pointopoint,
portsel, promisc, slave, trailers, up. Prepending no to any of these flags will negate their effect.
Name
ifconfig — configure network interfaces
Options
-a, --all
Display all available interfaces.
-A, --addressaddr
Set the interface address to addr.
-B, --broadcastaddr-b, --brdaddraddr
Set the broadcast address to addr.
-d, --dstaddraddr-p, --peeraddr
Set the destination (peer) address to addr.
--up Activate the interface (default if address is given).
--down Shut the interface down.
-F, --flagsflag,[flag...]
Set the interface flags.
-i, --interfacename
Configure the network interface name.
-l, --list
List the available or selected interfaces.
-m, --netmaskmask
Set the netmask to mask.
--metricn
Set the interface metric to n.
-M, --mtun
Set the interface MTU to n.
--formatformat
Select the output format; set to help for information.
-s, --short
Short output format.
-v, --verbose
Output information when configuring the interface.
-?, --help
Give this help list.
--usage
Give a short usage message.
-V, --version
Print program version.
Linux-specific options:
-T, --txqlenn
Set the transmit queue length to n.
GNU Network Utilities February 9, 2019 ifconfig(1)
Synopsis
ifconfig [option...] name [addr] [broadcastbrdaddr] [{pointopoint | dstaddr}dstaddr] [netmaskmask]
[{ether | hwaddr | lladdr}macaddr] [metricn] [mtun] [txqueuelenn] [up | down] [flags]
