我有两个直接连接的路由器,它们都有环回地址。接口没有IP地址,我只是将R1 g0/0连接到R5 g0/0。如果我将 IP 地址放在两个路由器的 g0/0 接口上,那么我可以在环回地址之间进行 ping 操作,但是如果我从 g0/0 中删除了 IP 地址,则无法进行 ping 操作。环回是否需要有IP地址的接口才能互相ping通?

R1的sh ip路由
Gateway of last resort is not set
10.0.0.0/32 is subnetted, 1 subnets
C 10.1.1.1/32 is directly connected, Loopback1
R5的sh ip路由
Gateway of last resort is not set
10.0.0.0/32 is subnetted, 1 subnets
C 10.1.1.5/32 is directly connected, Loopback5
运行
version 15.1
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname R5
!
ip cef
no ipv6 cef
!
license udi pid CISCO2911/K9 sn FTX15246RHB
!
spanning-tree mode pvst
!
interface Loopback5
ip address 10.1.1.5 255.255.255.255
!
interface GigabitEthernet0/0
no ip address
duplex auto
speed auto
!
interface GigabitEthernet0/1
no ip address
duplex auto
speed auto
shutdown
!
interface GigabitEthernet0/2
no ip address
duplex auto
speed auto
shutdown
!
interface Vlan1
no ip address
shutdown
!
ip classless
ip route 10.1.1.1 255.255.255.255 GigabitEthernet0/0
!
ip flow-export version 9
!
line con 0
!
line aux 0
!
line vty 0 4
login
!
end