I'm trying to set up an ubuntu 14.04 server to listen on multiple IP addresses. A range has been assigned to the server (X.X.X.146/29) and ip addr show
confirms that this is how eth0 has been configured (private info masked):
$ ip addr show eth0
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether xx:xx:xx:xx:xx:xx brd ff:ff:ff:ff:ff:ff
inet X.X.X.146/29 brd X.X.X.151 scope global eth0
valid_lft forever preferred_lft forever
inet6 XXXX::XXX:XXXX:XXXX:XXXX/64 scope link
valid_lft forever preferred_lft forever
I can ping and ssh into the server on X.X.X.146, but ping fails with "host unreachable" on any of the other assigned IP addresses. In particular this is a problem because the domain name for the server is assigned to X.X.X.149.
Just to test it further, I set up nginx listening on port 80. curl X.X.X.146
gets a response from nginx but curl X.X.X.149
times out. I'm sure this is a really simple thing to set up but I can't figure it out.