ospf點對點

目標:

  在R1和R2之間的幀中繼網絡中配置OSPF,網絡類型爲point-to-point,實現VLAN A和VLAN B的互通。

  
 

  配置指南:

  • 在R1上配置接口Ethernet0/0地址爲1.0.0.1/8

  • 在R2上配置接口Ethernet0/0地址爲 2.0.0.2/8

  • 在R1上配置接口Seria0/0地址爲10.0.0.1/8

  • 在R2上配置接口Seria0/0地址爲10.0.0.2/8

  • 使用靜態三層和二層解析來配置R1和R2之間幀中繼鏈路

  • 確保鏈路支持廣播和多播數據包傳遞

  • 在R1和R2的Serial接口上配置OSPF網絡類型爲point-to-point

  • 配置R1和R2中所有接口加入area 0

  自我提問:

  • 在多點的幀中繼接口上缺省的OSPF網絡類型是什麼?

  • point-to-point網絡類型和其他網絡類型有什麼不同?

  • hello包是單播還是組播發送?

  • 支持DR/BDR 選舉嗎?爲什麼?

  最終配置和驗證:

  R1:

  interface Ethernet0/0

  ip address 1.0.0.1 255.0.0.0

  !

  interface Serial0/0

  ip address 10.0.0.1 255.0.0.0

  encapsulation frame-relay

  ip ospf network point-to-point

  frame-relay map ip 10.0.0.2 102 broadcast

  !

  router ospf 1

  network 0.0.0.0 255.255.255.255 area 0

  R2:

  interface Ethernet0/0

  ip address 2.0.0.2 255.0.0.0

  !

  interface Serial0/0

  ip address 10.0.0.2 255.0.0.0

  encapsulation frame-relay

  ip ospf network point-to-point

  frame-relay map ip 10.0.0.1 201 broadcast

  !

  router ospf 1

  network 0.0.0.0 255.255.255.255 area 0

  R1#show ip ospf neighbor

  Neighbor ID Pri State Dead Time Address Interface

  10.0.0.2 1 FULL/ - 00:00:33 10.0.0.2 Serial0/0

  R2#show ip ospf neighbor

  Neighbor ID Pri State Dead Time Address Interface

  10.0.0.1 1 FULL/ - 00:00:29 10.0.0.1 Serial0/0

  R2#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, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2

  ia - IS-IS inter area, * - candidate default, U - per-user static route

  o - ODR, P - periodic downloaded static route

  Gateway of last resort is not set

  O 1.0.0.0/8 [110/74] via 10.0.0.1, 00:01:08, Serial0

  C 2.0.0.0/8 is directly connected, Ethernet0

  C 10.0.0.0/8 is directly connected, Serial0

  R1#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, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2

  ia - IS-IS inter area, * - candidate default, U - per-user static route

  o - ODR, P - periodic downloaded static route

  Gateway of last resort is not set

  C 1.0.0.0/8 is directly connected, Ethernet0

  O 2.0.0.0/8 [110/74] via 10.0.0.2, 00:00:10, Serial0

  C 10.0.0.0/8 is directly connected, Serial0

  R1#

  註解:

  point-to-point 使用組播傳送,不支持DR/BDR 選舉,是點到點NBMA媒介類似ISDN和點到點子接口等的缺省網絡類型。由於使用組播傳遞,所以在frame-relay map命令中要加上broadcast選項。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章