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语言上机实践
    css动画效果
    css滑动门原理
    css整理
    html
    html单词
    倒计时.js
    随机方块
    求字符串出现次数和最大值
  • 原文地址:https://www.cnblogs.com/idmask/p/4591002.html
Copyright © 2011-2022 走看看