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

Re: How to start network _after_ pcmcia drivers load?



Stephen Patterson wrote:
On Fri, 26 Mar 2004 12:10:11 +0100, Brian Brazil wrote:

On Fri, Mar 26, 2004 at 04:10:29AM -0500, Randy W. Sims wrote:

I recently did a reinstall of Debian (3.0r1 kernel 2.4.18-686). I must have done something different this time as the network is trying to come up before the pcmcia driver is loaded which is where the network card is. The first time I installed on this laptop everything worked fine (after changing /etc/default/pcmcia: PCIC=yenta_socket).


You should remove the interface from /etc/network/interfaces and
define it in /etc/pcmcia/network.opts


Thanks Stephen. Unfortunatelly, I'm still not getting it :-(

I edited /etc/network/interfaces to comment out my iface:

auto lo
iface lo inet loopback

# auto eth0
# iface eth0 inet static
#     address 192.168.1.42
#     netmask 255.255.255.0
#     gateway 192.168.1.1

and made the following changes to /etc/pcmcia/network.opts

--- /etc/pcmcia/network.opts.orig	Sun Mar 28 14:18:09 2004
+++ /etc/pcmcia/network.opts	Sun Mar 28 14:18:47 2004
@@ -22,12 +22,12 @@
     # Use WHEREAMI (via the whereami package)? [y/n]
     WHEREAMI="n"
     # Host's IP address, netmask, network address, broadcast address
-    IPADDR=""
+    IPADDR="192.168.1.42"
     NETMASK="255.255.255.0"
-    NETWORK="10.0.1.0"
-    BROADCAST="10.0.1.255"
+    NETWORK="192.168.1.0"
+    BROADCAST="192.168.1.255"
     # Gateway address for static routing
-    GATEWAY="10.0.1.1"
+    GATEWAY="192.168.1.1"
     # Things to add to /etc/resolv.conf for this interface
     DOMAIN=""
     SEARCH=""

I get no errors, but the network is not started. If I execute '/etc/pcmcia/network start eth0' it comes up fine. In fact, if I revert the changes and execute the command the network comes up fine. Why is it not coming up automatically? I've read through the docs in /usr/share/doc/pcmcia-cs and I'm off now to read the HOW-TO referenced there. Hopefully, I'll find an answer there.

I'm still curious to know why it got configured differently this time. I'm pretty sure I used the same options throughout, but...

All sugestions welcome.

Thanks,
Randy.



Reply to: