RE: Eth1 and eth0

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Jesus E Zepeda
Date:  
To: plug-discuss
Subject: RE: Eth1 and eth0
Craig and Erik:

I just want to thank you for coaching me on this.

Because I ended up setting eth0 on the Internet side; and eth1(10.1.1.1)
to my private router (10.1.0.1), I added a static route to eth1 for
subnet 10.2.0.0/16 to something like this:

route add -net 10.2.0.0 netmask 255.255.0.0 gw 10.1.0.1 eth1

The default gateway to the Internet was assigned to eth0 by adding the
two lines in /etc/sysconfig/network

Regards,

Jesus Zepeda

-----Original Message-----
From: Craig White [mailto:craigwhite@azapple.com]
Sent: Monday, April 18, 2005 21:48
To:
Subject: RE: Eth1 and eth0


On Mon, 2005-04-18 at 15:31 -0700, Jesus E Zepeda wrote:
> Hi, Erik:
>
> Yes, you are right that is a private network behind a firewall and
> 10.100.1.245 is the firewall's interface to the 10.100.0.0/16 network.


> At this network I have Windows machines accessing the Internet. But my


> computer is the only instance that has two NICs.
>
> Craig, provided me with a pice of information that resulted an
> excellent progress. I can ping on both sides of my computer and get on


> the Internet now. He recommended adding at /etc/sysconfig/network
> these two
> lines:
>
> GATEWAYDEV=eth0
> GATEWAY=10.100.1.145
>
> Because at this moment I am not at the site where my computer is, I
> setup a test environment at my office but I am lacking of a router.
> So, if having 2 gateways is a nono and my computer is standing between


> these two Gateway interfaces: The firewall and the internal router, I
> wonder whether I will be able to access the other side of the private
> router as well?
>
> I will check on this early tomorrow, but if you guys see what my
> problem is (My Computer is in between two routers and has to access
> both sides), what would be the best way to attain it?

----
static route

man route

say for example, eth1 is 192.168.1.204 and you have a router that has an
ip address of 192.168.1.1 and your internal lan has an ip network
address scheme of 192.168.0.0/24

Then (assuming your router will permit this - you might want to be
'restrictive' on exactly which ports are forwarded through the router
from your Linux box to the internal LAN as your Linux box is in
untrusted waters)...

route add -net 192.168.0.0 netmask 255.255.255.0 dev eth1

(I think - this of course is untested).

plink around with this manually and once you get it to work...you could
add this command to /etc/rc.d/rc.local like...

route add -net 192.168.0.0 netmask 255.255.255.0 dev eth1 &

so it is created every restart

Craig

---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change you mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss




---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change you mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss