# Linux
# Storage
# Managing quota
/etc/fstab example:
/dev/xvda1 / ext3 rw,noatime,errors=remount-ro,usrjquota=aquota.user,grpjquota=aquota.group 0 1
mount -o remount /
ln -s /dev/xvda1 /dev/root
quotacheck -vugm /
quotaoff -ug /
quotaon -ug /
# Networking
TIP
This section only use ip command.
ip link list
# or
ip link show
ip link set ${interface_name} up
ip addr list
# or
ip addr show
# Managing Network Namespace
ip netns add ${netns_name}
ip netns del ${netns_name}
ip netns show
ip netns identify ${pid}
ip netns exec ${netns_name} ${command}
# or
ip -n ${netns_name} ${command}
# Managing Virtual Interface
ip link add ${vethname} type veth peer name ${vethname_peer}
ip link del dev ${vethname}
ip link set netns ${netns} dev ${vethname_peer}
# or
ip link set ${vethname} netns ${netns}
# Managing Bridge
ip link add ${bridge} type bridge
ip link del ${bridge}
ip link set master ${bridge} dev ${device_to_plug}
ip link set nomaster dev ${device_to_plug}
# Managing Bond
ip link add ${bond} type bond
ip link del ${bond}
ip link set master ${bond} dev ${device_to_plug}
# Managing VLAN
TODO
# Managing VXLAN
TODO
# Managing IPv4 Tunnel
TODO
# Managing IPv6 Tunnel
TODO
# Managing GRE Tunnel
TODO
# Managing TUN/TAP Interfaces
ip tuntap add name ${tap_name}
TIP
You can create those interface by using mknod
mknod /dev/net/tap0 c 36 16
mknod /dev/net/tap1 c 36 17
mknod /dev/net/tap2 c 36 18
# Managing VPN
TODO
# Managing Routes
TODO