OSPF sham-link cost

An OSPF sham-link will have a default cost of 1 ensuring that it is chosen as the best path over alternative possible paths. The cost of the sham link can be modified using a command similar to the following:

PE1(config-router)#area 0 sham-link 22.22.22.22 44.44.44.44 cost 10

The cost configured affects only outbound traffic, thus it should be configured the same on both ends of the sham link.

Links

https://networklessons.com/mpls/mpls-layer-3-vpn-pe-ce-ospf-sham-link/

https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/iproute_ospf/command/iro-cr-book/m_ospf-a1.html#wp2401300643

Links to this page: