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 加路由