I have a very strange problem. A server has two IP addresses on a single network interface:
- eth0 has 172.20.40.1
- eth0:0 has 10.1.1.1
The address for eth0 is static, the one for eth0:0 comes from DHCP.
- ping anything on 10.1.1.0/24
- SSH to any server on this subnet
but when I try to access other server resources, like a HTTP server, I get "No route to host".
This is my "ip ro li" output:
default via 10.1.1.254 dev eth0 10.1.1.0/24 dev eth0 proto kernel scope link src 10.1.1.1 172.17.0.0/16 dev docker0 proto kernel scope link src 172.17.42.1 172.20.40.0/24 dev eth0 proto kernel scope link src 172.20.40.1 192.168.17.0/24 dev usb0 proto kernel scope link src 192.168.17.1
What is wrong here?