ip addr add 1.2.3.4/30 dev eth0 ip route add default via 1.2.3.1 Obviously change the details to reflect your actual environment.
Things get a little more tricky when you are dealing with multiple WAN (Internet) links, but not a lot. On Mon, Jun 20, 2011 at 12:42 PM, Jeff Ramin <[email protected]> wrote: > > Hi folks. > > From the command line, what's the preferred/suggested procedure for > configuring > a static IP and default route? > > Thanks. > > -- > Jeff Ramin > Software Engineer > Singlewire Software > 2601 W Beltline Hwy #510 > Madison, WI 53713 > > Phone Direct - 608.661.1172 > www.singlewire.com > > > _______________________________________________ > Voyage-linux mailing list > [email protected] > http://list.voyage.hk/mailman/listinfo/voyage-linux > _______________________________________________ Voyage-linux mailing list [email protected] http://list.voyage.hk/mailman/listinfo/voyage-linux
