Thank you. It worked.
Original Message:
Sent: 06-12-2023 05:47
From: spuluka
Subject: Default route
The static discard routes would need to be created on any routing instance what need to originate the default route to a neighbor.
For example, if you have a typical hub and spoke it would be the two routers at the hub site distributing this to all the remote ones.
------------------------------
Steve Puluka BSEET - Juniper Ambassador
IP Architect - DQE Communications Pittsburgh, PA (Metro Ethernet & ISP - Retired)
http://puluka.com/home
Original Message:
Sent: 06-12-2023 05:42
From: Petr Nemg
Subject: Default route
Thank you,
I will use your solution.
I have one additional question. Should I do this on all routers within the VPN or just two?
The VPN have many sites. Each site has two routers. I need to pass the traffic to a different network.
------------------------------
Petr Nemg
Original Message:
Sent: 06-10-2023 07:51
From: spuluka
Subject: Default route
A route has to exist for BGP to advertise it to a neighbor.
You could create a static discard route for this purpose so it would not be used to forward traffic
set routing-options static route 0.0.0.0/0 discard
This could also be inside a routing instance if that is how your vpn is setup.
set routing-instance VPN_instance routing-options static route 0.0.0.0/0 discard
------------------------------
Steve Puluka BSEET - Juniper Ambassador
IP Architect - DQE Communications Pittsburgh, PA (Metro Ethernet & ISP - Retired)
http://puluka.com/home
Original Message:
Sent: 06-09-2023 08:15
From: Petr Nemg
Subject: Default route
Hello,
I would like to advertise a default route from Juniper MX to Cisco N7k in BGP in VPN x. Currently, the VPN does not have a default route. I don't want Juniper's VPN routing table to contain a default route, just to advertise it.
I have the config to advertise the route, but since there is no default route in the VPN routing table, nothing gets advertised.
Do you know how to fix it?
Thanks
Petr
------------------------------
Petr Nemg
------------------------------