[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: IP Masq problem w/2 NIC, Debian




>I was wondering if you could help me configuring my linux computer with
>a two-port NIC.

Sure.


>eth0      Link encap:Ethernet  HWaddr 00:90:27:0B:E5:B8
>          inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
>
>eth1      Link encap:Ethernet  HWaddr 00:90:27:0B:E5:B9
>          inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0

Here is your first problem.  Both eth0 and eth1 have the same IP
address AND they are on the same network.  That cannot work.
If your service provider gives you 192.168.1.x network to run
PPPoE over, you should make the internal network something
different.  Say, 192.168.2.x/24.


>ppp0      Link encap:Point-to-Point Protocol
>          inet addr:64.108.80.18  P-t-P:64.108.80.254  Mask:255.255.255.255

So this is your REAL external interface.


>If I try to ping my two networked linux computers nothing happens.  :-(

That's because Linux doesn't know which interface to use.
Re-address eth1 on the Linux machine as well as all internal
machines.  Instead of using static IP addresses on the internal
network, why not try setting up DHCP?  It's very easy to do and
I've documented how to do that in TrinityOS; chapter 27:

http://www.ecst.csuchico.edu/~dranch/LINUX/index-linux.html#trinityos

--David
.----------------------------------------------------------------------------.
|  David A. Ranch - Linux/Networking/PC hardware         dranch@trinnet.net  |
!----                                                                    ----!
`----- For more detailed info, see http://www.ecst.csuchico.edu/~dranch -----'



Reply to: