Difference between revisions of "OSPF Cisco IOS"

From Teknologisk videncenter
Jump to: navigation, search
Line 1: Line 1:
 
[[Category:IOS]]
 
[[Category:IOS]]
 
__TOC__
 
__TOC__
== Cisco implementation of OSPF ==
 
  
=== Single Area configuration ===
+
== Single Area configuration ==
 +
=== Example 1 ===
 
[[image:OPSF network 1.png|thumb|500px|left]]
 
[[image:OPSF network 1.png|thumb|500px|left]]
 +
 +
<source lang="text">
 +
==== R1 config ====
 +
hostname R1
 +
!
 +
interface fastethernet 0/0
 +
  ip address 192.168.0.1 255.255.255.0
 +
!
 +
interface fastethernet 0/1
 +
  ip address 10.0.1.1 255.255.255.0
 +
!
 +
router ospf 88
 +
  network 192.168.0.0 0.0.0.255
 +
  network 10.0.1.0 0.0.0.255
 +
</source>
 +
==== R2 config ====
 +
<source lang="text">
 +
hostname R2
 +
!
 +
interface fastethernet 0/0
 +
  ip address 192.168.0.2 255.255.255.0
 +
!
 +
interface fastethernet 0/1
 +
  ip address 10.0.2.1 255.255.255.0
 +
!
 +
router ospf 77
 +
  network 192.168.0.0 0.0.0.255
 +
  network 10.0.2.0 0.0.0.255
 +
</source>
 +
==== R3 config ====

Revision as of 07:51, 10 February 2009

Single Area configuration

Example 1

OPSF network 1.png
==== R1 config ====
hostname R1
!
interface fastethernet 0/0
  ip address 192.168.0.1 255.255.255.0
!
interface fastethernet 0/1
  ip address 10.0.1.1 255.255.255.0
!
router ospf 88
  network 192.168.0.0 0.0.0.255
  network 10.0.1.0 0.0.0.255

R2 config

hostname R2
!
interface fastethernet 0/0
  ip address 192.168.0.2 255.255.255.0
!
interface fastethernet 0/1
  ip address 10.0.2.1 255.255.255.0
!
router ospf 77
  network 192.168.0.0 0.0.0.255
  network 10.0.2.0 0.0.0.255

R3 config