area sham-link cost

Use this command to configure the cost of an OSPF sham link.

Syntax

area area-id sham-link source-ip-address destination-ip-address cost cost
no area area-id sham-link source-ip-address destination-ip-address cost

Parameters

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.

Defaults

The default cost of the sham link is the reference bandwidth divided by the interface bandwidth.

Mode

VRF configuration, OSPF router configuration.

Usage

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.

Example

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