Linux Commands Reference - Complete Linux Command Guide

Comprehensive Linux command reference with 150+ commands. Search, filter by category, and view detailed usage examples.

Share
Back to commands

ifconfig

Configure network interface (deprecated, use ip)

Syntax

ifconfig [INTERFACE] [OPTIONS]

Common Options

-aShow all interfaces
upEnable interface
downDisable interface
inetSet IPv4 address
netmaskSet netmask
mtuSet MTU value
promiscEnable promiscuous mode

Common Examples

ifconfig

Show all network interfaces

ifconfig eth0

Show eth0 info

ifconfig eth0 192.168.1.100

Set IP address

ifconfig eth0 up

Enable interface

ifconfig eth0 down

Disable interface

ifconfig eth0 192.168.1.100 netmask 255.255.255.0

Set IP and netmask

Related Commands

Related Tools

More Code & Dev Tools