TCLUG Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [TCLUG:8925] ip masquerading help



On Mon, 4 Oct 1999, Dave Erickson wrote:

> I am trying to get two machines working via IP Masquerading. I have a
> Debian box, which is my desktop, setup to be the MASQ server to a
> Mandrake/WIN98 box. I have two NICS in my Debian machine that I think
> are setup correctly. See the output of "ifconfig" below:

What is the outside network you're trying to connect to, and how are you
connecting to it? I don't see a ppp link or such in your ifconfig...

> eth0      Link encap:Ethernet  HWaddr 00:00:94:98:89:F9  
>           inet addr:192.168.100.2  Bcast:192.168.100.255 
> Mask:255.255.255.0
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>           RX packets:9847 errors:1 dropped:0 overruns:0 frame:1
>           TX packets:7496 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:23 txqueuelen:100 
>           Interrupt:11 Base address:0xec00 
> 
> eth1      Link encap:Ethernet  HWaddr 00:A0:CC:51:A2:29  
>           inet addr:192.168.0.1  Bcast:192.168.0.255  Mask:255.255.255.0
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>           RX packets:0 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:100 
>           Interrupt:9 Base address:0xe800 

And also, both of your nics are on private networks (192.168.*.*). Not
sure what you're trying to accomplish here. What is the IP address on the
nic in your other computer system?


> gsa700:/home/dave# netstat -rn
> Kernel IP routing table
> Destination     Gateway         Genmask         Flags   MSS Window  irtt
> Iface
> 192.168.100.0   0.0.0.0         255.255.255.0   U         0 0          0
> eth0
> 192.168.0.0     0.0.0.0         255.255.255.0   U         0 0          0
> eth1
> 0.0.0.0         192.168.100.1   0.0.0.0         UG        0 0          0
> eth0

You have both nics vying to be the default route. That isn'y
likely to work.


-- Chris

  Christopher Reid Palmer : www.innerfireworks.com