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

Update - RE: rc.local in debian (was: Ip Masquerading)



Just to update something new I have found out.. I tried pinging my ADSL
router and my brother´s PC from my Linux box and it doesn't work either,
but it did work from my Windows PC when I had it connected directly to
my ADSL router. So, now I'm feeling pretty clueless... At least in all
my PCs (incluiding the masqueraded one) internet works perfectly.

Just in case you need it, here's a copy of my /etc/network/interfaces
file:

# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)

# The loopback interface
auto lo
iface lo inet loopback

# The first network card - this entry was created during the Debian
installation
auto eth0
iface eth0 inet static
	address 10.0.0.3
	netmask 255.0.0.0
	gateway 10.0.0.1

iface eth1 inet static
        address 10.0.0.4
        network 10.0.0.0
        netmask 255.0.0.0
        broadcast 10.0.0.255

Just to make a note, 10.0.0.1 is the IP of my ADSL router.

Any light on this will be appreciated.

Ronald Castillo

-----Original Message-----
From: Ronald Castillo [mailto:ronaldace2@cantv.net] 
Sent: miércoles, 05 de junio de 2002 21:40
To: debian-user@lists.debian.org
Subject: RE: rc.local in debian (was: Ip Masquerading)

Hello..

I have configured my second interface as you told me (with a few
changes) and it's now working fine!!! Thanks a lot for your help to you
all!!!

Just two more questions.. I don't know if I should place "auto" on it
because the Windows box isn't permanently turned on, so I think that
Linux might show up an error message if the connection is up when the
Windows box is off, doesn´t it? Just like when I enable my other card
when it doesn't have a LAN cable in it.

The other thing is that, from the "masqueraded" PC (the windows box), I
can only ping the masquerading PC (the linux box) and not the other PCs
connected to the network (my brother´s windows PC and my linux box
connect directly to the ADSL router and my windows PC connects to the
linux box).  The PC I can't ping or access is my brother´s PC.

Thanks for your assistance so far..

Ronald Castillo

-----Original Message-----
From: Vineet Kumar [mailto:debian-user@virtual.doorstop.net] 
Sent: martes, 04 de junio de 2002 2:26
To: debian-user@lists.debian.org
Subject: Re: rc.local in debian (was: Ip Masquerading)

* Colin Watson (cjwatson@debian.org) [020603 16:51]:
> On Mon, Jun 03, 2002 at 11:49:54PM +0200, Ronald Castillo wrote:
> > I was thinking that I should configure my secondary LAN card (the
one
> > that connects to my "internal" network) in the
/etc/network/interfaces
> > card, but I don't know what to place there.  I have already
configured
> > the LAN card that connects me to the "outside world" without
problems.
> 
> Well, if it helps, here's an /etc/network/interfaces fragment from one
> of my machines:
> 
> iface eth1 inet static
>         address 192.168.42.1
>         network 192.168.42.0
>         netmask 255.255.255.0
>         broadcast 192.168.42.255
> 
> This brings up an interface using the second network card with IP
> address 192.168.42.1.

Also, you'll probably want to add a line that says
"auto eth1"
which will make eth1 come up automatically at boot, instead of only
after you say "ifup eth1". IIRC, though, that's new since after potato.

good times,
Vineet
-- 
Currently seeking opportunities in the SF Bay Area
Please see http://www.doorstop.net/resume.shtml



-- 
To UNSUBSCRIBE, email to debian-user-request@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact
listmaster@lists.debian.org



--
To UNSUBSCRIBE, email to debian-user-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: