Categories
Networking

ifconfig basic commands

Basic Usage

ifconfig

Interface Information

ifconfig [INTERFACE]
ifconfig en1

Assigning IP Address to Interface

ifconfig en1 192.168.1.2

Assigning Netmask to Interface

ifconfig en1 192.168.88.25 netmask 255.255.255.0

Netmask

netmask 0xffffff00 means 255.255.255.0