Show Menu
Cheatography

CAE Hackathon Cheat Sheet (DRAFT) by

This is a draft cheat sheet. It is a work in progress and is not finished yet.

Interface Info

ifconfig
ip a
general ip & interface info

Bring interfaces up & down

# ip link set dev <interface> up
# ip link set dev <interface> down

# /sbin/ifconfig <interface> up
# /sbin/ifconfig <interface> down
 

/etc/n­etw­ork­/in­ter­faces

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface em1 inet static
    address 192.168.1.100
    netmask 255.255.255.0
    network 192.168.1.0
    broadcast 192.168.1.255 # optional
    gateway 192.168.1.254

# Wireless interface
auto wlp3s0
iface wlp3s0 inet dhcp
Template for static & dhcp