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.
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다