Skip to content

Instantly share code, notes, and snippets.

@solar
Created July 30, 2012 09:56
Show Gist options
  • Save solar/3205949 to your computer and use it in GitHub Desktop.
Save solar/3205949 to your computer and use it in GitHub Desktop.
Create virtual ip address in linux
# by ifconfig
ifconfig eth1:0 10.1.53.1
ifconfig eth1:0 down
# by iproute2
ip addr add 10.1.53.1 dev eth1
ip addr show
ip addr del 10.1.53.1 dev eth1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment