Scroll to navigation

IFCONFIG(1) General Commands Manual (urm) IFCONFIG(1)

NAME

ifconfig
configure network interfaces

SYNOPSIS

ifconfig [option ...] name [addr] [broadcast brdaddr] [{ pointopoint | dstaddr } dstaddr] [netmask mask] [{ ether | hwaddr | lladdr } macaddr] [metric n] [mtu n] [txqueuelen n] [up | down] [flags]

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.

OPTIONS

, --all
Display all available interfaces.
, --address addr
Set the interface address to addr.
, --broadcast addr
 
, --brdaddr addr
Set the broadcast address to addr.
, --dstaddr addr
 
, --peer addr
Set the destination (peer) address to addr.
Activate the interface (default if address is given).
Shut the interface down.
, --flags flag,[flag ...]
Set the interface flags.
, --interface name
Configure the network interface name.
, --list
List the available or selected interfaces.
, --netmask mask
Set the netmask to mask.
n
Set the interface metric to n.
, --mtu n
Set the interface MTU to n.
format
Select the output format; set to help for information.
, --short
Short output format.
, --verbose
Output information when configuring the interface.
-?, --help
Give this help list.
Give a short usage message.
, --version
Print program version.

Linux-specific options:

, --txqlen n
Set the transmit queue length to n.
February 9, 2019 GNU Network Utilities