Sam's Tech Blog

'You can check out any time you like, But you can never leave!'


Linux - IP and GW

How to: set IP and GW from command line in Linux.

Linux - IP and GW

Note! The mask and the IP here are just examples.

ip addr add dev vmbr1
ip route add default via

or older Debians

ifconfig vmbr1 netmask
route add default gw