>I'm setting up IP masquerading on a cable modem with two different
>computers, an NT box and a linux box. I have two nic cards in the linux
>box, both working. I have set up most of Ip masquerading including
>loading the modules nad recompiling the kernel. Right now i'm trying to
>configure each nic card with different tcp/ip properties. One leading
>out to my cable modem and the cable modem provider(24.*.*.*) and the
>other pointing to an internal network, (192.168.*.*). when i do
>'netconfig' it just sets up general tcp/ip properties for everything and
>does not let me specify each nic card. Can anyone help me? Please do
>not point me to how tos on IP masquerading as I'm pretty sure about that
>and that's not what i need help with.
The answer is actually in the NET-3-HOWTO. :-) You need to use
ifconfig to configure each of your ethernet adapters. Here's a quote
from the HOWTO:
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
5.4. Configuring a network interface.
When you have all of the programs you need and your address and
network information you can configure your network interfaces. When we
talk about configuring a network interface we are talking about the
process of assigning appropriate addresses to a network device and to
setting appropriate values for other configurable paramaters of a
network device. The program most commonly used to do this is the
ifconfig (interface configure) command.
Typically you would use a command similar to the following:
# ifconfig eth0 192.168.0.1 netmask 255.255.255.0 up
In this case I'm configuring an ethernet interface `eth0' with the IP
address `192.168.0.1' and a network mask of `255.255.255.0'. The `up'
that trails the command tells the interface that it should become
active.
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
When you want to define the other NIC you need to specify 'eth1'.
Hope this helps. :-)