If run sh ip ospf interface, this command shows what ospf working on VRRP bond0.35v35 interface with cost 25.
bond0.35v35 is up
ifindex 15, MTU 1500 bytes, BW 4000 Mbit <UP,BROADCAST,RUNNING,MULTICAST>
Internet Address 10.1.1.2/30, Broadcast 10.1.1.3, Area 0.0.0.0
MTU mismatch detection: enabled
Router ID 12.35.10.1, Network Type BROADCAST, **Cost: 25**
Transmit Delay is 1 sec, State Backup, Priority 1
Backup Designated Router (ID) 12.35.10.12, Interface Address 10.1.1.2
Multicast group memberships: OSPFAllRouters OSPFDesignatedRouters
Timer intervals configured, Hello 10s, Dead 40s, Wait 40s, Retransmit 5
Hello due in 9.004s
Neighbor Count is 1, Adjacent neighbor count is 1
There are two possibilities to set the cost of a link for OSPF
You can set the cost:
set interfaces ethernet bond0.35 ip ospf cost <1-65535>
You can specify bandwidth:
set interfaces ethernet bond0.35 ip ospf bandwidth <1-100000 Bandwidth in megabits/sec>
Nop. This commands relates to bond0.35 only and don’t change ospf metrics for VRRP bond0.35v35 interface. I set
set interfaces ethernet bond0.35 ip ospf cost 1
set interfaces ethernet bond0.35 ip ospf bandwidth 10000
and it’s changed on bond0.35
bond0.35 is up
ifindex 15, MTU 1500 bytes, BW 10000 Mbit <UP,BROADCAST,RUNNING,MULTICAST>
Internet Address 10.1.1.2/30, Broadcast 10.1.1.3, Area 0.0.0.0
MTU mismatch detection: enabled
Router ID 12.35.10.1, Network Type BROADCAST, Cost: 1
Transmit Delay is 1 sec, State Backup, Priority 1
Backup Designated Router (ID) 12.35.10.12, Interface Address 10.1.1.2
Multicast group memberships: OSPFAllRouters OSPFDesignatedRouters
Timer intervals configured, Hello 10s, Dead 40s, Wait 40s, Retransmit 5
Hello due in 4.174s
Neighbor Count is 1, Adjacent neighbor count is 1
bond0.35v35 is up
ifindex 15, MTU 1500 bytes, BW 4000 Mbit <UP,BROADCAST,RUNNING,MULTICAST>
Internet Address 10.1.1.2/30, Broadcast 10.1.1.3, Area 0.0.0.0
MTU mismatch detection: enabled
Router ID 12.35.10.1, Network Type BROADCAST, **Cost: 25**
Transmit Delay is 1 sec, State Backup, Priority 1
Backup Designated Router (ID) 12.35.10.12, Interface Address 10.1.1.2
Multicast group memberships: OSPFAllRouters OSPFDesignatedRouters
Timer intervals configured, Hello 10s, Dead 40s, Wait 40s, Retransmit 5
Hello due in 4.174s
Neighbor Count is 1, Adjacent neighbor count is 1
Is rfc3768-compatibility a requeriment for your vrrp configuration?
If not, you can delete that configuration, and apply @Nikolay confg on bond0.35 interface