solaris 加路由_在Solaris上設定預設路由
solaris 加路由
Setting the default route on Solaris is easy. If you are trying to just set the route temporarily you can use the route command:
在Solaris上設定預設路由很容易。 如果您嘗試只是暫時設定路線,則可以使用route命令:
route add default <ipaddress>
路由新增預設<ipaddress>
Example:
例:
route add default 192.168.1.1
路由新增預設192.168.1.1
If you want the route to be persisted when you reboot the system, you will need to set the route in the /etc/defaultrouter file.
如果要在重新引導系統時保留路由,則需要在/ etc / defaultrouter檔案中設定路由。
/etc/defaultrouter
/ etc / defaultrouter
Example:
例:
echo 192.168.1.1 > /etc/defaultrouter
回聲192.168.1.1> / etc / defaultrouter
Note that Solaris 10 includes “zones” that can also configure this same behavior. There will be more articles covering this in the future.
請注意,Solaris 10包含“區域”,它們也可以配置相同的行為。 將來會有更多文章介紹這一點。
翻譯自: https://www.howtogeek.com/howto/solaris/set-the-default-route-on-solaris/
solaris 加路由