Debugging networking problems

I run into this crap all the time with the /etc/network/interfaces file. Maybe your static IPv6 addresses aren't getting added to your network interface, or maybe Ubuntu gets stuck during booting at “Waiting for network configuration” for a few minutes.

Usually a problem like this is due to a misconfiguration in /etc/network/interfaces. Here are some tips I've learned about the interfaces file: