这是我的测试拓扑:
R6---R7
我在上面配置的接口IP地址,你可以在快照中查看。并且在两个路由器中,我都在 R6 10.0.0.22/32
out interfaceR6 GE-0/0/0
和 R7 10.0.0.11/32
out interface中配置了静态路由R7 GE-0/0/0
。
我认为这将在两个路由器的 lo0 中进行通信。但是结果却是,无法互相联系。为什么?
EDIT-01
在 R6 中:
interface LoopBack0
ip address 10.0.0.11 255.255.255.0
#
ip route-static 10.0.0.22 255.255.255.255 GigabitEthernet0/0/0
interface GigabitEthernet0/0/0
ip address 100.0.0.1 255.255.255.0
[R6]dis ip routing-table
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Routing Tables: Public
Destinations : 7 Routes : 7
Destination/Mask Proto Pre Cost Flags NextHop Interface
10.0.0.0/24 Direct 0 0 D 10.0.0.11 LoopBack0
10.0.0.11/32 Direct 0 0 D 127.0.0.1 LoopBack0
10.0.0.22/32 Static 60 0 D 100.0.0.1 GigabitEthernet
0/0/0
100.0.0.0/24 Direct 0 0 D 100.0.0.1 GigabitEthernet
0/0/0
100.0.0.1/32 Direct 0 0 D 127.0.0.1 GigabitEthernet
0/0/0
127.0.0.0/8 Direct 0 0 D 127.0.0.1 InLoopBack0
127.0.0.1/32 Direct 0 0 D 127.0.0.1 InLoopBack0
在 R7 中:
interface LoopBack0
ip address 10.0.0.22 255.255.255.0
#
ip route-static 10.0.0.11 255.255.255.255 GigabitEthernet0/0/0
interface GigabitEthernet0/0/0
ip address 100.0.0.2 255.255.255.0
<R7>dis ip routing-table
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Routing Tables: Public
Destinations : 7 Routes : 7
Destination/Mask Proto Pre Cost Flags NextHop Interface
10.0.0.0/24 Direct 0 0 D 10.0.0.22 LoopBack0
10.0.0.11/32 Static 60 0 D 100.0.0.2 GigabitEthernet
0/0/0
10.0.0.22/32 Direct 0 0 D 127.0.0.1 LoopBack0
100.0.0.0/24 Direct 0 0 D 100.0.0.2 GigabitEthernet
0/0/0
100.0.0.2/32 Direct 0 0 D 127.0.0.1 GigabitEthernet
0/0/0
127.0.0.0/8 Direct 0 0 D 127.0.0.1 InLoopBack0
127.0.0.1/32 Direct 0 0 D 127.0.0.1 InLoopBack0