LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 06-28-2004, 10:18 PM   #1
dissolved soul
Member
 
Registered: Sep 2002
Posts: 35

Rep: Reputation: 15
slack 10... dhcp problems and a few other misc questions


coming off of a fresh slack 10 install..

dhcp just doesn't work.

i have tried it with 2 different linksys routers. i can do netconfig and type slaptop as my host, anything as the domain, and choose dhcp.. or dhcpcd eth0 as root, neither work.

i can set a static ip and it works fine. every time i do:
ifconfig eth0 192.168.1.105 broadcast 192.168.1.0 netmask 255.255.255.0
and
route add default gw 192.168.1.1

i don't want to have to do that every time i login. the routers are setup for dhcp. all my other machines work fine with dhcp (windoze).. and this particular machine has used mandrake on it with dhcp just fine.

i have win4lin 5 on here.. and now for some reason the networking isn't working at all in there after i rebooted my computer (after installing it for the first time). probably has to do with the dhcp/static stuff.


also,
in gnome.. every time it starts up, the gnome splash screen stays on until i click on it -- then it goes away. and, every time i set a wallpaper and restart (and tell it to save my settings), the wallpaper isn't there (yet it is listed and selected in the wallpaper config thing). also - in gnome, i can't right click on the desktop to add shortcuts or anything like that. any ideas?


thanks,

jason

(edit: oh yeah, forgot to ask, every time i start my machine i have to do /etc/rc.d/init.d/Win4lin start -- which script do i put that in so it automatically does it at boot?)

Last edited by dissolved soul; 06-28-2004 at 10:29 PM.
 
Old 06-28-2004, 10:37 PM   #2
lyceum
Member
 
Registered: Aug 2003
Location: N.C.
Distribution: rh9, fc1, slack 9.1, 10
Posts: 229

Rep: Reputation: 30
jason,

have a look at a couple files for me. take a look in /etc/rc.d/rc.inet1.conf

you should make sure that you see a line that says:
Code:
USE_DHCP[X]="yes"
where X is your ethernet interface.

next, take a look in /etc/rc.d/rc.wireless.conf

you can use the examples that they have there to make an entry for your network. mine looks like:
Code:
## --------- START SECTION -----------
## Pick up any Access Point, should work on most 802.11 cards
*)
    INFO="Microsoft Wireless Notebook Adapter MN-520 1.0.3"
    ESSID="myessidhere"
    MODE="Managed"
    KEY="12346789ABC"
    RATE="11M"
    ;;
## ---------- END SECTION ------------
be sure to comment out the section it tells you to if you want to use the examples.

you can always check out how these scripts run by just running them after loggin in. it will give you great chance to see how your network is initialized, and also you can put some echo lines in to track down where problems are.

hope this helps.

and as a last ditch and admittedly hackish way around it, if you can't fix it any other way you could put the
Quote:
ifconfig eth0 192.168.1.105 broadcast 192.168.1.0 netmask 255.255.255.0
and
route add default gw 192.168.1.1
into the file /etc/rc.d/rc.local

this file is run last of the scripts and would essentially call those commands for you just before you login. again, not the best solution, but would save you some typing if you can't solve the problem another way.
 
Old 06-28-2004, 10:48 PM   #3
dissolved soul
Member
 
Registered: Sep 2002
Posts: 35

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by lyceum
[B]jason,

have a look at a couple files for me. take a look in /etc/rc.d/rc.inet1.conf

you should make sure that you see a line that says:
Code:
USE_DHCP[X]="yes"
where X is your ethernet interface.
#Config information for eth0:
IPADDR[0]=""
NETMASK[0]=""
USE_DHCP[0]="yes"
DHCP_HOSTNAME[0]=""

Quote:
next, take a look in /etc/rc.d/rc.wireless.conf

you can use the examples that they have there to make an entry for your network. mine looks like:
Code:
## --------- START SECTION -----------
## Pick up any Access Point, should work on most 802.11 cards
*)
    INFO="Microsoft Wireless Notebook Adapter MN-520 1.0.3"
    ESSID="myessidhere"
    MODE="Managed"
    KEY="12346789ABC"
    RATE="11M"
    ;;
## ---------- END SECTION ------------
be sure to comment out the section it tells you to if you want to use the examples.
I haven't got that file. It's not a wireless nic.


Thanks for the suggestions!

Any other ideas?
 
Old 08-05-2004, 03:43 PM   #4
flytiger
LQ Newbie
 
Registered: Jul 2004
Posts: 15

Rep: Reputation: 0
miy nic behave the same,

work on static ip
strike on dhcp.

I hope someone have clue,

P.S. this is not happening in FC2, Mdk10 and Debian Sarge
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Misc. Questions About 10.2 Duo Secundus Slackware 1 09-29-2005 05:40 AM
Misc shell questions Cyth Linux - Software 1 03-13-2003 09:31 AM
Misc Questions OlRoy Linux - General 3 12-09-2002 06:03 PM
Misc Questions.... ugenn Linux - General 2 06-27-2002 01:00 PM
Misc. Linux questions. ugenn Linux - Newbie 7 04-16-2002 09:42 AM


All times are GMT -5. The time now is 06:55 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration