!
version 11.1
service udp-small-servers
service tcp-small-servers
!
hostname Router_A
!
enable password cisco
!
ip subnet-zero
!
interface Ethernet0
ip address 192.168.1.1 255.255.255.0
!
interface Serial0
ip address 172.16.0.1 255.255.255.252
bandwidth 64
clockrate 64000
!
router ospf 1
network 192.168.1.0 0.0.0.255 area 0
network 172.16.0.0 0.0.0.3 area 0
!
ip classless
!
line con 0
line aux 0
line vty 0 4
password cisco
login
!
end
●Router_Bの設定
!
version 11.1
service udp-small-servers
service tcp-small-servers
!
hostname Router_B
!
enable password cisco
!
ip subnet-zero
!
interface Ethernet0
ip address 192.168.3.1 255.255.255.0
!
interface Serial0
ip address 172.16.0.2 255.255.255.252
bandwidth 64
!
router ospf 1
network 192.168.3.0 0.0.0.255 area 0
network 172.16.0.0 0.0.0.3 area 0
!
ip classless
logging buffered
!
line con 0
exec-timeout 0 0
line aux 0
line vty 0 4
password cisco
login
!
end
Gateway of last resort is not set
C 192.168.1.0/24 is directly connected, Ethernet0
172.16.0.0/30 is subnetted, 1 subnets
C 172.16.0.0 is directly connected, Serial0
●Router_Bのルーティングテーブル
Gateway of last resort is not set
C 192.168.3.0/24 is directly connected, Ethernet0
172.16.0.0/30 is subnetted, 1 subnets
C 172.16.0.0 is directly connected, Serial0
Gateway of last resort is not set
C 192.168.1.0/24 is directly connected, Ethernet0
O 192.168.3.0/24 [110/1572] via 172.16.0.2, 00:00:33, Serial0
172.16.0.0/30 is subnetted, 1 subnets
C 172.16.0.0 is directly connected, Serial0
●Router_Bのルーティングテーブル
Gateway of last resort is not set
O 192.168.1.0/24 [110/1572] via 172.16.0.1, 00:00:03, Serial0
C 192.168.3.0/24 is directly connected, Ethernet0
172.16.0.0/30 is subnetted, 1 subnets
C 172.16.0.0 is directly connected, Serial0