Skip to content

Instantly share code, notes, and snippets.

@jkullick
Created September 16, 2016 12:36
Show Gist options
  • Save jkullick/73c4d24794bcc7af5a5ddbcd764749e5 to your computer and use it in GitHub Desktop.
Save jkullick/73c4d24794bcc7af5a5ddbcd764749e5 to your computer and use it in GitHub Desktop.
Ifconfig Cheat Sheet
# set static ip address
ifconfig eth0 $IP netmask $NETMASK broadcast $BROADCAST

# change mac address
ifconfig eth0 hw ether $MAC_ADDRESS

# add alias interface
ifconfig eth0:0 $ALIAS_IP

# enable promiscuous model
ifconfig eth0 promisc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment