上面是ip还有端口什么的 ar1配置 interface GigabitEthernet0/0/0 ip address 10.0.0.1 255.255.255.0 interface GigabitEthernet0/0/1 ip address 12.0.0.1 255.255.255.0 ospf 1 router-id 1.1.1.1 import-route rip 1 area 0.0.0.0 network 1.1.1.0 0.0.0.255 network 12.0.0.0 0.0.0.255 rip 1 network 10.0.0.0 import-route ospf 1 ar2配置 interface GigabitEthernet0/0/0 ip address 10.0.0.2 255.255.255.0 # interface GigabitEthernet0/0/1 ip address 192.168.2.1 255.255.255.0 # rip 1 network 10.0.0.0 network 192.168.2.0 ar3配置 interface GigabitEthernet0/0/0 ip address 12.0.0.2 255.255.255.0 ospf 1 area 0.0.0.0 network 12.0.0.0 0.0.0.255 ar5配置 interface GigabitEthernet0/0/0 ip address 192.168.2.2 255.255.255.0 rip 1 network 192.168.2.0 结果 ar3pingar5 看路由表