Linux 2 NIC with different networks routing problem

We ran out of host addresses in network therefore needed to add additional IP space on our avocent console switch. We have two NICs (eth0 and eth1) on the server which and have an ip from a different subnet assigned which was non-contiguous IP space, therefore it was a different network So in this scenario my team had configured the VLAN with an additional IP address on the Juniper EX switch, as each NIC was connected to the same switch and VLAN:

So now the issue was that we were unable to reach the address which was configured on the avocent (linux server) therefore on NIC1:

As we know having 2 static default gateways on the server isn’t going to go down well, the reason we were not able to get through to the address, was due to the static default route sending us through eth0, therefore we followed this guide:

and made the following change:

having done that it resolved our issues yay!!


0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

Your email address will not be published. Required fields are marked *