We can use the keyword exact here----> route-filter 10.16.15.0/24 exact. This would match the prefix 10.16.15.0/24.
Original Message:
Sent: 05-19-2024 03:11
From: FARID AKHUNDOV
Subject: OSPF redistribution
Hi,
So, the correct way would be something like
set groups top policy-options policy-statement ospf-export term 1 from protocol direct route-filter 10.16.15.0/24 prefix-length-range /24-/24set groups top policy-options policy-statement ospf-export term 1 from protocol direct route-filter 192.16.15.0/24 prefix-length-range /24-/24set groups top policy-options policy-statement ospf-export term 1 from protocol direct route-filter 10.10.15.0/24 prefix-length-range /24-/24set groups top policy-options policy-statement ospf-export term 1 then accept
------------------------------
FARID AKHUNDOV
Original Message:
Sent: 05-18-2024 13:31
From: MOHAMMAD ALI
Subject: OSPF redistribution
Thank you both for your help, makes sense.
So I have this sample code and looks like between the commands I posted and what y'all posted I can accomplish most of it.
router ospf 1
router-id 10.30.15.254
log-adjacency-changes detail
auto-cost reference-bandwidth 40000
redistribute connected subnets route-map VLAN_TO_OSPF_RM
network 10.30.15.254 0.0.0.0 area 0
network 10.10.15.254 0.0.0.0 area 0
!
ip access-list standard OSPF_ACL
permit 10.16.15.0 0.0.0.255
permit 192.16.15.0 0.0.0.255
permit 10.10.15.0 0.0.0.255
!
route-map OSPF_RM permit 10
match ip address OSPF_ACL
For the Route Maps and Route Map ACL would I need to do something like this?
set groups top policy-options route-filter-list OSPF_RM 10.16.15.0 addres-mask 255.255.255.0 accept
set groups top policy-options route-filter-list OSPF_RM 192.16.15.0 addres-mask 255.255.255.0 accept
set groups top policy-options route-filter-list OSPF_RM 10.10.15.0 addres-mask 255.255.255.0 accept
set groups top policy-options policy-statement ospf-export term 1 from protocol direct route-filter-list OSPF_RM
set groups top policy-options policy-statement ospf-export term 1 then accept
set groups top protocols ospf export ospf-export
OR
set groups top policy-options policy-statement ospf-export term 1 from protocol direct route-filter 10.16.15.0 address-mask 255.255.255.0
set groups top policy-options policy-statement ospf-export term 1 from protocol direct route-filter 192.16.15.0 address-mask 255.255.255.0
set groups top policy-options policy-statement ospf-export term 1 from protocol direct route-filter 10.10.15.0 address-mask 255.255.255.0
set groups top policy-options policy-statement ospf-export term 1 then accept
set groups top protocols ospf export ospf-export
------------------------------
MOHAMMAD ALI
Original Message:
Sent: 05-18-2024 03:00
From: FARID AKHUNDOV
Subject: OSPF redistribution
In addition to previous comment, considering that groups are being used, something below can be configured
set groups top policy-options policy-statement ospf-export term 1 from protocol directset groups top policy-options policy-statement ospf-export term 1 then acceptset groups top protocols ospf export ospf-export
------------------------------
FARID AKHUNDOV
Original Message:
Sent: 05-11-2024 22:53
From: MOHAMMAD ALI
Subject: OSPF redistribution
I have a scenario to connect an EX4100 to a Cisco switch via trunk link. EX4100 basic OSPF config that Mist allows is already already configured and this is how it shows up in the CLI.
"set groups top routing-options router-id 10.3.15.1", "set groups top interfaces lo0 unit 0 family inet address 10.3.15.1/32", "set groups top interfaces lo0 unit 0 family inet filter input protect_re", "set groups top protocols ospf reference-bandwidth 40000", "set groups top protocols ospf area 0 interface lo0.0 passive",
How do I add the redistribute commands with a route-map into Juniper? I tried doing
set protocols ospf area 0.0.0.1 redistribute connected route-map ospf_routemap
But this gives me an error.
------------------------------
MOHAMMAD ALI
------------------------------