解决方法如下:

原因:

There are multiple known causes for this error:

- You attempted to set a route specific to an interface which was not up at the time you ran the command.

- You attempted to set a route for a network before setting a host route for the gateway which handles traffic for that network.

解决方法:

  1. At the CLI, type:      ifconfig
  2. If the response shows that the interface you specified in the route command is in an UP state, then create a host route for the gateway and try to set the net route again.

To create a host route

  • At the CLI, type:      route add -host IP_ADDRESS dev eth0
        ... where IP_ADDRESS is the IP address of the gateway for the network and eth0 is the actual device name for the ethernet device which connects to the network where the gateway is installed.

To create a net route

  • At the CLI, type:      route add -net IP_ADDRESS netmask NETMASK gw GATEWAY_IP dev eth0
        ...where IP_ADDRESS is the IP address of the network, NETMASK is the subnet mask, GATEWAY_IP is the IP address of the gateway machine, and eth0 is the actual interface that connects to the network where the gateway is present.

最新文章

  1. js的倒计时在ie下显示NAN的最佳解决办法
  2. mysql ---复制表结构---创建新表
  3. Java基础之写文件——从多个缓冲区写(GatheringWrite)
  4. 在Windows Azure上搭建SSTP VPN
  5. struts配置。泪奔...
  6. WebAPI 时代
  7. delphi请求idhttp数据
  8. SecureCRT访问开发板linux系统
  9. 信息图:iOS 7开发者需要知道的事
  10. Android中图片的异步加载
  11. VS2008 运行VC\Bin下的link.exe, cl.exe, lib.exe提示找不到mspdb80.dll的解决方法
  12. C语言数组的学习
  13. vDSP加速的应用
  14. Nowcoder contest 392 I 逛公园 (无向图割边模板)
  15. Wshshell 脚本简单学习
  16. WCF兼容WebAPI输出Json格式数据,从此WCF一举两得
  17. いろはちゃんとマス目 / Iroha and a Grid (组合数学)
  18. Spring MVC 中急速集成 Shiro 实践
  19. CI框架 -- 核心文件 之 Lang.php(加载语言包)
  20. Solr with Apache Tomcat

热门文章

  1. MATLAB串口操作和GUI编程
  2. ZOJ2725_Digital Deletions
  3. iOS开发--字典(NSDictionary)和JSON字符串(NSString)之间互转
  4. 【uoj#244】[UER #7]短路 CDQ分治+斜率优化dp
  5. window与linux查看端口被占用
  6. BZOJ1069 [SCOI2007]最大土地面积 【凸包 + 旋转卡壳】
  7. jQuery时间轴
  8. excel换行
  9. Howto run google-chrome as root
  10. static_cast 和 dynamic_cast