Pages

Bridged interfaces with Vagrant

It took me a while to work out how to specify the bridged interface in Vagrant‘s Vagrantup file so that it doesn’t prompt you for it when you run vagrant up. I can be dumb at times, so it’s probably just me, but in case you don’t know Ruby syntax (like me), this is how you do it. In your Vagrantup file, assuming eth0 is the interface you want to bridge to, specify it like this:-

config.vm.network :bridged, :bridge => "eth0"

That’s it! If you’re not familiar with Vagrant, it’s a tool written in Ruby to provide a fast way to deploy virtual machines with VirtualBox. For more information, have a look at the overview over on the project’s website.

iproute2: Life after ifconfig

The standard network tools ifconfig, netstat and route will be familiar to anyone with more than a passing interest in UNIX or any of its derivations. Linux is no exception, and if you hop on to your nearest Linux machine, you’ll find these installed. However, for the past few years ifconfig and its ilk (often collectively referred to as net-tools) have been deprecated in favour of the iproute2 suite.

→ Continue reading ‘iproute2: Life after ifconfig’…