Second NIC is not reaching the Gateway in the Multi homed CentOS 7 server

Issues related to configuring your network
Post Reply
mznkhan
Posts: 1
Joined: 2019/01/24 23:10:55

Second NIC is not reaching the Gateway in the Multi homed CentOS 7 server

Post by mznkhan » 2019/01/24 23:26:03

Hi,

I have a multi homed CentOS 7 server VM has two NIC which supposed to talk to two different subnets, The eth0 is working fine. The moment I plumb the eth1 and assigned IP address from the different subnet. It is not ping or trace to the gateway of the that subnet. Could someone help me out?

Regards
Zahid

User avatar
TrevorH
Site Admin
Posts: 33219
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Second NIC is not reaching the Gateway in the Multi homed CentOS 7 server

Post by TrevorH » 2019/01/25 09:30:59

Most likely you have specified GATEWAY= in the new ifcfg-$interface file. You can only have one default route (in most circumstances) so remove it and set explicit static routes for the traffic that you want to go over this interface.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Post Reply