paloaltonetworks:configuration:ospf
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| paloaltonetworks:configuration:ospf [2020/05/27 14:38] – bstafford | paloaltonetworks:configuration:ospf [2022/11/23 12:49] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== OSPF ====== | ====== OSPF ====== | ||
| - | When you set the metric to 15 in '' | ||
| - | When a fireawll sets '' | + | ===== Show Routes Learned ===== |
| + | To see routes | ||
| + | <code>show routing protocol ospf lsdb</code> | ||
| + | Get general routing data with | ||
| + | < | ||
| + | |||
| + | **Oi** means ospf intra-area and is the subnet in which the virtual router has established OSPF peering relationships. If you have several /32 addresses in the same subnet as the larger /x on the interface, those /32 routes will also have Oi routes created with a metric of //x + 10// where x is the value set at | ||
| + | < | ||
| + | |||
| + | ===== Show Routes Exported ===== | ||
| + | To see what routes we are exporting to OSPF from all virtual routers, use the following command | ||
| + | < | ||
| + | |||
| + | To limit the output to a specific virutal router, use the following command | ||
| + | < | ||
| + | |||
| + | ===== OSPF Redistribution ===== | ||
| If you enable OSPF and export a redistribution profile that has the source type configured but no filters, all routes will be exported. | If you enable OSPF and export a redistribution profile that has the source type configured but no filters, all routes will be exported. | ||
| - | When setting OSPF over VPN links (tunnel interfaces), make sure the Router-> | + | Remember, the // |
| + | If you redistribute all connected routes from one firewall to another, the list of redistributed routes will not include the link used for OSPF (that is covered by the ospf intra-area route. It will also not include any loopback IP addresses. It will include IP addresses that are on tunnel interfaces but it will not include GlobalProtect ' | ||
| - | When you have a firewall with a leg in 0.0.0.0 and a leg in 0.0.0.2, if you configure " | + | If you import |
| - | If you have two firewalls (active/ | + | Remember, if you set a redistribution profile to redistribute static routes matching 10.10.0.0/16, this will actually distribute all static routes that match 10.10.0.0/16 and anything more specific than that (e.g. 10.10.10.0/24). |
| + | |||
| + | ===== Setting Metrics ===== | ||
| + | The firewall places a metric on the //ospf intra-area// | ||
| + | < | ||
| + | |||
| + | When the firewall learns routes from another firewall, the route will show as an //O1// or //O2// route depending on whether the other firewall set the export rule //new path type// to //ext-1// or //ext-2//. | ||
| + | |||
| + | When in doubt, set the //new path type// to //ext-2//. | ||
| + | |||
| + | If the remote firewall is exporting the route as //ext-2//, then it either does not set an export rule metric and defaults to a metric of 1 or a metric can be set. Because the //new path type// is set to //ext-2//, the local firewall will use the metric set by the remote firewall' | ||
| + | |||
| + | If the remote firewall is exporting the route as //ext-1//, then it either does not set an export rule metric and defaults to a metric of 1 or a metric can be set. Because the //new path type// is set to //ext-1//, the local firewall will use the metric set by the remote firewall' | ||
| + | |||
| + | ===== Summarise Routes ===== | ||
| + | With OSPF, you can summarise routes from one area to another if the firewall has an interface in one area and another interface in another area. | ||
| + | |||
| + | When you have a firewall with a leg in '' | ||
| + | |||
| + | If you have two firewalls (active/ | ||
| + | |||
| + | ===== Redistribute Loopback IP ===== | ||
| If you want to redistribute loopback addresses, you will need to create a local static route that points the loopback IP (/32) to itself (IP) as the next hop. You can then redistribute the static route. | If you want to redistribute loopback addresses, you will need to create a local static route that points the loopback IP (/32) to itself (IP) as the next hop. You can then redistribute the static route. | ||
| + | ===== OSPF Over VPN ===== | ||
| + | When setting OSPF over VPN links (tunnel interfaces), | ||
| + | < | ||
| + | |||
| + | If you have two firewalls that connect to each over over VPN and over, say, MPLS, you can put both interfaces into Area 0.0.0.0. You can give the interface configuration in Area 0.0.0.0 the same metric. You can also use //ext-2// in the export rules. This means that if MPLS fails, the VPN will take over with only a few ping drops. If the MPLS is then restored, it will take back control from VPN. | ||
| + | |||
| + | If you want MPLS and VPN to have different metrics to achieve the same result, set, in Area 0.0.0.0 the interface metric of MPLS to 1 and the metric of VPN to 2. Then set the export rule to be //ext-1// and set the metric to 11. The means the MPLS metric when installed on the other firewall is 12 and the VPN is 13. This means that if MPLS fails, the VPN will take over with only a few ping drops. If the MPLS is then restored, it will take back control from VPN. | ||
| + | |||
| + | ===== OSPF with Backup Static Route ===== | ||
| + | If you have OSPF from (e.g.) MPLS terminating on your firewall, you may also have a backup VPN to the other sites. | ||
| + | You can create a static route with metric 20 for the VPN tunnel and OSPF will (depending on configuration) have a metric of 11. However, you may find PAN-OS selecting the static route with metric 20 over the OSPF route with metric 11. The issue is administrative distance. If you update the static route to have an administrative distance of 150, the OSPF route should suddenly get priority. I've tried 129 and that also worked. However, 75 seemed to leave me with the static route still being preferred. Not sure what the tipping point is. | ||
paloaltonetworks/configuration/ospf.1590590281.txt.gz · Last modified: (external edit)
