Hi Balagei,
You would need to use ifHighSpeed object to check the value for an 2G interface. That is because when using ifSpeed, the output value will exceed the max. value (4,294,967,295) that the object can support. So, when you use ifHighSpeed for a 2G interface, you will get an output of 2000.
Similarly the same would be implemented for a 10G interface and output value will be 10000
Thanks,
Syed