cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
876
Views
2
Helpful
8
Replies

how do i adevertise directly connected route into ospf? (ON EVE-NG)

kbk989
Level 1
Level 1

So this is my topology-

kbk989_0-1743902398562.png

As you can see above, there are 2 9k nodes, 2 routers in between them and a switch on the bottom right.

Also ignore the vxlan stuff as im first trying to configure the underlay (routing).

The network between that switch (SwitchCorePassyunk) and the N9kPassyunk is 11.13.1.0/30 which i am not able to advertise into ospf onto the N9kPassyunk switch.

Eigrp 600 is runnning on the SwitchCorePassyunk.

Ospf 1 area 0 runnning on the 2 9ks and the 2 routers.

Config of the N9kPassyunk is as follows-

N9kPassyunk# show running-config

!Command: show running-config
!Running configuration last done at: Sun Apr 6 00:45:03 2025
!Time: Sun Apr 6 01:19:26 2025

version 9.3(15) Bios:version
hostname N9kPassyunk
vdc N9kPassyunk id 1
limit-resource vlan minimum 16 maximum 4094
limit-resource vrf minimum 2 maximum 4096
limit-resource port-channel minimum 0 maximum 511
limit-resource u4route-mem minimum 248 maximum 248
limit-resource u6route-mem minimum 96 maximum 96
limit-resource m4route-mem minimum 58 maximum 58
limit-resource m6route-mem minimum 8 maximum 8

feature ospf
feature pim
feature eigrp
feature vn-segment-vlan-based
feature nv overlay

no password strength-check
username admin password 5 $5$DPLLEP$mCpQCFK2JeXMYd9pnJoMUc/m/eWdg7w9hNXPH.yHYPA
role network-admin
no ip domain-lookup
vlan dot1Q tag native
copp profile strict
snmp-server user admin network-admin auth md5 3747CEC91FF195DD12608E6EC840936F02
43 priv 042ADFDE7BB5F3B02D4AAF34D250C0342E6D localizedV2key
rmon event 1 log trap public description FATAL(1) owner PMON@FATAL
rmon event 2 log trap public description CRITICAL(2) owner PMON@CRITICAL
rmon event 3 log trap public description ERROR(3) owner PMON@ERROR
rmon event 4 log trap public description WARNING(4) owner PMON@WARNING
rmon event 5 log trap public description INFORMATION(5) owner PMON@INFO

vlan 1,80,85
vlan 80
vn-segment 160080
vlan 85
vn-segment 160085

ip prefix-list REDISTRIBUTION1 seq 5 permit 192.168.45.0/24
ip prefix-list REDISTRIBUTION2 seq 6 permit 10.13.1.0/30
route-map EIGRP-TO-OSPF permit 10
match ip address prefix-list REDISTRIBUTION1 REDISTRIBUTION2
vrf context management


interface Ethernet1/1

interface Ethernet1/2
description Conncetion to Pass-Rt
no switchport
ip address 10.11.1.2/30
ip router ospf 1 area 0.0.0.0
no shutdown

interface Ethernet1/3
description Downlink to SwitchCorePassyunk
no switchport
ip address 10.13.1.1/30
ip router eigrp 600
no shutdown

interface mgmt0
vrf member management

interface loopback0
ip address 5.5.5.5/32
ip ospf network point-to-point
ip router ospf 1 area 0.0.0.0
icam monitor scale

cli alias name wr copy run start
line console
line vty
router eigrp 600
router ospf 1
router-id 5.5.5.5
redistribute eigrp 600 route-map EIGRP-TO-OSPF
log-adjacency-changes

Config on SwitchCorePassyunk is as follows-

SwitchCorePassyunk#show running-config
Building configuration...

Current configuration : 3337 bytes
!
! Last configuration change at 01:07:09 UTC Sun Apr 6 2025
!
version 15.2
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
service compress-config
!
hostname SwitchCorePassyunk
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
!
!
!
!
ip cef
no ipv6 cef
!
!
!
spanning-tree mode pvst
spanning-tree extend system-id
!
vlan internal allocation policy ascending
!
!
!
!
!
interface GigabitEthernet0/0
description Uplink to N9kPassyunk
no switchport
ip address 10.13.1.2 255.255.255.252
negotiation auto
!
interface GigabitEthernet0/1
shutdown
media-type rj45
negotiation auto
!
interface GigabitEthernet0/2
description Connection to Switch-1-Passyunk
switchport trunk allowed vlan 45,85
switchport trunk encapsulation dot1q
switchport mode trunk
media-type rj45
negotiation auto
!
interface Vlan45
ip address 192.168.45.1 255.255.255.0
!
!
router eigrp 600
network 10.13.1.0 0.0.0.3
network 192.168.45.0
!
ip forward-protocol nd
!
no ip http server
no ip http secure-server
!
!
!
!
control-plane
!
line con 0
line aux 0
line vty 0 4
!
!
end

As you can see above i already have the network 10.13.1.0/30 statement on eigrp.

Also if you look at the config on N9kPassyunk youll see the prefix-list statement where i include the 2 networks 192.168.45.0/24 and 10.13.1.0/30

192.168.45.0/24 shows on the routing table but not 10.13.1.0/30-

N9kPassyunk# show ip route
IP Route Table for VRF "default"
'*' denotes best ucast next-hop
'**' denotes best mcast next-hop
'[x/y]' denotes [preference/metric]
'%<string>' in via output denotes VRF <string>

