At 18:51 09.05.2004, isandro belli wrote:
ok guys
after following Erich's suggestion
>You should not need to put those modules there, they are inserted and deleted by \
>cardservices.
>You should _not_ set PCMCIA interfaces to auto, they should be started by \ >cardservices.
basically I had eth0 working (i could ping from thinkpad to dlink firewall/router 192.168.0.1, but not to the internet) and on the local net i could only ping 192.168.1.254 (eth1 itself) the LED was on on the local router.
Then I decided to try the following found suggestion by Christian to Joah:
>I have modified them so that RDCLINKS="S,S20 0,K90 6,K90" and now it's >OK.
>I've put the same RDCLINKS both in >/etc/init.d/pcmcia and /etc/init.d/pcmcia_eth
>Christian - Grenoble
and added this /etc/init.d/pcmcia_eth:
#!/bin/sh # # Copyleft 2002 Erich Titl ([EMAIL PROTECTED]) # # This program is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by the # Free Software Foundation; either version 2 of the License, or (at your # option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License # for more details. # # Purpose: # Wait for PCMCIA Ethernet cards to be ready. # Executed following pcmcia init script execution
#RCDLINKS="S,S38 2,S13 3,S13 4,S13 5,S13" RDCLINKS="S,S20 0,K90 6,K90"
This will disable this script in init level 2, I doubt you want to do that.
WHAT="eth" # what to search for WHERE="/proc/net/dev" # where to search HOW_LONG=20 # how long in seconds before aborting
NICS=`grep ${WHAT} /etc/shorewall/interfaces | grep -v ^# | wc -l` [ ! -r /etc/shorewall/interfaces ] && NICS=2;
Most of the time you can safely say
NICS=2
count=0 while true do count=`expr $count + 1` # weird, for some reason grep does not return anything sensible devs=`grep ${WHAT} ${WHERE} | wc -l` [ $count -eq ${HOW_LONG} -o $devs -eq ${NICS} ] && break; sleep 1 done exit 0
Now, unfortunately, the 2 PCMCIA cards only lit up (no router no beep) and:
The purpose of this script is to insert a wait period _after_ the pcmcia cards are initialised, or rather wait for 2 interfaces to come up. The time out is 20 seconds, so after 20n seconds it should continue anyway.
I don't recall what exactly Christian changed in this script and why. The RCDLINKS look fishy to me.
To debug this add set -x above the RCDLINKS definition.
...
Initializing random number generator... done. INIT: Entering runlevel: 2 Starting software watchdog... done. Starting internet superserver: inetd. Starting ulogd: ulogd. Starting dhcpd on eth1: Internet Software Consortium DHCP Server 2.0pl5 Copyright 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium. All rights reserved.
Please contribute if you find this software useful. For info, please visit http://www.isc.org/dhcp-contrib.html
No subnet declaration for eth1 (0.0.0.0). **************
You need to do something about this too.
Please write a subnet declaration in your dhcpd.conf file for the
network segment to which interface eth1 is attached.
exiting.
Processing /etc/shorewall/params ...
Processing /etc/shorewall/shorewall.conf...
Starting Shorewall...
Initializing...
Determining Zones...
Zones: net loc
Validating interfaces file...
Error: Invalid zone (local) in record "local eth1 192.168.1.0 dhcp" **************
Your interfaces file has problems too.
A few places to fix, but nothing really lethal
cheers Erich
THINK P�ntenstrasse 39 8143 Stallikon mailto:[EMAIL PROTECTED] PGP Fingerprint: BC9A 25BC 3954 3BC8 C024 8D8A B7D4 FF9D 05B8 0A16
------------------------------------------------------- This SF.Net email is sponsored by Sleepycat Software Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to deliver higher performing products faster, at low TCO. http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3 ------------------------------------------------------------------------ leaf-user mailing list: [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/leaf-user SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html
