首页 > 解决方案 > OSPF unnumbered 交换机和虚拟机之间不能 ping

问题描述

我正在尝试 OSPF Unnumberd,并且我有一个 VM(CentOs)和一个交换机(Cumulus-Vx)。当我尝试从交换机接口 1 ping 到虚拟机时,虚拟机接口收到 ICMP 回显请求但没有应答。当我查看转发路由表时,我看不到其他路由器,但使用 vtysh 我看到了它。目标路由器是 10.1.0.1

路由表:

[root@centosone vagrant]# netstat -rn
Kernel IP Routentabelle
    Ziel            Router          Genmask         Flags   MSS Fenster irtt Iface
    0.0.0.0         10.0.2.2        0.0.0.0         UG        0 0          0 eth0
    10.0.0.1        0.0.0.0         255.255.255.255 UH        0 0          0 eth1
    10.0.2.0        0.0.0.0         255.255.255.0   U         0 0          0 eth0

OSPFD 表:

centosone# show ip ospf database 

       OSPF Router with ID (10.0.0.1)

                Router Link States (Area 1.1.1.1)

Link ID         ADV Router      Age  Seq#       CkSum  Link count
10.0.0.1        10.0.0.1         887 0x8000000d 0x3986 1
10.1.0.1        10.1.0.1         870 0x8000000f 0x1c9f 1

centosone# show ip ospf route
============ OSPF network routing table ============

============ OSPF router routing table =============
R    10.1.0.1              [100] area: 1.1.1.1, ABR
                           via 10.1.0.1, eth1

============ OSPF external routing table ===========

ICMP echo ignore all 设置为 0。知道是什么原因造成的吗?Switch 和 Vm 的邻居状态为 full。OSI 第 1 层和第 2 层是正确的

标签: routingpingforwardingicmpospf

解决方案


当您在 Loopback-Adapter 上没有 10.0.* 作为 Loopback 地址时会发生此错误


推荐阅读