zoukankan      html  css  js  c++  java
  • linux添加静态路由(rhel5.4)

    环境:rhel5.4

    目的:如题

    结果如下:

    [root@localhost network-scripts]# route -n
    Kernel IP routing table
    Destination     Gateway            Genmask              Flags Metric Ref    Use  Iface
    192.168.1.0     0.0.0.0               255.255.255.0       U         0        0        0       eth0
    169.254.0.0     0.0.0.0               255.255.0.0           U          0        0        0       eth0
    0.0.0.0             192.168.1.10    0.0.0.0                    UG        0        0        0       eth0

    中间那条169.254.0.0非我所愿,原因待查

    参考如下博客中的第一种方法

    http://tilt.lib.tsinghua.edu.cn/node/659

    vi /etc/sysconfig/network-scripts/route-eth0

    192.168.1.0/24 dev eth0
    0.0.0.0/0 via 192.168.1.10 dev eth0

    service network restart

    ping 163.com


    /* the end */

  • 相关阅读:
    从C#到TypeScript
    从C#到TypeScript
    从C#到TypeScript
    从C#到TypeScript
    UWP开源项目 LLQNotifier 页面间通信利器(移植EventBus)
    .net源码分析
    读读日报小布版 计划与反馈
    Pyinstaller使用
    Pyspider安装使用
    元器件资料查看网站
  • 原文地址:https://www.cnblogs.com/idmask/p/4591002.html
Copyright © 2011-2022 走看看