OSPF 3

324 views

Published on

Published in: Education, Technology, Travel
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
324
On SlideShare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
34
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

OSPF 3

  1. 1. 1
  2. 2. OSPF - Network Diagram AREA 1 10.0.0.1/8 S0 HYD AREA 2 11.0.0.1/8 S0 S1 10.0.0.2/8 CHE E0 192.168.1.150/24 S1 BAN 11.0.0.2/8 E0 E0 192.168.2.150/24 192.168.3.150/24 AREA 0 LAN - 192.168.1.0/24 LAN - 192.168.2.0/24 LAN - 192.168.3.0/24 2
  3. 3. 3
  4. 4. Microsoft Windows 2000 [Version 5.00.2195] (C) Copyright 1985-2000 Microsoft Corp. C:> telnet 192.168.1.150 Connecting ..... ================================ Welcome to Hyderabad Router ================================ User Access Verification password : **** Directly Connected Networks on Directly Connected Networks on Hyderabad> enable HYDERABAD Router password : **** HYDERABAD Router Hyderabad# configure terminal 192.168.1.0 192.168.1.0 Enter configuration commands, one per line. End with CNTL/Z. 10.0.0.0 10.0.0.0 Hyderabad(config)# interface serial 0 Hyderabad(config-if)# ip address 10.0.0.1 255.0.0.0 Hyderabad(config-if)# no shut Hyderabad(config-if)# clockrate 64000 Hyderabad(config-if)# encapsulation hdlc Hyderabad(config-if)# exit Hyderabad(config)# 4
  5. 5. Hyderabad(config)# no ip routing Hyderabad(config)# ip routing Hyderabad(config)# router ospf 1 Hyderabad(config-router)# network 192.168.1.0 0.0.0.255 area 1 Hyderabad(config-router)# network 10.0.0.0 0.255.255.255 area 1 Hyderabad(config-router)# Configuring OSPF Configuring OSPF Router(config)# router ospf <pid> Router(config)# router ospf <pid> Router(config-router)# network <Network ID> Router(config-router)# network <Network ID> <wildcard mask> area <area id> <wildcard mask> area <area id> 5
  6. 6. Hyderabad(config)# no ip routing Hyderabad(config)# ip routing Hyderabad(config)# router ospf 1 Hyderabad(config-router)# network 192.168.1.0 0.0.0.255 area 1 Hyderabad(config-router)# network 10.0.0.0 0.255.255.255 area 1 Hyderabad(config-router)# ^Z Hyderabad# show ip route Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP i- IS-IS, L1-IS-IS level-1, L2-IS-IS level-2,*- candidate default U - per-user static route, o - ODR Gateway of last resort is not set C 10.0.0.0/8 is directly connected, Serial0 O IA 11.0.0.0/8 [110/128] via 10.0.0.2, 00:01:03, Serial0 C 192.168.1.0/24 is directly connected, Ethernet0 O IAO IA – for OSPF [110/74] via ofOSPF 192.168.2.0/24 110 isnothing OSPF Metric 10.0.0.2, 00:01:03, Serial0 O IA – for OSPF 110 isMetricof but nothing but Administrative Distance O IAInterArea routes [110/138] via 10.0.0.2, 00:00:13, Serial0 192.168.3.0/24 Inter Area routes Cost Administrative Distance Cost Hyderabad# 6
  7. 7. Hyderabad# show ip ospf database OSPF Router with ID (192.168.1.150) (Process ID 1) Router Link States (Area 1) Link ID 192.168.1.150 192.168.2.150 ADV Router 192.168.1.150 192.168.2.150 Age 272 273 Seq# Checksum Link 0x80000003 0xA163 3 0x80000002 0xBACC 2 Summary Net Link States (Area 1) Link ID 11.0.0.0 192.168.2.0 192.168.3.0 ADV Router 192.168.2.150 192.168.2.150 192.168.2.150 Age 273 273 208 Seq# 0x80000001 0x80000001 0x80000001 Checksum 0xDA15 0x8441 0xFB88 Hyderabad# show ip ospf neighbor Neighbor ID 192.168.2.150 Hyderabad# Pri 1 State FULL/ - Dead Time 00:00:32 Address 10.0.0.2 7
  8. 8. Microsoft Windows 2000 [Version 5.00.2195] (C) Copyright 1985-2000 Microsoft Corp. C:> telnet 192.168.2.150 Connecting ..... ================================ Welcome to Chennai Router ================================ User Access Verification password : **** Directly Connected Networks on Chennai> enable Directly Connected Networks on CHENNAI Router password : **** CHENNAI Router Chennai# configure terminal 192.168.2.0 192.168.2.0 Enter configuration commands, one per line. End with CNTL/Z. 10.0.0.0 10.0.0.0 Chennai(config)# interface serial 1 11.0.0.0 11.0.0.0 Chennai(config-if)# ip address 10.0.0.2 255.0.0.0 Chennai(config-if)# no shut Chennai(config-if)# encapsulation hdlc Chennai(config-if)# interface serial 0 Chennai(config-if)# ip address 11.0.0.1 255.0.0.0 Chennai(config-if)# no shut Chennai(config-if)# encapsulation hdlc 8
  9. 9. Chennai(config)# no ip routing Chennai(config)# ip routing Chennai(config)# router ospf 2 Chennai(config-router)# network 192.168.2.0 0.0.0.255 area 0 Chennai(config-router)# network 10.0.0.0 0.255.255.255 area 1 Chennai(config-router)# network 11.0.0.0 0.255.255.255 area 2 Configuring OSPF Configuring OSPF Chennai(config-router)# Router(config)# router ospf <pid> Router(config)# router ospf <pid> Router(config-router)# network <Network ID> Router(config-router)# network <Network ID> <wildcard mask> area <area id> <wildcard mask> area <area id> 9
  10. 10. Chennai(config)# no ip routing Chennai(config)# ip routing Chennai(config)# router ospf 2 Chennai(config-router)# network 192.168.2.0 0.0.0.255 area 0 Chennai(config-router)# network 10.0.0.0 0.255.255.255 area 1 Chennai(config-router)# network 11.0.0.0 0.255.255.255 area 2 Chennai(config-router)# ^Z Chennai# show ip route Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP i- IS-IS, L1-IS-IS level-1, L2-IS-IS level-2,*- candidate default U - per-user static route, o - ODR Gateway of last resort is not set C 10.0.0.0/8 is directly connected, Serial1 C 11.0.0.0/8 is directly connected, Serial0 O 192.168.1.0/24 [110/74] via 10.0.0.1, 00:01:04, Serial1 C 192.168.2.0/24 is directly connected, Ethernet0 O 192.168.3.0/24 [110/74] isMetricof OSPF 00:00:09, Serial0 Metric of OSPF 110 isnothing but 110 via 11.0.0.2, nothing but O – for OSPF routes O – for OSPF routes Administrative Distance Chennai# Cost Administrative Distance 10 Cost
  11. 11. Chennai# show ip ospf database OSPF Router with ID (192.168.2.150) (Process ID 2) Router Link States (Area 0) Link ID 192.168.2.150 ADV Router 192.168.2.150 Age 472 Seq# Checksum Link 0x80000002 0xEFC7 1 Summary Net Link States (Area 0) Link ID 10.0.0.0 11.0.0.0 192.168.1.0 192.168.3.0 ADV Router 192.168.2.150 192.168.2.150 192.168.2.150 192.168.2.150 Age 462 472 452 396 Seq# 0x80000001 0x80000001 0x80000001 0x80000001 Checksum 0xE709 0xDA15 0x1274 0xFB88 Router Link States (Area 1) Link ID 192.168.1.150 192.168.2.150 --More—- ADV Router 192.168.1.150 192.168.2.150 Age 463 462 Seq# Checksum Link 0x80000003 0xA163 3 0x80000002 0xBACC 2 11
  12. 12. Summary Net Link States (Area 1) Link ID 11.0.0.0 192.168.2.0 192.168.3.0 ADV Router 192.168.2.150 192.168.2.150 192.168.2.150 Age 462 465 400 Seq# 0x80000001 0x80000001 0x80000001 Checksum 0xDA15 0x8441 0xFB88 Router Link States (Area 2) Link ID 192.168.2.150 192.168.3.150 ADV Router 192.168.2.150 192.168.3.150 Age 415 416 Seq# Checksum Link 0x80000003 0xDAA8 2 0x80000003 0xD328 3 Summary Net Link States (Area 2) Link ID 10.0.0.0 192.168.1.0 192.168.2.0 ADV Router 192.168.2.150 192.168.2.150 192.168.2.150 Chennai# show ip ospf Neighbor ID Pri 192.168.3.150 1 192.168.1.150 1 Chennai# neighbor State FULL/ FULL/ - Age 465 455 475 Seq# 0x80000001 0x80000001 0x80000001 Dead Time 00:00:35 00:00:32 Checksum 0xE709 0x1274 0x8441 Address 11.0.0.2 10.0.0.1 12
  13. 13. Microsoft Windows 2000 [Version 5.00.2195] (C) Copyright 1985-2000 Microsoft Corp. C:> telnet 192.168.3.150 Connecting ..... ================================ Welcome to Banglore Router ================================ User Access Verification password : **** Directly Connected Networks on Banglore> enableDirectly Connected Networks on Banglore Router password : **** Banglore Router Banglore# configure terminal 192.168.3.0 192.168.3.0 Enter configuration commands, one per line. End with CNTL/Z. 11.0.0.0 11.0.0.0 Banglore(config)# interface serial 1 Banglore(config-if)# ip address 11.0.0.2 255.0.0.0 Banglore(config-if)# no shut Banglore(config-if)# clockrate 64000 Banglore(config-if)# encapsulation hdlc Banglore(config-if)# exit Banglore(config)# 13
  14. 14. Banglore(config)# no ip routing Banglore(config)# ip routing Banglore(config)# router ospf 1 Banglore(config-router)# network 192.168.3.0 0.0.0.255 area 2 Banglore(config-router)# network 11.0.0.0 0.255.255.255 area 2 Banglore(config-router)# Configuring OSPF Configuring OSPF Router(config)# router ospf <pid> Router(config)# router ospf <pid> Router(config-router)# network <Network ID> Router(config-router)# network <Network ID> <wildcard mask> area <area id> <wildcard mask> area <area id> 14
  15. 15. Banglore(config)# no ip routing Banglore(config)# ip routing Banglore(config)# router ospf 1 Banglore(config-router)# network 192.168.3.0 0.0.0.255 area 2 Banglore(config-router)# network 11.0.0.0 0.255.255.255 area 2 Banglore(config-router)# ^Z Banglore# show ip route Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP i- IS-IS, L1-IS-IS level-1, L2-IS-IS level-2,*- candidate default U - per-user static route, o - ODR Gateway of last resort is not set O IA 10.0.0.0/8 [110/128] via 11.0.0.1, 00:02:26, Serial1 C 11.0.0.0/8 is directly connected, Serial1 O IAO IA – for OSPF [110/138] via OSPF 192.168.1.0/24 Metric of 11.0.0.1, 00:02:26, Serial1 O IA – for OSPF 110 isMetricof but 110 isnothing OSPF nothing but O IA 192.168.2.0/24 [110/74] viaDistance Administrative Distance 00:02:26, Serial1 Inter Area routes Cost Administrative 11.0.0.1, Inter Area routes Cost C 192.168.3.0/24 is directly connected, Ethernet0 Banglore# 15
  16. 16. Banglore# show ip ospf database OSPF Router with ID (192.168.3.150) (Process ID 1) Router Link States (Area 2) Link ID 192.168.2.150 192.168.3.150 ADV Router 192.168.2.150 192.168.3.150 Age 935 934 Seq# Checksum Link 0x80000003 0xDAA8 2 0x80000003 0xD328 3 Summary Net Link States (Area 2) Link ID 10.0.0.0 192.168.1.0 192.168.2.0 ADV Router 192.168.2.150 192.168.2.150 192.168.2.150 Age 985 975 995 Seq# 0x80000001 0x80000001 0x80000001 Checksum 0xE709 0x1274 0x8441 Banglore# show ip ospf neighbor Neighbor ID 192.168.2.150 Banglore# Pri 1 State FULL/ - Dead Time 00:00:36 Address 11.0.0.1 16
  17. 17. Hyderabad# ping 192.168.3.1 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 192.168.3.1, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 40/43/44 ms Hyderabad# ping 192.168.2.1 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 192.168.2.1, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 40/43/44 ms Hyderabad# 17
  18. 18. Chennai# ping 192.168.1.1 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 192.168.1.1, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 40/43/44 ms Chennai# ping 192.168.3.1 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 192.168.3.1, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 40/43/44 ms Chennai# 18
  19. 19. Banglore# ping 192.168.1.1 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 192.168.1.1, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 40/43/44 ms Banglore# ping 192.168.2.1 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 192.168.2.1, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 40/43/44 ms Banglore# 19

×