On CX600-X8, X16 version V600R001C00SPC800 system didn't calculate correctly ospf cost on Etr Trunk link with 4x10 Ge. With the same link on local CX600 had cost 2 but remote CX600 had cost 10.
CX600 V600R001C00SPC011 can solve this problem so we must load that patch or later patch.
The trunk sub-interface reports its bandwidth in the following conditions:
1. A trunk sub-interface reports its bandwidth only when being created. The reported bandwidth remains unchanged even if a new member interface is added to the trunk.
2. After the shutdown and undo shutdown commands are run on a sub-interface, the sub-interface reports its bandwidth again.
In this case, the sub-interface reports 10 Gbit/s bandwidth when being created. When a new member interface is added to the trunk, the bandwidth reported by the sub-interface remains unchanged. The OSPF cost of the sub-interface is calculated to be 10.
If the shutdown and undo shutdown commands are run on the sub-interface, the total bandwidth of all four member interfaces is reported to the OSPF module. As a result, the OSPF cost is calculated to be 2.
it's a software bug.
Temporary solution: we can assign correct ospf cost on sub-interface Eth-Trunk link with 10 Ge interface by manually.