n9nu Posted March 3, 2010 Report Share Posted March 3, 2010 (edited) Hello I have what most would consider a pretty basic system and would like to get a few tips on assigning variables to each of the 2 NIC's I have in this Mandriva Box. This box is connected directly to the 'Inet' via a fiber connection and acts as a FQDN http and FTP server for testing purposes and at times an 'on by request' FTP server. My domain name associated with this box is: fsx-planet.info . That NIC is eth1. The 2nd NIC is assigned 192.168.0.2 (local LAN) via NIC 2 (eth0). I want to access the LAN via eth0 to connect to my FreeNAS box and other machines on that subnet (192.168.0.x). The address of 192.168.0.1 is my Smoothwall box which in-turn feeds to my HP Gigabit managed switch. At this time I do NOT have this machine (the FQDN) behind the smoothwall box via port forwarding. I just want to access the LAN via eth0 (192.168.0.2). My understanding is that I can have only 1 (one) gateway assigned to my box. Right now that gateway is setup to access the INET via my WISP. Now....I have been assigning the eth0 NIC the address of 192.168.0.2 as stated above WITH the gateway field filled in with 192.168.0.1 (the smoothwall box). This I understand is NOT the right way to do it...as I am getting substantial LAG because I have both NIC's assigned separate gateways. I was told I need to assign a 'static route' from the LAN NIC (eth0) to the smoothwall box address so I can properly access the LAN. I do not know where to enter the appropriate information (the route) within the /etc/xxx scripts. My problem or question at this point is: How is the traffic I want to tx/rx via the LAN side able to 'know' to use the correct (eth0) LAN NIC ?? This is were I was told I needed to assign a 'route' to point to the 192.168.0.1 smoothwall box. I have the host 'fsx-planet.info' assigned to the INET NIC (eth1) and the host 'internal.fsx-planet.info' assigned to the LAN NIC (eth0). Both entries get overwritten with 127.0.0.1 each time I reboot. I would like to 'statically' assign those host names to each of the NIC's in a way that they don't get over-written by 'drakhost' which is the Mandriva utility that automatically assigns that info upon start-up. Can I edit say..../etc/sysconfig/network-scripts/ifcfg-eth0 and eth1 to include host info so it 'sticks' each time. I just received an email suggesting I try using 'iptoute2' to allow for multiple gateways on one machine. It seems this is possible, but will wait for more input Tim Yeah...I probably made it confusing with all that ;) Edited March 3, 2010 by n9nu Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.