Page 2 of 2

Re: 2 Nics with 2 different Gateway

Posted: 2023/04/12 03:54:16
by vijaydsk
Hello team,
I could able to fix the issue.
The following is what I did...
Create a new file

nano /etc/sysconfig/network-scripts/route-eth2 (your 2nd NIC name)

Insert the following text based on the 2nd network IP Pool
10.22.55.42/24 via 10.22.55.41

Save the file and restart the machine.

That's it.
Now I could able to reach both the networks

Re: 2 Nics with 2 different Gateway

Posted: 2023/04/13 06:39:42
by jlehtone
vijaydsk wrote:
2023/04/12 03:54:16
Hello team,
I could able to fix the issue.
The following is what I did...
The data that you show does look inconsistent.
What is the output of these:

Code: Select all

nmcli d s
ip ro
ip ru
ip ro sh table rt1
ip ro sh table rt2

Re: 2 Nics with 2 different Gateway

Posted: 2023/05/25 17:10:22
by TrevorH
CentOS Linux release 7.7.1908 (Core)
Nothing to do with this but do not run 3 year old unpatched versions.

yum update