4.4.4.4/32, ubest/mbest: 1/0
*via 10.11.1.1, Eth1/2, [110/43], 21:48:25, ospf-1, intra
5.5.5.5/32, ubest/mbest: 2/0, attached
*via 5.5.5.5, Lo0, [0/0], 21:54:24, local
*via 5.5.5.5, Lo0, [0/0], 21:54:24, direct
10.10.1.0/30, ubest/mbest: 1/0
*via 10.11.1.1, Eth1/2, [110/42], 21:48:25, ospf-1, intra
10.11.1.0/30, ubest/mbest: 1/0, attached
*via 10.11.1.2, Eth1/2, [0/0], 21:54:24, direct
10.11.1.2/32, ubest/mbest: 1/0, attached
*via 10.11.1.2, Eth1/2, [0/0], 21:54:24, local
10.12.1.0/30, ubest/mbest: 1/0
*via 10.11.1.1, Eth1/2, [110/41], 21:48:25, ospf-1, intra
10.13.1.0/30, ubest/mbest: 1/0, attached
*via 10.13.1.1, Eth1/3, [0/0], 20:32:15, direct
10.13.1.1/32, ubest/mbest: 1/0, attached
*via 10.13.1.1, Eth1/3, [0/0], 20:32:15, local
192.168.45.0/24, ubest/mbest: 1/0
*via 10.13.1.2, Eth1/3, [90/3072], 19:58:26, eigrp-600, internal

Since the 10.13.1.0/30 is not there as an eigrp route it doesnt show up on the 2 routers as well (MainRouter and Passyunk-Rt).

If i do a show ip route on say the Passyunk-Rt it doesnt show the 10.13.1.0/30 so i cant ping 192.168.45.0/24 subnet as well from here-

PassyunkRt#show ip route
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route, H - NHRP, l - LISP
a - application route
+ - replicated route, % - next hop override, p - overrides from PfR

Gateway of last resort is not set

4.0.0.0/32 is subnetted, 1 subnets
O 4.4.4.4 [110/3] via 10.12.1.1, 21:50:29, GigabitEthernet0/1
5.0.0.0/32 is subnetted, 1 subnets
O 5.5.5.5 [110/2] via 10.11.1.2, 21:50:19, GigabitEthernet0/0
10.0.0.0/8 is variably subnetted, 5 subnets, 2 masks
O 10.10.1.0/30 [110/2] via 10.12.1.1, 21:50:29, GigabitEthernet0/1
C 10.11.1.0/30 is directly connected, GigabitEthernet0/0
L 10.11.1.1/32 is directly connected, GigabitEthernet0/0
C 10.12.1.0/30 is directly connected, GigabitEthernet0/1
L 10.12.1.2/32 is directly connected, GigabitEthernet0/1
O E2 192.168.45.0/24 [110/20] via 10.11.1.2, 19:36:40, GigabitEthernet0/0

 

As you can see no 10.13.1.0/30 route shown above.

How do i introduce this route into ospf?

 

Thank You

 

1 Accepted Solution

Accepted Solutions

Harold Ritter
Spotlight
Spotlight

Hi @kbk989 ,

10.13.1.0/30 is not redistributed into ospf, as it is not installed as an eigrp route in the routing table of router N9kPassyunk. To inject this route into ospf you can either

1. redistribute the connected routes under ospf on N9kPassyunk

2. configure interface Ethernet1/3 in ospf by adding "ip router ospf 1 area 0.0.0.0" under that interface on N9kPassyunk.

Regards,
Harold Ritter, CCIE #4168 (EI, SP)

View solution in original post

8 Replies 8

pman
Spotlight
Spotlight

i think the 10.13.1.0/30 isn’t advertised into OSPF because it’s not learned via EIGRP and doesn’t match the redistribution route-map

for testing try this:

router eigrp 600
redistribute connected

or somthing like this:

ip prefix-list CONN-ONLY seq 5 permit 10.13.1.0/30
route-map CONN-TO-EIGRP permit 10
match ip address prefix-list CONN-ONLY

router eigrp 600
redistribute connected route-map CONN-TO-EIGRP

Ok I'm gonna try this and see if it works.

Harold Ritter
Spotlight
Spotlight

Hi @kbk989 ,

10.13.1.0/30 is not redistributed into ospf, as it is not installed as an eigrp route in the routing table of router N9kPassyunk. To inject this route into ospf you can either

1. redistribute the connected routes under ospf on N9kPassyunk

2. configure interface Ethernet1/3 in ospf by adding "ip router ospf 1 area 0.0.0.0" under that interface on N9kPassyunk.

Regards,
Harold Ritter, CCIE #4168 (EI, SP)

thank you i did the redistribute connected and it work, i do have another question though-

Im trying to advertise all routes that ospf has learnt into eigrp, created route maps with prefix lists with say 10.10.1.0/30, 10.13.1.0/30 and so on used the redistribute command under eigrp and it works.

But there are many routes under ospf

How do I advertise all of them at once? When I summarize and just do a 10.0.0.0/8 on the prefix list it doesn't work

Like I don't want to have to create multiple sequences under a prefix list with every single subnet on it.

 

Thank You

Hi @kbk989 ,

When I summarize and just do a 10.0.0.0/8 on the prefix list it doesn't work

If you want any ospf route belonging to 10.0.0.0/8 to be redistributed in eigrp, the prefix-list you use in the route-map would look like the following:

ip prefix-list ospf_to_eigrp seq 5 permit 10.0.0.0/8 le 32

This prefix-list would allow all ospf routes under 10.0.0.0/8 to be redistributed in eigrp, which is what you want, right? 

 

Regards,
Harold Ritter, CCIE #4168 (EI, SP)

Yes that is what I want, will try this today in the evening, thank you.

Thank you and yes that worked, i guess the "le 32" was important to add.

You are very welcome @kbk989 and thanks for the feedback

Yes, the "le 32" is key here, as the "permit 10.0.0.0/8" by itself only allows prefix 10.0.0.0/8 and nothing else.

Regards,
Harold Ritter, CCIE #4168 (EI, SP)