Page 1 of 1

Problem with IP public and private on two different network adapters

Posted: 2019/05/23 22:00:16
by lorenzo_kadv
Hello,

I read different posts, also in this forum, but I still have some problems...

I have a server with two network adapters:
- ens192 with different public IPs
- ens256 with one private IP

The firewall is disabled.

If I tried a command like this:
# ping -I <pubblic IP> rabbitmq01
PING rabbitmq01 (192.168.60.30) from <pubblic IP> : 56(84) bytes of data.


instead:
# ping -c 1 -I 185.241.92.198 gmail.com
PING gmail.com (172.217.23.101) from 185.241.92.198 : 56(84) bytes of data.
64 bytes from mil04s23-in-f5.1e100.net (172.217.23.101): icmp_seq=1 ttl=55 time=3.17 ms

--- gmail.com ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 3.176/3.176/3.176/0.000 ms


So, in the first case, no pings are visible.

In any case, I see this error in the MTA log trying to connect the Gmail MX and others with a public IP: Unable to connect: no response

Do you have any idea? Can I send you all the information you need to try to help me?

Regards,
Lorenzo

Re: Problem with IP public and private on two different network adapters

Posted: 2019/05/23 22:10:34
by TrevorH
Your default route is wrong. If you look at /etc/sysconfig/network-scripts/icfg-$interface for both of them, make sure that only one of them contains GATEWAY= and remove it from the other.