zoukankan      html  css  js  c++  java
  • ospf默认路由

    root@mpls1:/home/devuser# route -n
    Kernel IP routing table
    Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
    0.0.0.0         192.168.122.1   0.0.0.0         UG    0      0        0 enp1s0
    192.168.1.4     0.0.0.0         255.255.255.255 UH    0      0        0 enp7s0
    192.168.2.4     192.168.122.35  255.255.255.255 UGH   20     0        0 enp1s0
    192.168.122.0   0.0.0.0         255.255.255.0   U     0      0        0 enp1s0
    root@mpls1:/home/devuser# traceroute 192.168.2.5
    traceroute to 192.168.2.5 (192.168.2.5), 30 hops max, 60 byte packets
     1  192.168.122.1 (192.168.122.1)  0.187 ms  0.167 ms  0.158 ms
     2  10.10.27.254 (10.10.27.254)  11.910 ms  12.212 ms  12.541 ms   ------------------
     3  192.168.3.1 (192.168.3.1)  14.092 ms  14.192 ms  14.255 ms          ------------------------
     4  * * *
     5  * * *
     6  * * *
     7  * * *
     8  * * *
     9  * * *
    10  * * *
    11  * * *
    12  * * *
    13  * * *
    14  * * *
    15  * * *
    16  * * *
    17  * * *
    18  * * *
    19  * * *
    20  * * *
    21  * * *
    22  * * *
    23  * * *
    24  * * *
    25  * * *
    26  * * *
    27  * * *
    28  * * *
    29  * * *
    30  * * *
    root@mpls1:/home/devuser# route del default gw 192.168.122.1
    root@mpls1:/home/devuser# route -n
    Kernel IP routing table
    Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
    192.168.1.3     192.168.1.4     255.255.255.255 UGH   20     0        0 enp7s0
    192.168.1.4     0.0.0.0         255.255.255.255 UH    0      0        0 enp7s0
    192.168.2.4     192.168.122.35  255.255.255.255 UGH   20     0        0 enp1s0
    192.168.2.5     192.168.1.4     255.255.255.255 UGH   20     0        0 enp7s0
    192.168.122.0   0.0.0.0         255.255.255.0   U     0      0        0 enp1s0
    192.168.123.0   192.168.1.4     255.255.255.0   UG    20     0        0 enp7s0
    root@mpls1:/home/devuser# traceroute 192.168.2.5
    traceroute to 192.168.2.5 (192.168.2.5), 30 hops max, 60 byte packets
     1  192.168.1.4 (192.168.1.4)  0.224 ms  0.199 ms  0.187 ms
     2  192.168.2.5 (192.168.2.5)  0.621 ms  0.616 ms  0.608 ms
    root@mpls1:/home/devuser# traceroute 192.168.2.5
    traceroute to 192.168.2.5 (192.168.2.5), 30 hops max, 60 byte packets
     1  192.168.1.4 (192.168.1.4)  0.259 ms  0.235 ms  0.222 ms
     2  192.168.2.5 (192.168.2.5)  0.197 ms  0.180 ms  0.168 ms
    root@mpls1:/home/devuser# traceroute 192.168.2.5
    traceroute to 192.168.2.5 (192.168.2.5), 30 hops max, 60 byte packets
    connect: Network is unreachable
    root@mpls1:/home/devuser# 

  • 相关阅读:
    Oracle11g 安装 -Linux
    oracle 11g安装-window
    将本地文件上传到github
    highcharts实现画辅助线功能并删除
    eclipse中一个项目引用另一个项目的方法
    Kubernetes label简单使用
    spark 报错 InvalidClassException: no valid constructor
    NFS服务配置 Linux
    Ubuntu-Server18.04开启无线网卡并配置静态ip
    Ubuntu18.04安装mysql并配置远程访问
  • 原文地址:https://www.cnblogs.com/dream397/p/13405456.html
Copyright © 2011-2022 走看看