table of contents
| 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¶
-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
helpfor 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.
| February 9, 2019 | GNU Network Utilities |