我正在做一个实验室,它非常简单。就像我需要确认一些命令,但我真的很不高兴。
这是我的实验室。我配置了一个 vrf 和一个环回接口,我在 vrf 下应用它。环回已从全局表中消失,并已插入到 vrf 表中。所以我添加了一个静态路由,以便能够从全局表中 ping 接口。现在我可以在全局表中看到作为静态插入的环回接口,但我无法 ping。
我觉得缺少一些愚蠢的东西,因为一切似乎都很好,而且应该可以工作。我的路由器配置的输出如下所示:
ip vrf HQ
rd 30:50
!
!
!
!
!
!
!
interface Loopback1
ip vrf forwarding HQ
ip address 1.1.1.1 255.255.255.255
!
ip classless
ip route 1.1.1.1 255.255.255.255 Loopback1
no ip http server
no ip http secure-server
!
!
!
!
R2#sh ip ro
R2#sh ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route
Gateway of last resort is not set
1.0.0.0/32 is subnetted, 1 subnets
S 1.1.1.1 is directly connected, Loopback1
R2#sh ip ro
R2#sh ip route vrf HQ
Routing Table: HQ
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route
Gateway of last resort is not set
1.0.0.0/32 is subnetted, 1 subnets
C 1.1.1.1 is directly connected, Loopback1
R2#
注意:我可以traceroute接口的ip