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-ipv6-address | Specifies the source IPv6 address for this sham link. |
destination-ipv6-address | Specifies the destination IPv6 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 cost of the sham link defaults to 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 2001:FA04:0005:0001::0 and a destination address of 2002:FA04:0005:0002::0 on OSPF router instance 10, VRF doc:
System(su)->router doc System(su-doc)->configure System(su-doc-config)->ipv6 router ospf 10 System(su-doc-config-ospf-10)->enable-pe-ce System(su-doc-config-ospf-10)->area 10 sham-link 2001:FA04:0005:0001::0 2002:FA04:0005:0002::0 cost 20