Click to See Complete Forum and Search --> : how to install dual-homed linux box


aakomala
08-13-2002, 12:40 AM
Hi, I need help in installing dual-homed box. I have 2 ethernet cards, eth0 and eth1. Both of them are recognized by Linux and I have enabled IP forwarding.

I have the IP address, gateway, for the outside Internet, and the box can surf the web just fine. The intranet is the one I'm having difficulties. I set the IP address to 192.168.0.1, and the gateway is the IP address for the other ether card. None of the intranet computers can browse th web.

I'm planning to install SQUID after I get this working.

thanks for the help.
-a

kZahradnik
08-13-2002, 07:43 AM
Hy-
check out those links from Google:
http://www.google.com/linux?hl=de&ie=ISO-8859-1&q=internet+connection+sharing&lr=

he usually gets it right! ;)
hope I could help
Klaus

cowanrl
08-13-2002, 12:08 PM
You should not need to set up a separate gateway for both NICs on your server. The one you have set up now that is allowing you to access the Internet from the server is the one you want. Remove the other one.
If you have IP forwarding set up properly, Linux's default route table will take care of forwarding packets from the 192.168.0.0 network, out the other NIC and to the Internet.

What type of router are you using to access the Internet? Some smaller DSL and Cable modem/routers do not have the capability to send packets to 2 different subnets on the LAN side. If they do, then you usually have to configure a static route.
I had this problem with my 3Com router.