04-03-2020 10:43 AM
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)
Solved! Go to Solution.
04-03-2020 11:02 AM - edited 04-03-2020 11:04 AM
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
04-03-2020 12:33 PM
Try this:
router eigrp 1 address-family ipv4 default-metric bandwidth delay reliability loading mtu
04-06-2020 11:27 PM
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
04-06-2020 11:40 PM
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
04-03-2020 11:02 AM - edited 04-03-2020 11:04 AM
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
04-03-2020 11:34 AM - edited 04-03-2020 11:39 AM
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
04-03-2020 12:33 PM
Try this:
router eigrp 1 address-family ipv4 default-metric bandwidth delay reliability loading mtu
04-04-2020 05:12 AM - edited 04-08-2020 08:11 AM
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.
04-06-2020 05:05 PM
04-06-2020 11:27 PM
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
04-06-2020 11:40 PM
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
04-08-2020 08:14 AM
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.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide