interface Serial1/0
ip address 192.168.23.2 255.255.255.0
#Configuring OSPF routing protocol
router ospf 1
network 192.168.12.0 0.0.0.255 area 0
network 192.168.23.0 0.0.0.255 area 0
Configuration of Device C:
#Configuring Ethernet interface
interface FastEthernet0/0
ip address 192.168.34.3 255.255.255.0
#Configure the WAN port
interface Serial1/0
ip address 192.168.23.3 255.255.255.0
#Add a network
interface Dialer10
ip address 192.168.30.1 255.255.255.0
Configuring OSPF routing protocol
router ospf 1
network 192.168.23.0 0.0.0.255 area 0
network 192.168.34.0 0.0.0.255 area 34
network 192.168.30.0 0.0.0.255 area 34
area 34 stub no-summary
Configuration of Device D:
#Configuring Ethernet interface
interface FastEthernet0/0
ip address 192.168.34.4 255.255.255.0
#Configuring OSPF routing protocol
router ospf 1
network 192.168.34.0 0.0.0.255 area 34
area 34 stub
The route generated in the device D by the ospf is shown as follows:
O 192.168.30.0/24 [110/1786] via 192.168.34.3, 00:00:03, FastEthernet0/0
O*IA 0.0.0.0/0 [110/2] via 192.168.34.3, 00:00:03, FastEthernet0/0
28.4.7 Example of configuring OSPF virtual
connection
Configuration requirements: