LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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
 
Search this Thread
Old 01-02-2008, 06:07 AM   #1
gopi.d
Member
 
Registered: Feb 2006
Location: India
Distribution: Slackware 12, Fedora 7, Kubuntu-7.04
Posts: 172

Rep: Reputation: 30
LAN auto detection in slackware12


i'm facing lot of troubles in setting up my lan. i have a ethernet router connected to the ethernet port and has dhcp enabled. i had configured the lan to get ip settings through dhcp because i tried with static ip but could not get internet working. now on everytime restarting my system i have to bring down the ethernet interface and bring it up to access internet. i guess there is some problem with the default gateway and pppoe internet connection. but i had tried with some distros like ubuntu, mandriva the network activates and configures itself automatically just like windows. i want the same to be done in my slackware also bcoz i don't want to change to other distros.
 
Old 01-02-2008, 07:46 AM   #2
ottavio
Member
 
Registered: Nov 2007
Posts: 312

Rep: Reputation: 46
did you run netconfig?
 
Old 01-02-2008, 11:54 AM   #3
gopi.d
Member
 
Registered: Feb 2006
Location: India
Distribution: Slackware 12, Fedora 7, Kubuntu-7.04
Posts: 172

Original Poster
Rep: Reputation: 30
yes i had run netconfig and setup the lan to use dhcp. when i boot up my system i can see network configuration getting ip via dhcp and local browsing is possible but could not browse internet. to get internet working i have to manually bring down ethernet connection and start it again, i have to do this every time i start my computer. i tried setting ethernet ip statically but then also internet didn't work. now i had set ethernet interface without gateway ip and internet works fine. but i have plans to use this system as internet gateway so using lan without gateway will be problem for lan connections. i like the way ubuntu detects the ethernet interface when i switchon the router and configuring it automatically, i like to make the same way in slackware too because out of my experiments with linux distros only slackware proved to be stable than all. i don't want to give up slack but need the plug n play options like ubuntu and mandriva.
 
Old 01-02-2008, 01:20 PM   #4
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Rep: Reputation: 53
ping google, maybe your DNS are servers are messed up
 
Old 01-03-2008, 06:47 AM   #5
gopi.d
Member
 
Registered: Feb 2006
Location: India
Distribution: Slackware 12, Fedora 7, Kubuntu-7.04
Posts: 172

Original Poster
Rep: Reputation: 30
i have setup my lan connection sucessfully but i want to know is there any network manager available for slackware which will automatically detect when i plugin a network cable and automatically configure my ethernet card.
 
Old 01-03-2008, 07:36 AM   #6
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 11,378
Blog Entries: 3

Rep: Reputation: 1478Reputation: 1478Reputation: 1478Reputation: 1478Reputation: 1478Reputation: 1478Reputation: 1478Reputation: 1478Reputation: 1478Reputation: 1478
Hi,

Quote:
Originally Posted by gopi.d View Post
i have setup my lan connection sucessfully but i want to know is there any network manager available for slackware which will automatically detect when i plugin a network cable and automatically configure my ethernet card.
You can edit the 'etc/rc.d/rc.inet1.conf' file to change the settings. If you do make a change to the configuration then do a '/etc/rc.d/rc.inet1 restart' to configure the changes.

You could look at the 'network section' of the 'Slackware-Links' to get some good reference.

Quote:
Originally Posted by gopi.d View Post
i want to know is there any network manager available for slackware which will automatically detect when i plugin a network cable and automatically configure my ethernet card.
You could write a simple script. But Why? You are going to change the configuration how often? If a laptop is traveling then you would move from Ethernet to wireless most likely. Once you have the device(s) configured then you would be using the active one. If you are using a 'X' environment then each has network support.
 
Old 01-05-2008, 05:55 AM   #7
urka58
Member
 
Registered: Nov 2003
Distribution: slackware 14
Posts: 535

Rep: Reputation: 30
Routers, very often, have a service called "DNS relay" activated by default. This is a sort of automagically DNS discover. If you want to use this service you must indicate as default gateway of your LAN, the IP address of the router, commonly 192.168.1.1
If you want to set up a DNS of your choice, you must disable such service on the router or if possible (and usuallly it is) configure DNSs on the router.
If you choose not to use "DNS relay" you have to set DNS while running netconfig or manually on /etc/resolv.conf.
The problem comes when using DHCP configured network, as dhcpcd (the client) temporarely overwrite your /etc/resolv.conf with DNS stated on DHCP server.
This can be overridden by adding -R option when starting dhcpcd or permanently by adding a line such as:

# Config information for eth0:
IPADDR[0]=""
NETMASK[0]=""
USE_DHCP[0]="yes"
DHCP_HOSTNAME[0]=""
DHCP_KEEPRESOLV[0]="yes" <----THIS

to your /etc/rc.d/rc.inet1.conf

If you want your connection started when you plug in the cable there is a demon available called ifplugd
http://www.slackware.com/~alien/slac...lugd/pkg/12.0/
but it requires some modifications on your startup scripts.
It seems to me you're not prone to such kind of thinks...so is up to you.
Hope this helps
Ciao
 
Old 01-05-2008, 05:15 PM   #8
campher
Member
 
Registered: Jul 2006
Distribution: slackware
Posts: 51

Rep: Reputation: 15
time

another possible problem is that one of your configurations causes a time out and the whole thing doesnt work in the end.

im not sure what this pppoe really is but when its an dialup connection and you are trying to configure a dns server before the connection is established then its possible that this configuration fails and you have no internet connection at all.

when i tinkered a script for automatic network configuration i had to put in lots of delay 5 or delay 10 lines inside the script because dhcp server or gateway (on static ip) wasnt answering fast enough.


campher
 
Old 01-06-2008, 03:42 AM   #9
C-Sniper
Member
 
Registered: Dec 2006
Distribution: Slackware
Posts: 507

Rep: Reputation: 33
have you tried running "dhcpcd eth0" or whatever you network is for the eth? that worked for me after trying everything else.
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do i turn off monitor auto-detection rocket777 Ubuntu 1 05-09-2007 06:56 PM
auto cd detection and kaffeine foustware Suse/Novell 1 12-25-2005 03:11 AM
About the auto-usb detection Saulo Suse/Novell 1 09-03-2005 12:43 AM
RH9 screen auto detection eyoyo Linux - General 3 07-04-2004 07:19 AM
how good is slackwares auto detection?? bosewicht Slackware 3 11-24-2003 05:32 PM


All times are GMT -5. The time now is 04:53 PM.

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 Google+: linuxquestions
Open Source Consulting | Domain Registration