solaris 加路由_在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 加路由

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值