zoukankan      html  css  js  c++  java
  • debian服务器上不了网,缺少默认网关

    debian服务器上不了网,缺少默认网关

    root@hbg:/# 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 eth2
    192.168.2.0     0.0.0.0         255.255.255.0   U     0      0        0 eth1

    添加网关

    root@hbg:/# route add default gw 192.168.1.1

    上网网段为192.168.1.X网段

    添加后查询路由表信息如下:

    root@hbg:/# route -n
    Kernel IP routing table
    Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
    0.0.0.0         192.168.1.1     0.0.0.0             UG    0      0        0    eth2
    192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0     eth2
    192.168.2.0     0.0.0.0         255.255.255.0   U     0      0        0     eth1

  • 相关阅读:
    神经网络 初步
    SVM整理
    碎碎念
    random note
    2015阿里实习内推一轮被拒
    django开发框架-view & template
    一点思考
    dive into python 读笔(3)
    dive into python 读笔(2)
    dive into python 读笔(1)
  • 原文地址:https://www.cnblogs.com/rohens-hbg/p/5193334.html
Copyright © 2011-2022 走看看