SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
So I installed Slackware Linux yesterday, the firs time I've ever tried linux. I found some website that said to run netconfig from the terminal So I ran that. Set my hostname as my name, and the website said for the domain name to enter ubc.ca so I did that, and then USE DHCP. So it saved the settings and my internet did not work.
So I edited /etc/rc.d/rc.inet1 conf to look like this
# Config information for eth0:
IPADDR[0]="192.168.1.109"
NETMASK[0]="255.255.255.0"
USE_DHCP[0]=""
DHCP_HOSTNAME[0]=""
and I saved it. And internet worked fine. But now when I started up my computer today, the internet won't work. Any help?
I don't use slackware so I'm not familiar with its configuration files. The name of the file you edited "rc.inet1" might imply that it is the settings for eth1. Could you check your example or documentation to see if you should use /etc/rc.d/rc.inet0.conf instead. I'm just guessing here.
Is there a boot script that runs "ifup-eth0" directly or indirectly?
realy all you had to do is this. in the /etc/rc.d/rc.inet.conf was dhcp=yes this would make it eth0 start at boot and run dhcpcd and it would do the gateway and ip. Then to be real cool down load from slackware extra wicd and install it and just start your machine it configures everything for you and your on line does your wifi if the device is there does wpa etc. good stuff but one cool thing you did do was a netconfig. that least your not darkstar there is a million out there. that is a grateful dead thing Pat loves the DEAD.
down load then right click on it open it with system Package Manager and then reboot. your up and going. most likely wicd will be a part of the next distro.
Now to translate to American English with grammar and punctuation.
Quote:
Set my hostname as my name, and the website said for the domain name to enter ubc.ca so I did that, and then USE DHCP. So it saved the settings and my internet did not work.
No need for that, unless you use the actual ubc.ca as your internet provider, AND it is required for you to logon.
I personally use mshome.net to keep compatibility with my windows machines.
Now for questions:
Do you use dhcp?
Could you post the results of
Code:
ifconfig
(This will let us know if the ethernet port is even working)
Could you post the results of
Code:
lsmod
(This will tell us what modules are loading)
You may have to cut/paste to get the results, or write them out on paper...A pain, I know!
After that, we'll see what needs to be done next.
As for wicd, unless you use wi-fi to connect, you don't need it.
Actually, I have wi-fi, and don't use it, so....
Last edited by cwwilson721; 02-06-2009 at 12:19 PM.
On my system DHCP does not detect my router ip correctly but instead automatically configures it for my Digital TV access, so when using netconfig i had to choose "static ip" and not "dhcp" and insert my machine an router ip addresses by hand. Baseless assumption maybe, but thought i mention it. For now probably DHCP just reconfigures your net upon boot.
I use example.org as my domain, lol
Last edited by veeall; 02-07-2009 at 12:27 AM.
Reason: Router not rooter :)
I don't use slackware so I'm not familiar with its configuration files. The name of the file you edited "rc.inet1" might imply that it is the settings for eth1. Could you check your example or documentation to see if you should use /etc/rc.d/rc.inet0.conf instead. I'm just guessing here.
Is there a boot script that runs "ifup-eth0" directly or indirectly?
Terrible naming convention. I heard that some distribution name the interface configuration files after the interface name, while the content of the config files also contain this name. Then the interface name is specified multiple times, which deviates the Tao of programming.
Instead, Slackware names the internet service scripts after the "stage". In the first stage, IFs are brought up, routing table is set, DNS server addresses are obtained, etc.. Corresponding script is rc.inet1. In the second stage, servers are brought up. Corresponding script is rc.inet2.
So I installed Slackware Linux yesterday, the firs time I've ever tried linux. I found some website that said to run netconfig from the terminal So I ran that. Set my hostname as my name, and the website said for the domain name to enter ubc.ca so I did that, and then USE DHCP. So it saved the settings and my internet did not work.
So I edited /etc/rc.d/rc.inet1 conf to look like this
# Config information for eth0:
IPADDR[0]="192.168.1.109"
NETMASK[0]="255.255.255.0"
USE_DHCP[0]=""
DHCP_HOSTNAME[0]=""
and I saved it. And internet worked fine. But now when I started up my computer today, the internet won't work. Any help?
If you specified "USE DHCP" in netconfig, then the value of USE_DHCP[0] should have been "yes". Now it's empty. Confusing.
And, what do you mean by "won't work"? What error message did you get? Knowing that may narrow our search of errors.
On my system DHCP does not detect my rooters ip correctly but instead automatically configures it for my Digital TV access, so when using netconfig i had to choose "static ip" and not "dhcp" and insert my machine an rooter ip addresses by hand. Baseless assumption maybe, but thought i mention it. For now probably DHCP just reconfigures your net upon boot.
I use example.org as my domain, lol
Do you mean "router"? As you said "configures for ..." I think you are running a dhcp server, not a client. That may be the reason why it does not work.
Do you mean "router"? As you said "configures for ..." I think you are running a dhcp server, not a client. That may be the reason why it does not work.
Sorry, of course "router", i fixed that in my post too.
I get both internet and TV from the same wire, both have his own ip and dns assigned from my service provider. I think thats why dhcp gets confused but this is not really problem for me because i want my machine to have static ip anyway.
While not very literate in networking i was just suggesting that by editing maually /etc/rc.d/rc.inet1 to "USE_DHCP[0]=""" and typing in ip and dns info - the same would be achieved by choosing "static ip" instead "dhcp" during 'netconfig' and that way it should stick over reboot also. Correct me if i´m wrong.
Sorry for misused english words. English is not my native language.
Sorry, of course "router", i fixed that in my post too.
I get both internet and TV from the same wire, both have his own ip and dns assigned from my service provider. I think thats why dhcp gets confused but this is not really problem for me because i want my machine to have static ip anyway.
Do you mean you wish to keep "/etc/resolv.conf" or similar things untouched on making dhcp queries? You can set
Code:
DHCP_KEEPRESOLV[i]="yes"
where i should be replaced by the interface index. Have a look into "/etc/rc.d/rc.inet1". There are many such options.
Quote:
Sorry for misused english words. English is not my native language.
It's not mine, either. I always make mistakes here and there. But for keywords, I often look up a dictionary before posting
Unknown host google (or whatever site I try to go to)
In response to cwwilson721: First off, I'm not exactly sure if I use DHCP or not, I was just told that's how to set up internet. But I have a linksys wireless router. But I plug an ethernet chord into it and then plug it into the ethernet jack on my laptop. And here are the results you wanted
bash-3.1# ifconfig
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
One more thing to post, please. Could you show the results of [code]lspci[\code] please? That command tells us the chipset of the ethernet interface.
If the module is not loading, all the editing of rc.inet1.conf will not do anything.
Lets first make sure the card is detected, loaded, and doing it's voodoo first, THEN work on configuration.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.