Use this command to configure the cost of an OSPF sham link.
area-id | Specifies the OSPF area the two PE routers belong to. |
source-ip-address | Specifies the source IP address for this sham link. |
destination-ip-address | Specifies the destination IP address for this sham link. |
cost | Specifies the cost of the sham link. Valid values are 1 - 65535. The default value is the reference bandwidth divided by the interface bandwidth. |
The default cost of the sham link is the reference bandwidth divided by the interface bandwidth.
VRF configuration, OSPF router configuration.
Each router interface that participates in OSPF routing is assigned a default cost. This command overwrites the default OSPF interface cost.
The reference bandwidth defaults to 100Mbps and can be modified using auto-cost reference-bandwidth.
The “no” form of this command resets the OSPF cost for the sham link to the default of 10.
This example shows how to configure a cost of 20 for the sham link between two PE routers with a source address of 172.16.1.10 and a destination address of 172.16.2.20 on OSPF router instance 10, VRF doc:
System(su)->router doc System(su-doc)->configure System(su-doc-config)->router ospf 10 System(su-doc-config-ospf-10)->enable-pe-ce System(su-doc-config-ospf-10)->area 10 sham-link 172.16.1.10 172.16.2.20 cost 20