said by Lea Massiot:P.S. I don't know how to set a /31 mask instead of a /24 mask?
I tried 255.255.255.254 but with not luck.
You could use the /31 when you already enable
ip subnet-zero. Otherwise using /30 is more common approach for point-to-point networks.