ifconfig(1)

πŸ“¦
version 2.8 Β· 2 versions
, in debian trixie, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– ifconfig(1) β€” configure network interfaces πŸ’–

okay so this is the manual page for ifconfig, bestie. It lives in the User's Reference Manual, and it's literally the girlboss of network interface configuration. Sit down, grab a strawberry πŸ“, and let's get into it.


✨ 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. That's it, that's the whole vibe. πŸ‘‘

Mandatory or optional arguments to long options are also mandatory or optional for any corresponding short options. (i.e. the long-option/short-option besties mirror each other exactly, no cap.)

The known flags are: allmulti, arp, automedia, broadcast, debug, dynamic, master, multicast, pointopoint, portsel, promisc, slave, trailers, up.

And the trick? Prepending no to any of these flags will negate their effect. So up is up and noup is... not. Iconic behaviour honestly. πŸ’…


πŸ’… OPTIONS πŸ’…

  • -a, --all β€” Display all available interfaces. All of them. The whole roster. 🌈
  • -A, --address addr β€” Set the interface address to addr.
  • -B, --broadcast addr β€” (the original page just lists this one and dips, no description given, we move πŸ™ˆ)
  • -b, --brdaddr addr β€” Set the broadcast address to addr.
  • -d, --dstaddr addr β€” (again, listed with zero explanation in the original, so no extra lore from me πŸŽ€)
  • -p, --peer addr β€” Set the destination (peer) address to addr.
  • --up β€” Activate the interface. This is the default if an address is given.
  • --down β€” Shut the interface down. 😭 She's resting.
  • -F, --flags flag,[flag ...] β€” Set the interface flags.
  • -i, --interface name β€” Configure the network interface name.
  • -l, --list β€” List the available or selected interfaces.
  • -m, --netmask mask β€” Set the netmask to mask.
  • --metric n β€” Set the interface metric to n.
  • -M, --mtu n β€” Set the interface MTU to n.
  • --format format β€” Select the output format; set to help for information.
  • -s, --short β€” Short output format. Minimalist queen. ✨
  • -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, --txqlen n β€” Set the transmit queue length to n.

⭐ Reminder bestie: no in front of a flag flips it off. noup, noarp, you get it. That's the whole negate-your-flags moment and it applies to every single flag up there. πŸ’–

So yeah β€” that's ifconfig, brought to you by <b>GNU Network Utilities</b>, dated <b>February 9, 2019</b>. Go configure something cute. πŸ«ΆπŸŒ·πŸ’œ

πŸ“¦ where this page comes from