cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1458
Views
30
Helpful
8
Replies

Route Redistribution between EIGRP and OSPF on IOS XRv not working

CiscoBrownBelt
Level 6
Level 6

Doing a lab in VIRL and I am new to IOS XRv.

 

When viewing routes I see OSPF routers learn of EIGRP routes on all OSPF routers but not vice versa.

I have very basic configs for now on the router that is running both protocols the redistribute between EIGRP and OSPF routers.

Here is the config.

 

router ospf LAB
redistribute eigrp 1 match internal
area 0.0.0.0
interface Loopback0
!
interface GigabitEthernet0/0/0/0
!
interface GigabitEthernet0/0/0/1
!
!
!
router eigrp 1
address-family ipv4
router-id 6.6.6.6
redistribute ospf LAB
interface Loopback0
!
interface GigabitEthernet0/0/0/2 (interface that connects to EIGRP routers)

 

4 Accepted Solutions

Accepted Solutions

Hello

When you perform redistribution between different routing domains the prefixes that are redistributed need to be understood by that routing process own metrics they won’t be accepted ohterwise, In your configuration eigrp is redistribuitng ospf without any eigrp metric value appended and ospf is redistributing only eigrp classful subnets, try the following example:

router ospf LAB
redistribute eigrp 1 subnets match internal

router eigrp 1
address-family ipv4
router-id 6.6.6.6
redistribute ospf LAB metric 1 1 1 1 1


Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the community’s global network.

Kind Regards
Paul

View solution in original post

Here is working piece of config:

 

RP/0/0/CPU0:iosxrv-2#sh run router ospf 1
Tue Apr  7 06:00:01.136 UTC
router ospf 1
 redistribute eigrp 1
 area 0
  interface GigabitEthernet0/0/0/0
  !
 !
!

RP/0/0/CPU0:iosxrv-2#sh run router eigrp 1
Tue Apr  7 06:00:05.676 UTC
router eigrp 1
 address-family ipv4
  default-metric 10000 100 255 1 1500
  redistribute ospf 1
  interface GigabitEthernet0/0/0/1
  !
 !

It has been tested in a VIRL

 

Best regards,
Abzal

View solution in original post

Hello @CiscoBrownBelt ,

in IOS XR the route policies written with RPL take the place of route-maps in IOS, IOS XE redistribution commands.

 

What @Cristian Matei was intending is this. The subnets keyword is likely not needed in IOS XR and if it were needed the point of application of the command would be a route policy, later invoked by the redistribute command in the OSPF routing process.

 

Hope to help

Giuseppe

 

View solution in original post

8 Replies 8

Hello

When you perform redistribution between different routing domains the prefixes that are redistributed need to be understood by that routing process own metrics they won’t be accepted ohterwise, In your configuration eigrp is redistribuitng ospf without any eigrp metric value appended and ospf is redistributing only eigrp classful subnets, try the following example:

router ospf LAB
redistribute eigrp 1 subnets match internal

router eigrp 1
address-family ipv4
router-id 6.6.6.6
redistribute ospf LAB metric 1 1 1 1 1


Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the community’s global network.

Kind Regards
Paul

Not sure if it is because it is a VIRL IOSXRv but I don't have those options and not sure what to configure.
This is what I have:
RP/0/0/CPU0:PE-R6(config)#router ospf LAB
RP/0/0/CPU0:PE-R6(config-ospf)#redistribute eigrp 1 ?
lsa-type LSA type for redistributed routes
match Redistribution of EIGRP routes
metric Metric for redistributed routes
metric-type OSPF exterior metric type for redistributed routes
nssa-only Redistribute to NSSA areas only
route-policy Apply route-policy to redistribution
tag Set tag for routes redistributed into OSPF

And for OSPF:
RP/0/0/CPU0:PE-R6(config)#router eigrp 1
RP/0/0/CPU0:PE-R6(config-eigrp)#address-family ipv
ipv4 ipv6
RP/0/0/CPU0:PE-R6(config-eigrp)#address-family ipv4
RP/0/0/CPU0:PE-R6(config-eigrp-af)#redistribute ospf LAB ?
route-policy Filter using an RPL policy




Try this:

router eigrp 1
address-family ipv4
default-metric bandwidth delay reliability loading mtu 

source: https://www.cisco.com/c/en/us/td/docs/routers/xr12000/software/xr12k_r4-1/routing/configuration/guide/b_routing_cg41xr12k/b_routing_cg41xr12k_chapter_010.html#task_1015452

 

Best regards,
Abzal

Hi,

 

    The "subnets" keyword is included. As for setting the EIGRP metric, you define it in a "route-policy" using the "set eigrp-metric" command, and you call the route-policy when you perform OSPF redistribution into EIGRP.

 

Regards,

Cristian Matei.

I am not sure what you mean here "The "subnets" keyword in included. " did you have a typo? "Subnets is not included as an option after "redistribute eigrp 1". Did you mean after some other syntex?

Here is working piece of config:

 

RP/0/0/CPU0:iosxrv-2#sh run router ospf 1
Tue Apr  7 06:00:01.136 UTC
router ospf 1
 redistribute eigrp 1
 area 0
  interface GigabitEthernet0/0/0/0
  !
 !
!

RP/0/0/CPU0:iosxrv-2#sh run router eigrp 1
Tue Apr  7 06:00:05.676 UTC
router eigrp 1
 address-family ipv4
  default-metric 10000 100 255 1 1500
  redistribute ospf 1
  interface GigabitEthernet0/0/0/1
  !
 !

It has been tested in a VIRL

 

Best regards,
Abzal

Hello @CiscoBrownBelt ,

in IOS XR the route policies written with RPL take the place of route-maps in IOS, IOS XE redistribution commands.

 

What @Cristian Matei was intending is this. The subnets keyword is likely not needed in IOS XR and if it were needed the point of application of the command would be a route policy, later invoked by the redistribute command in the OSPF routing process.

 

Hope to help

Giuseppe

 

Hi,

 

   I mean there is no need to configure the "subnets" keyword when you perform OSPF redistribution, as the option is not even available.

 

Regards,

Cristian Matei.