Enter configuration commands, one per line. End with CNTL/Z.
Router1(config)#router ospf 1
Router1(config-router)#router-id 1.1.1.1
Router1(config-router)#network 172.16.1.0 0.0.0.3 area 1
Router1(config-router)#network 192.168.1.0 0.0.0.255 area 0
Router2#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router2(config)#router ospf 1
Router2(config-router)#router-id 2.2.2.2
Router2(config-router)#network 172.16.1.0 0.0.0.3 area 1
Router2(config-router)#network 192.168.2.0 0.0.0.255 area 2
次に、ルーティングテーブルを確認します。
Router1#show ip route
172.16.0.0/16 is variably subnetted, 2 subnets, 2 masks
C 172.16.1.0/30 is directly connected, Ethernet0/0
L 172.16.1.1/32 is directly connected, Ethernet0/0
192.168.1.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.1.0/24 is directly connected, Ethernet0/1
L 192.168.1.254/32 is directly connected, Ethernet0/1
Router2#show ip route
172.16.0.0/16 is variably subnetted, 2 subnets, 2 masks
C 172.16.1.0/30 is directly connected, Ethernet0/0
L 172.16.1.2/32 is directly connected, Ethernet0/0 O IA 192.168.1.0/24 [110/20] via 172.16.1.1, 00:05:44, Ethernet0/0
192.168.2.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.2.0/24 is directly connected, Ethernet0/1
L 192.168.2.254/32 is directly connected, Ethernet0/1
コメントを書く