It's because those are invalid host addresses for your network. You are trying to straddle the boundary between two different networks for that network mask.
Address 10.1.1.255 = 00001010000000010000000111111111
Mask 255.255.254.0 = 11111111111111111111111000000000
AND ================================
Network = 00001010000000010000000000000000 = 10.1.0.0
The broadcast address for your network, 10.1.0.0/23
, is 10.1.1.255
, which is the address you are trying to use.
Address 10.1.2.0 = 00001010000000010000001000000000
Mask 255.255.254.0 = 11111111111111111111111000000000
AND ================================
Network = 00001010000000010000001000000000 = 10.1.2.0
The network address for your network, 10.1.2.0/23
, is 10.1.2.0
, which is the address you are trying to use.
You could use the addresses you want to use if you use a shorter network mask, e.g. /22
.