Why do consoles sometimes hang forever when SSH connection breaks?

There is a “secret” keyboard shortcut to force an exit :~) From the frozen session, hit these keys in order: Enter~. The tilde (only after a newline) is recognized as an escape sequence by the ssh client, and the period tells the client to terminate it’s business without further ado. The long-hang behavior on communication … Read more

How do VLANs work?

Virtual LANs (VLANs) are an abstraction to permit a single physical network to emulate the functionality of multiple parallel physical networks. This is handy because there may be situations where you need the functionality of multiple parallel physical networks but you’d rather not spend the money on buying parallel hardware. I’ll be speaking about Ethernet … Read more

VirtualBox: How to set up networking so both host and guest can access internet and talk to each other

Try this: Setup the virtualbox to use 2 adapters: The first adapter is set to NAT (that will give you the internet connection). The second adapter is set to host only. Start the virtual machine and assign a static IP for the second adapter in Ubuntu (for instance 192.168.56.56). The host Windows will have 192.168.56.1 … Read more

Why couldn’t MAC addresses be used instead of IPv4|6 for networking? [closed]

The MAC address might be unique, but there’s nothing special about the number that would indicate where it is. MAC 00-00-00-00-00-00 might be on the other side of the planet from 00-00-00-00-00-01. IP is an arbitrary numbering scheme imposed in a hierarchical fashion on a group of computers to logically distinguish them as a group … Read more

What is the difference between Unix sockets and TCP/IP sockets?

A UNIX socket, AKA Unix Domain Socket, is an inter-process communication mechanism that allows bidirectional data exchange between processes running on the same machine. IP sockets (especially TCP/IP sockets) are a mechanism allowing communication between processes over the network. In some cases, you can use TCP/IP sockets to talk with processes running on the same … Read more

I’ve inherited a rat’s nest of cabling. What now?

In no particular order here are some suggestions that have been helpful to me over the years- Can any of the equipment in those racks be eliminated, upgraded or consolidated? It’s hard to tell what’s there, but in my experience these kinds of messes tend to be aggravated by gear that should have been pulled … Read more

How does IPv4 Subnetting Work?

IP subnets exist to allow routers to choose appropriate destinations for packets. You can use IP subnets to break up larger networks for logical reasons (firewalling, etc), or physical need (smaller broadcast domains, etc). Simply put, though, IP routers use your IP subnets to make routing decisions. Understand how those decisions work, and you can … Read more