Home » Questions » Computers [ Ask a new question ]

Static default gateway on FreeBSD 8.0

Static default gateway on FreeBSD 8.0

on FreeBSD i know i can use the route command to add a default gateway like this: route add default

Asked by: Guest | Views: 48
Total answers/comments: 1
Guest [Entry]

"To have your custom default gateway saved across reboots, you'll want to edit /etc/rc.conf. There is a directive in there called defaultrouter which is set to NO by default. The line looks like this:


open /etc/rc.conf in your editor of choice, find this line, and change NO to the IP address of the gateway so it looks like this:


this will be persistent across reboots."