Single-Area OSPF: Unterschied zwischen den Versionen

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen
(Der Seiteninhalt wurde durch einen anderen Text ersetzt: „=Setup= {{#drawio:cisco-ospf-1}} *Cisco OSPF IP Konfiguration *Cisco OSPF Konfiguration“)
Markierung: Ersetzt
Zeile 2: Zeile 2:
 
{{#drawio:cisco-ospf-1}}
 
{{#drawio:cisco-ospf-1}}
 
*[[Cisco OSPF IP Konfiguration]]
 
*[[Cisco OSPF IP Konfiguration]]
 
+
*[[Cisco OSPF Konfiguration]]
=OSPF Konfiguration=
 
==R1==
 
router ospf 1
 
  network 10.1.0.0 0.0.0.255 area 50
 
  network 172.16.0.0 0.0.0.255 area 50
 
==R2==
 
router ospf 1
 
  network 10.2.0.0 0.0.0.255 area 50
 
  network 172.16.0.0 0.0.0.255 area 50
 
==R3==
 
router ospf 1
 
  network 10.3.0.0 0.0.0.255 area 50
 
  network 172.16.0.0 0.0.0.255 area 50
 
=OSPF Überprüfen=
 
==R1==
 
===OSPF Neighbor===
 
*show ip ospf neighbor
 
<pre>
 
Neighbor ID    Pri  State          Dead Time  Address        Interface
 
172.16.0.2        1  FULL/BDR        00:00:38    172.16.0.2      FastEthernet1/0
 
172.16.0.3        1  FULL/DR        00:00:36    172.16.0.3      FastEthernet1/0
 
</pre>
 
===ip route===
 
*show ip route
 
<pre>
 
Codes: C - connected, S - static, 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
 
      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
 
 
 
    172.16.0.0/24 is subnetted, 1 subnets
 
C      172.16.0.0 is directly connected, FastEthernet1/0
 
    10.0.0.0/24 is subnetted, 3 subnets
 
O      10.2.0.0 [110/2] via 172.16.0.2, 00:16:55, FastEthernet1/0
 
O      10.3.0.0 [110/2] via 172.16.0.3, 00:16:55, FastEthernet1/0
 
C      10.1.0.0 is directly connected, FastEthernet0/0
 
</pre>
 
===OSPF debug===
 
*debug ip ospf events
 
<pre>
 
OSPF events debugging is on
 
*Nov  4 15:17:01.763: OSPF: Send hello to 224.0.0.5 area 50 on FastEthernet1/0 from 172.16.0.1
 
*Nov  4 15:17:05.879: OSPF: Rcv hello from 172.16.0.3 area 50 from FastEthernet1/0 172.16.0.3
 
*Nov  4 15:17:05.879: OSPF: End of hello processing
 
*Nov  4 15:17:06.663: OSPF: Rcv hello from 172.16.0.2 area 50 from FastEthernet1/0 172.16.0.2
 
*Nov  4 15:17:06.663: OSPF: End of hello processing
 
</pre>
 
=Quellen=
 
*https://sid-500.com/2017/05/13/single-area-ospf-konfigurieren-ipv4/
 

Version vom 3. Februar 2023, 10:35 Uhr