Cmd Generator

ifconfig

Configure network interfaces.

ifconfig

Examples

# Show all interfaces
ifconfig -a

# Set an IP address
ifconfig eth0 192.168.1.10 netmask 255.255.255.0

# Bring interface up
ifconfig eth0 up

# Bring interface down
ifconfig eth0 down

# Set MTU
ifconfig eth0 mtu 1500