0

This question already has an answer here:

I need to add another IP address and I need the server to be able to know see it. On the client: curl using the second IP/interface On the server: netstat or tcpdump

I want to be able to see the second IP address in the server.

Tried ip link add, ip address add, ifconfig. Nothing works. On the server there is always the "main" address of the client.

Everything is on the LAN, no need for DNS, etc..

marked as duplicate by Tom Brossman, Eric Carvalho, Thomas, PJ Singh, abu_bua Nov 27 '18 at 19:52

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

0

Try this solution as ip isn't persistent:

sudo nmcli con modify "interface_name" +ipv4.addresses 172.16.2.140/24
sudo nmcli con up "interface_name"

Note you change that ip add I added to yours and do this on the client machine.

  • so if you ping that ip add what happens? – George Udosen Nov 22 '18 at 23:17
  • Pinging works. It also works with other methods. Thats because the icmp that asks "who has the_new_address". – nmnir Nov 22 '18 at 23:19
  • Did you restart the networkmanager on the server? – George Udosen Nov 22 '18 at 23:33
  • Also try to ping the client from the server! – George Udosen Nov 22 '18 at 23:45
  • veth works. Just had an error with that :( – nmnir Nov 23 '18 at 0:21

Not the answer you're looking for? Browse other questions tagged or ask your own question.