LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Password
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.

Notices


Reply
  Search this Thread
Old 06-18-2004, 07:13 PM   #1
azwr
LQ Newbie
 
Registered: Jun 2004
Distribution: Gentoo, Knoppix HD Install (Debian)
Posts: 7

Rep: Reputation: 0
re-run DHCP after bootup?


Hello all, I tried searching around and couldn't really find the answer I was looking for ... so I'm sorry if this is simple and has been addressed a million times.

I've been using linux for only about a month (Knoppix HD install, so basically Debian), but have gotten ndiswrapper to work with my unsupported wireless card, and got shorewall setup to allow my other windows box to access the internet through my linux machine, as well as share files between the two. But here's my problem ...

There is no native support for the Broadcom chip in my Linksys wireless card yet, so ndiswrapper wraps the windows drivers, and works quite well at that. However, wlan0 isn't detected on startup, and doesn't work until I run a script that came with Knoppix (figured that one out, just a front-end for iwconfig, can replicate that on my own). Therefore, on startup linux won't issue a DHCP search for an ip from the wireless card. There's another script that came with Knoppix that I use after startup that will do it, but it's pretty cryptic and I can't figure out how it issues the DHCP request. It seems like ifconfig only does static ip configs, so I can use that for my eth0 that is a static ip connected to the other machine. I've tried /etc/init.d/networking restart after running iwconfig, but that doesn't issue the DHCP command either.

The only reason I'm wondering is because I'd like to either modify some startup script or config file to allow it the setup of wlan0 and DHCP request to happen at startup, or write one myself and have it run at startup.

So after making a quick question long ... any ideas?

~Andrew
 
Old 06-18-2004, 10:37 PM   #2
leonscape
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 48
You need to set the /etc/network/interfaces file correctly try adding

auto eth0
iface eth0 inet dhcp

and running /etc/init.d/networking restart
 
Old 06-19-2004, 10:21 AM   #3
azwr
LQ Newbie
 
Registered: Jun 2004
Distribution: Gentoo, Knoppix HD Install (Debian)
Posts: 7

Original Poster
Rep: Reputation: 0
Alright, here's what my network/interfaces file looks like

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

# The loopback interface
# automatically added when upgrading
auto lo wlan0 eth0
iface lo inet loopback


iface eth0 inet static
	address 10.10.10.254
	netmask 255.255.255.0
	network 10.10.10.0
	broadcast 10.10.10.255
	gateway 10.10.10.254



iface wlan0 inet dhcp
But when I run /etc/init.d/networking restart , I get these error messages:

Code:
root@azwr:/home/azwr# /etc/init.d/networking restart
Setting up IP spoofing protection: rp_filter.
Reconfiguring network interfaces...wlanctl-ng: No such device
Failed to enable the device, exitcode= 1 .
run-parts: /etc/network/if-pre-up.d/linux-wlan-ng-pre-up exited with return code 1
wlanctl-ng: No such device
Failed to enable the device, exitcode= 1 .
run-parts: /etc/network/if-pre-up.d/linux-wlan-ng_pre-up exited with return code 1
done.
Any ideas?
 
Old 06-19-2004, 11:13 AM   #4
azwr
LQ Newbie
 
Registered: Jun 2004
Distribution: Gentoo, Knoppix HD Install (Debian)
Posts: 7

Original Poster
Rep: Reputation: 0
Bah, I'm beginning to think that just installing a normal distribution would do me better ... I'm having problems because this HD install of Knoppix allows you to boot with a couple of different kernels, and so all the files I'm looking for to fix this are in non-standard places. Just a quick annoyance vent.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
DHCP on bootup, how do I background it? Oxyacetylene Linux - Networking 7 10-21-2004 07:37 AM
Disable DHCP at bootup lunartek Linux - Newbie 1 06-13-2003 04:38 AM
etho bootup dhcp wait time change skeletal29 Linux - Networking 4 06-19-2002 03:49 PM
DHCP at bootup, and a few other newb questions Oooska Linux - Networking 1 01-25-2002 09:44 PM
Starting my DHCP server at bootup nine Linux - Newbie 4 01-16-2001 08:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking

All times are GMT -5. The time now is 07:20 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration