AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / user-344375

karobar's questions

Martin Hope
karobar
Asked: 2018-01-12 07:34:53 +0800 CST

NTP Peer 状态的 Select Field 中的 8 表示什么?

  • 0

我已经完成ntpq,然后运行associations并收到以下内容:

ind assid status  conf reach auth condition  last_event cnt
===========================================================
  1 12097  c811   yes  none   yes    reject    mobilize  1

从man ntp-decode(Peer Status)的文档中,我了解到第一个数字表示Status,第二个Select,第三个Count和第四个Code。

我试图找到 Select Status本手册的部分并找到以下内容:

The Select Field displays the current selection status. (The T Field in the following table gives the corresponding tally codes used in the ntpq peers dis-
play.) The values are coded as follows:

+-------------------------+---------------------------------------+--------------------------+-------------------------------------------------------------+
|        Code             |            Message                    |            T             |            Description                                      |
+-------------------------+---------------------------------------+--------------------------+-------------------------------------------------------------+
|        0                |            sel_reject                 |                          |            discarded as not valid (TEST10-TEST13)           |
+-------------------------+---------------------------------------+--------------------------+-------------------------------------------------------------+
|        1                |            sel_falsetick              |            x             |            discarded by intersection algorithm              |
+-------------------------+---------------------------------------+--------------------------+-------------------------------------------------------------+
|        2                |            sel_excess                 |            .             |            discarded by table overflow (not used)           |
+-------------------------+---------------------------------------+--------------------------+-------------------------------------------------------------+
|        3                |            sel_outlyer                |            -             |            discarded by the cluster algorithm               |
+-------------------------+---------------------------------------+--------------------------+-------------------------------------------------------------+
|        4                |            sel_candidate              |            +             |            included by the combine algorithm                |
+-------------------------+---------------------------------------+--------------------------+-------------------------------------------------------------+
|        5                |            sel_backup                 |            #             |            backup (more than tos maxclock sources)          |
+-------------------------+---------------------------------------+--------------------------+-------------------------------------------------------------+
|        6                |            sel_sys.peer               |            *             |            system peer                                      |
+-------------------------+---------------------------------------+--------------------------+-------------------------------------------------------------+
|        7                |            sel_pps.peer               |            o             |            PPS peer (when the prefer peer is valid)         |
+-------------------------+---------------------------------------+--------------------------+-------------------------------------------------------------+

那么,这个8数字Select Status是什么意思呢?

ntp
  • 1 个回答
  • 524 Views
Martin Hope
karobar
Asked: 2016-07-26 09:59:49 +0800 CST

如何配置 BIRD 路由器以与不同子网上的邻居通信?

  • 1

介绍

我正在尝试在运行BIRD 路由守护程序的两台主机之间使用 RIPv2 协议建立基本通信。

我有一个有地址Host A的接口。 我有另一台主机,其接口具有 address 。这些接口通过电缆直接连接。如果我在两台机器上添加静态路由,我可以在两台机器之间 ping 通。enp010.0.1.50/24
Host Benp110.1.1.25/24

配置文件

我有以下bird.conf内容Host A:

protocol kernel {
        learn;                  # Learn all alien routes from the kernel
        persist;                # Don't remove routes on bird shutdown
        scan time 20;           # Scan kernel routing table every 20 seconds
        export all;             # Default is export none
}

protocol device {
    scan time 10;           # Scan interfaces every 10 seconds
}

protocol direct {
        interface "enp0"
}

protocol rip MyRIP {    
    export all;
    import all;
    interface "enp0" { mode multicast;};
}

bird.confonHost B是相同的,除了替换enp0为enp1

初步结果

在两台主机上启动鸟守护程序后,我可以做一个tcpdump -ni enp0 -vv

13:21:41.943537 IP (tos 0xc0, ttl 1, id 4933, offset 0, flags [none], proto UDP (17), length 132)
    10.1.1.25.520 > 224.0.0.9.7742: [udp sum ok] UDP, length 104
13:21:41.943704 IP (tos 0xc0, ttl 1, id 150, offset 0, flags [none], proto UDP (17), length 272)
    10.0.1.50.520 > 224.0.0.9.7742: [bad udp cksum 0xec48 -> 0x1219!] UDP, length 244

我可以跳入birdcl命令行并运行show rip neighbors并获得一个空表。

让它发挥作用

如果我将地址设置在同一个子网上,我可以运行show rip neighbors并且可以10.0.1.50在我的邻居列表中看到。

包起来

如果链路的两端不在同一个子网上,如何让这些路由器将彼此列为邻居?

我必须对网络如何工作有某种不正确的心理画面,路由器不需要一直与不在同一子网上的邻居通话吗?

我没有挂断特定于 BIRD 的答案。

routing subnet linux-networking rip bird
  • 1 个回答
  • 2557 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve