1825764 Members
2141 Online
109687 Solutions
New Discussion

routing

 
Carlos Vanegas
Occasional Advisor

routing

I have a definition my 3 lan cards in /etc/rc.config.d/netconf
lan4, lan8 and lan9, but the lan4 is defined like route_destination=default, but when I type netstat -nr I saw default gateway lan9 and if I type traceroute machine, saw: Using IP @ lan9, I need to may machine route for lan4

Thanks.
3 REPLIES 3
Craig Rants
Honored Contributor

Re: routing

You can use route delete to remove the default route, then use route add to add the default route you want. Also since the default route is specified for lan4, when you reboot the proper default route should be configured.

GL,
C
"In theory, there is no difference between theory and practice. But, in practice, there is. " Jan L.A. van de Snepscheut
T. M. Louah
Esteemed Contributor

Re: routing

.. if these NICs are on the same subnet, the traffic will go through the first one configured.
.. To force route on specific NIC is not supported.
.. some routing EXAMPLES ::
.. route add default XX.32.7.1 1
Where the last '1' signifies that this gateway is external to the host system
(a router for example). If no digit at the end a '0' is assumed which signifies
the local interface/internal to the host.
.. route add net XX.43.9.0 XX.32.7.1 We are saying we want anything to the XX.43.9 subnet
to use gateway XX.32.7.1
.. route delete default XX.32.7.1 We are deleting our default route and gateway
.. route delete net XX.43.9.0 XX.32.7.1 We are deleting the directive for the XX.43.9 subnet.

G'd luck
t++

Little learning is dangerous!
Sanjay_6
Honored Contributor

Re: routing