Currently I'm running a FreeBSD 9.1 and the default gateway is already configured in the rc.conf
.
rc.conf
:
defaultrouter = "10.0.0.1"
But now I want to change the default gateway without rebooting the system, is this possible?
route del default
route add default 1.2.3.4
Where 1.2.3.4
is the new gateway. You can even concatenate them onto the same line with a ;
Edit: This is FreeBSD, not Linux. The command is different. Please do not edit this Answer if you haven't read the Question carefully enough to determine the operating system being used.
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments