OSPF: Difference between revisions
Content added Content deleted
Line 1,272: | Line 1,272: | ||
*You should be able to ping every router in OSPF Routing Table (configure virtual link for area 78) |
*You should be able to ping every router in OSPF Routing Table (configure virtual link for area 78) |
||
=== |
=== Configurations === |
||
;R1 config: |
|||
<pre> |
|||
! |
|||
interface Ethernet0/0 |
|||
ip address 10.100.1.1 255.255.255.0 |
|||
ip ospf authentication message-digest |
|||
ip ospf message-digest-key 1 md5 cisco |
|||
half-duplex |
|||
! |
|||
! |
|||
router ospf 1 |
|||
router-id 1.1.1.1 |
|||
log-adjacency-changes |
|||
redistribute static metric 50 metric-type 1 subnets |
|||
passive-interface default |
|||
no passive-interface Ethernet0/0 |
|||
network 10.100.1.1 0.0.0.0 area 0 |
|||
! |
|||
ip route 172.31.0.0 255.255.255.0 Null0 |
|||
ip route 172.31.1.0 255.255.255.0 Null0 |
|||
ip route 172.31.2.0 255.255.255.0 Null0 |
|||
ip route 172.31.3.0 255.255.255.0 Null0 |
|||
! |
|||
</pre> |
|||
;R2 config: |
|||
<pre> |
|||
! |
|||
interface Ethernet0/0 |
|||
ip address 10.100.1.2 255.255.255.0 |
|||
ip ospf authentication message-digest |
|||
ip ospf message-digest-key 1 md5 cisco |
|||
half-duplex |
|||
! |
|||
interface Serial1/0 |
|||
ip address 10.23.1.2 255.255.255.0 |
|||
ip ospf authentication |
|||
ip ospf authentication-key cisco |
|||
serial restart-delay 0 |
|||
! |
|||
router ospf 1 |
|||
router-id 2.2.2.2 |
|||
log-adjacency-changes |
|||
area 23 stub no-summary |
|||
area 23 default-cost 100 |
|||
network 10.23.1.2 0.0.0.0 area 23 |
|||
network 10.100.1.2 0.0.0.0 area 0 |
|||
! |
|||
</pre> |
|||
;R3 config: |
|||
<pre> |
|||
! |
|||
interface Loopback0 |
|||
ip address 172.30.0.1 255.255.255.0 |
|||
! |
|||
interface Loopback1 |
|||
ip address 172.30.1.1 255.255.255.0 |
|||
! |
|||
interface Loopback2 |
|||
ip address 172.30.2.1 255.255.255.0 |
|||
! |
|||
interface Loopback3 |
|||
ip address 172.30.3.1 255.255.255.0 |
|||
! |
|||
! |
|||
interface Serial1/0 |
|||
ip address 10.23.1.3 255.255.255.0 |
|||
ip ospf authentication |
|||
ip ospf authentication-key cisco |
|||
serial restart-delay 0 |
|||
! |
|||
! |
|||
router ospf 1 |
|||
router-id 3.3.3.3 |
|||
log-adjacency-changes |
|||
area 23 stub |
|||
network 10.23.1.3 0.0.0.0 area 23 |
|||
network 172.30.0.0 0.0.255.255 area 23 |
|||
! |
|||
</pre> |
|||
;R4 config: |
|||
<pre> |
|||
! |
|||
interface Ethernet0/0 |
|||
ip address 10.100.1.4 255.255.255.0 |
|||
ip ospf authentication message-digest |
|||
ip ospf message-digest-key 1 md5 cisco |
|||
half-duplex |
|||
! |
|||
! |
|||
interface Serial1/0 |
|||
ip address 10.45.1.4 255.255.255.0 |
|||
serial restart-delay 0 |
|||
! |
|||
router ospf 1 |
|||
router-id 4.4.4.4 |
|||
log-adjacency-changes |
|||
area 45 stub |
|||
network 10.45.1.4 0.0.0.0 area 45 |
|||
network 10.100.1.4 0.0.0.0 area 0 |
|||
! |
|||
</pre> |
|||
;R5 config: |
|||
<pre> |
|||
! |
|||
interface Serial1/0 |
|||
ip address 10.45.1.5 255.255.255.0 |
|||
serial restart-delay 0 |
|||
! |
|||
! |
|||
router ospf 1 |
|||
router-id 5.5.5.5 |
|||
log-adjacency-changes |
|||
area 45 stub |
|||
network 10.45.1.5 0.0.0.0 area 45 |
|||
! |
|||
</pre> |
|||
;R6 config: |
|||
<pre> |
|||
! |
|||
interface Ethernet0/0 |
|||
ip address 10.100.1.6 255.255.255.0 |
|||
ip ospf authentication message-digest |
|||
ip ospf message-digest-key 1 md5 cisco |
|||
half-duplex |
|||
! |
|||
! |
|||
interface Serial1/0 |
|||
ip address 10.67.1.6 255.255.255.0 |
|||
serial restart-delay 0 |
|||
! |
|||
router ospf 1 |
|||
router-id 6.6.6.6 |
|||
log-adjacency-changes |
|||
area 67 virtual-link 7.7.7.7 |
|||
network 10.67.1.6 0.0.0.0 area 67 |
|||
network 10.100.1.6 0.0.0.0 area 0 |
|||
! |
|||
</pre> |
|||
;R7 config: |
|||
<pre> |
|||
! |
|||
interface Serial1/0 |
|||
ip address 10.67.1.7 255.255.255.0 |
|||
serial restart-delay 0 |
|||
! |
|||
interface Serial1/1 |
|||
ip address 10.78.1.7 255.255.255.0 |
|||
serial restart-delay 0 |
|||
! |
|||
! |
|||
router ospf 1 |
|||
router-id 7.7.7.7 |
|||
log-adjacency-changes |
|||
area 67 virtual-link 6.6.6.6 |
|||
network 10.67.1.7 0.0.0.0 area 67 |
|||
network 10.78.1.7 0.0.0.0 area 78 |
|||
! |
|||
</pre> |
|||
;R8 config: |
|||
<pre> |
|||
! |
|||
interface Serial1/1 |
|||
ip address 10.78.1.8 255.255.255.0 |
|||
serial restart-delay 0 |
|||
! |
|||
! |
|||
router ospf 1 |
|||
router-id 8.8.8.8 |
|||
log-adjacency-changes |
|||
network 10.78.1.8 0.0.0.0 area 78 |
|||
! |
|||
</pre> |
|||
=== Command Line Outputs === |
=== Command Line Outputs === |