Tuesday, June 5, 2012

Basic OSPF Configuration based on IOS and IOS XR

In this tutorial we will look how we can configure OSPF on IOS and IOS XR.  In above diagram R1 is running IOS and XR1 is running IOS XR. IP addressing is shown in the figure. 

Step 1:  Assigning IP addresses

R1
 interface loopback1
ip address 10.1.1.1 255.255.255.0
!
interface loopback11
ip address 10.1.11.1 255.255.255.0
!
interface fastEthernet0/0
ip address 10.10.12.1 255.255.255.0
ip ospf bfd
bfd interval 250 min_rx 250 multiplier 3
ip ospf network point-to-point
no shutdown
!
XR1
 interface loopback1
ipv4 address 10.11.1.1 255.255.255.0
!
interface loopback11
ipv4 address 10.11.11.1 255.255.255.0
!
interface  GigabitEthernet0/1/0/0
ipv4 address 10.10.12.2 255.255.255.0
!

Step 2:  Configuring OSPF

R1
!
router ospf 1
router-id 1.1.1.1
network 10.1.1.1 0.0.0.0 area 0
network 10.1.11.1 0.0.0.0 area 0
network 10.10.12.1 0.0.0.0 area 0
!

XR1
router ospf 1
router-id 11.11.11.11
area 0
interface loopback1
!
interface loopback11
!
interface GigabitEthernet0/1/0/0
 network point-to-point 

!
interface GigabitEthernet0/1/0/1
 cost 100

bfd minimum-interval 250
bfd fast-detect
bfd multiplier 3
!

Step 3:  Verification Commands 

R1# show ip ospf neighbor
R1# show ip ospf database
R1# show ip router ospf
R1# show ip ospf interface FastEthernet0/0
R1# show ip ospf interface | include line protocol|Cost: 
R1# show bfd neighbors details 
XR1# show ospf neighbor
XR1# show ospf database
XR1# show ospf route
XR1# show ospf interface GigabitEthernet0/1/0/0
XR1# show ospf interface | include "line protocol|Cost:" 
XR1# show bfd ipv4 session detial

No comments:

Post a Comment