OSPF-Single-Area-IPv4
Everyone must use this link for Practical of OSPF-Single-Area-IPv4:)
R-1 Configuration:-
-------------------
Router(config)#hostname R-1
R-1(config)#interface Serial1/0
R-1(config-if)#ip address 192.168.20.1 255.255.255.0
R-1(config-if)#clock rate 72000
R-1(config-if)#no shutdown
R-1(config)#interface FastEthernet0/0
R-1(config-if)#ip address 192.168.10.1 255.255.255.0
R-1(config-if)#no shutdown
R-2 Configuration:-
-------------------
Router(config)#hostname R-2
R-2(config)#interface Serial1/0
R-2(config-if)#ip address 192.168.20.2 255.255.255.0
R-2(config-if)#no shutdown
R-2(config)#interface FastEthernet0/0
R-2(config-if)#ip address 192.168.30.1 255.255.255.0
R-2(config-if)#no shutdown
OSPF Configuration On R-1:-
----------------------------
R-1(config)#router ospf 1
R-1(config-router)#network 192.168.10.0 0.0.0.255 area 0
R-1(config-router)#network 192.168.20.0 0.0.0.255 area 0
OSPF Configuration On R-2:-
----------------------------
R-2(config)#router ospf 1
R-2(config-router)#network 192.168.30.0 0.0.0.255 area 0
R-2(config-router)#network 192.168.20.0 0.0.0.255 area 0
Ping PC_(192.168.10.2) to PC_(192.168.30.2):-
----------------------------------------------
C:\>ping 192.168.30.2
Pinging 192.168.30.2 with 32 bytes of data:
Request timed out.
Reply from 192.168.30.2: bytes=32 time=6ms TTL=126
Reply from 192.168.30.2: bytes=32 time=7ms TTL=126
Reply from 192.168.30.2: bytes=32 time=8ms TTL=126
Ping statistics for 192.168.30.2:
Packets: Sent = 4, Received = 3, Lost = 1 (25% loss),
Approximate round trip times in milli-seconds:
Minimum = 6ms, Maximum = 8ms, Average = 7ms
No comments:
Post a Comment