What do you mean? Setting it to a particular speed? Like 10, 100, or 1000?
If that's the case
config t
int <interfacd>
speed <10/100/1000>
duplex <half/full>
The end device has to be set to the same speed or you will encounter errors on the interface.