On 28 Jul 98, at 19:07, Benjamin K. Andrus wrote:
> I have two 3c509 cards in my machine and I can see them both when booting
> (eth0, eth1)
> eth1. What lines do I add to what files and then what lines do I need to
> add to set up the masquerading stuff so that the linux box will forward the
> info. I will have 4 win95 machines that will want to go through this linux
> box on there own network. If someone can point me in the right direction I
> would really appreciate it.
We almost the same situation, except to provide a "masquade" side and a
"public" side on the ethernet at our office.
in /etc/rc.d/rc.inet1
We have
IPADDR="205.147.154.30"
NETMASK="255.255.255.0"
BROADCAST="205.147.154.255"
GATEWAY="205.147.154.1"
IPADDR2="192.168.2.1"
NETMASK2="255.255.255.0"
NETWORK2="192.168.2.0"
BROADCAST2="205.147.154.255"
GATEWAY2="205.147.154.30"
# First Ethernet Card
/sbin/ifconfig eth0 ${IPADDR} broadcast ${BROADCAST} netmask
${NETMASK}
# Second Ethernet Card
/sbin/ifconfig eth1 ${IPADDR2} broadcast ${BROADCAST2} netmask
${NETMASK2}
... and then at the bottom
/sbin/route add default gw ${GATEWAY} netmask 0.0.0.0 metric 1
/sbin/route add -net ${GATEWAY2} netmask 0.0.0.0 metric 1
That's it.
You just add it in ifconfig, and then add a route.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For daily digest info, email [EMAIL PROTECTED]