Manually adding a default route to a CentOS Linux host


I have come to rely on the CentOS and Fedora network initialization scripts to add default routes, but a situation occurred where I needed to add one manually. The route command syntax differs between Solaris, Linux and OpenBSD, so I thought I would jot down how I manually added a static route to my Linux host for future reference:

$ ip route add 0.0.0.0/0 via 192.168.1.1 dev bond0

This article was posted by Matty on 2009-04-11 14:15:00 -0400 -0400