I have primary IP address aa.bb.53.34 on my Ubuntu Server 16.04 on eno1 interface. I want to add additional IP address from another network xx.yy.95.4 to the same machine and make this machine accessible by both IPs. I did following command:
ip addr add xx.yy.95.4/32 dev eno1
But server is still not pinged via secondary IP. What should I also do to make server be accessible by secondary IP?
Output:
#ip addr
inet aa.bb.53.34/32 scope global eno1
valid_lft forever preferred_lft forever
inet xx.yy.95.4/32 scope global eno1
valid_lft forever preferred_lft forever
file /etc/network/interfaces
does not exist
#route -vn
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 aa.bb.53.1 0.0.0.0 UG 0 0 0 eno1
xx.yy.95.1 0.0.0.0 255.255.255.255 UH 0 0 0 eno1
Provider says IP address xx.yy.95.4
uses xx.yy.95.1
gateway and netmask is 255.255.255.224