Normally, I would just keep trying to figure this out on my own, but I'm really at my wits' end. I have a server with two Ethernet adapters,
eth1. I've been assigned a
/29 subnet that technically ranges from
xxx.xxx.xxx.255, but the only usable address are from
.254. For some reason
.248 is reserved, and
.249 is the default gateway.
At first, I tried
ip addr add xxx.xxx.xxx.248/29 dev eth0 broadcast + and
ip addr add xxx.xxx.xxx.248/29 dev eth1 broadcast +, hoping that Linux would be intelligent and assign itself different address in the block. However, both of the addresses it chose were the restricted
.248 address, so that's obviously not right.
Then I did
ip addr add xxx.xxx.xxx.250/29 dev eth0 broadcast + and
ip addr add xxx.xxx.xxx.251/29 dev eth1 broadcast +, which seemed to work, so I followed it with
ip route add default via xxx.xxx.xxx.249. However, pinging
.249 resulted in "Destination Host Unreachable" so I've clearly done something wrong. I also attempted the same thing using
route, but got the same results, so there's clearly something I'm not understanding.
What do I need to do?