OSPF default route
OSPF default-information originated is an important command. It allows the administrator to inject a default route into OSPF routing domain.
There are 4 optional keywords (to be added after the command):
- always – advertises the default route regardless of whether the software has one.
This default route will be kept under any condition no matter which changes happen.
- metric – the default metric value is 10 and this keyword can change it.
- metric-type – this keyword has two optional values
E1 (metric-type 1), where metric will be changed across the network
E2 (metric-type 2), where the metric is the same throughout the OSPF domain (this is the default)
- route-map – if the routing map conditions are matched the setting will take effect.
This is the only way to override the always keyword.
It is working great in my lab. If you study for either BSCI or ROUTE exams I highly recommend playing with those options and get yourself familiarized with both syntax and capabilities. Make sure you understand how to recognize the different show outputs and the commands that generated them.