Set up 2 nic cards with different tcp/ip properties and ip masq

Set up 2 nic cards with different tcp/ip properties and ip masq

Post by jame » Mon, 16 Feb 1998 04:00:00



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.

 
 
 

Set up 2 nic cards with different tcp/ip properties and ip masq

Post by Da Pla » Tue, 17 Feb 1998 04:00:00



>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. :-)

 
 
 

1. IP Masq'd Workstation to connect to IP Masq'd Workstation

I have setup my Linux Box with IPMasq. Everything runs fine from my win box
behind the proxy. Now I just encountered a problem. I have tried to connect
to an ftp server that is behind NAT server which are both on winboxs

------------              -------------                   ------------      
        ------------------
|                 |             | IP Masq    |   Internet    |   NAT       |
| Win workstation |
| Win         |---------|    Linux      |------------|    Sygate
|---------|    FTP                |
|                 |             |   Proxy      |   Internet    |    Win box
|              | server                |
------------              -------------                   -------------    
        ------------------

I can't seem to connect to the FTP even when the FTP Client is set to
passive mode. Does anyone know whether there is anything I can do on my side
of the connection such as reconfiguring my Linux Box to fwd properly?

2. Remove unused prototype for init_modules()

3. IP Masq - Specify IP to Masq as?

4. ksh - trapping errors in functions?

5. Configuring net (IP-tunnel, IP-Alias, Proxy-ARP, NAT, IP-Masq?)

6. MS SOUND SYSTEM/HYPERMEDIA/KERNEL SUPPORT/WHICH HARDWARE?

7. Setting up MRTG to graph TCP/IP traffic on a NIC (rl0)

8. Backups, and transferring large files

9. !!DDE->TCP/IP, REAL TIME DATA PUMP, Trans.DDE App.DATA via TCP/IP