上拓扑;
1、配置PC机IP地址、子网掩码、网关。
2、配置路由器IP地址
AR1:
interface GigabitEthernet0/0/0
ip address 192.168.20.254 255.255.255.0
interface GigabitEthernet0/0/1
ip address 192.168.10.254 255.255.255.0
interface GigabitEthernet0/0/2
ip address 10.0.1.1 255.255.255.252
AR2:
interface GigabitEthernet0/0/0
ip address 10.0.1.2 255.255.255.252
3.配置基础OSPF
AR1:
ospf 1
area 0.0.0.0
network 10.0.1.1 0.0.0.0
network 192.168.10.254 0.0.0.0
network 192.168.20.254 0.0.0.0
AR2:
ospf 1
area 0.0.0.0
network 10.0.1.2 0.0.0.0