On Wed, Sep 05, 2001 at 08:29:37AM -0700, [EMAIL PROTECTED] wrote:
| I have two nics in a Debian 2.2 machine w/ kernel 2.4.9.  eth0 is a
| Linksys Ether16 using the ne driver, eth1 is a Linksys 10/100 using
| the tulip driver.  I'm trying to build a router and firewall using
| iptables.  When I bring up eth0 (connected to the cable modem) it
| works fine.  I can take it down and bring it up just fine.  While it's
| up I can bring up eth1 (on the LAN) and ping both the internet and my
| other computer.  Now, if I try to bring eth0 down it won't.  It'll act
| like it does, but ifconfig shows it is still there.  When I try ifdown
| eth0 multiple times it just tells me eth0 is not configured.  Has
| anyone seen this before?  I can bring my computer and both interfaces

if{up|down} maintains a file, /etc/network/ifstate, that tells it
whether or not the interface is configured.  When ifdown is run it
removes eth0 from that file, then subsequent executions will tell you
the interface isn't there.  ifconfig looks at the kernel to see what
really exists and tells you the interface is still there.  Try the
--force option to ifdown and see if it helps.  With my connection I
have a command setup in /etc/network/interfaces to run just before the
interface is deconfigured.  If I cancel that command (ie ^C) then the
interface isn't really taken down but ifdown thinks it is.

| by hand in this condition, but it won't work on boot like this.  eth0
| connects through dhcp to roadrunner, eth1 is static.
| 
| On a side note, can anyone point me to a good tutorial on iptables,
| preferably something I can save and not need a connection to view?
| I've tried to set up just simple routing functions so I can get both
| the router on and my computer, but it isn't working.  I enter:

See netfilter.filewatcher.org.  I got the PS version and printed it.

-D

Reply via email to