Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
# DL the src code from http://www.kernel.org/pub/linux/utils/net/iproute2/
# Ubuntu 4.0.0-1:
apt-get install -y libdb4o-cil-dev libdb-dev bison flex build-essential gcc module-init-tools
wget https://www.kernel.org/pub/linux/utils/net/iproute2/iproute2-4.1.1.tar.xz
tar xvf iproute2-4.1.1.tar.xz
cd iproute2-4.1.1
make
# This will build the new `ip` binary in the ip directory.
# Next backup your old ip binary if you want:
mv /sbin/ip ~/ip.bak
# From inside the iproute2-4.1.1 directory you just built in, find the new binary in the `iproute2-4.1.1/ip/ip` directory and move it to /sbin/ip
mv ip/ip /sbin/ip
ip -V
# ip utility, iproute2-ss150706
modprobe ipvlan
# lsmod | grep ipvl
# ipvlan 24576 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment