Internet Problem - Linux Newbie
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:
I personally use mshome.net to keep compatibility with my windows machines. Now for questions:
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.... |
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 |
Quote:
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. |
Quote:
And, what do you mean by "won't work"? What error message did you get? Knowing that may narrow our search of errors. |
Quote:
|
Quote:
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. |
Quote:
Code:
DHCP_KEEPRESOLV[i]="yes" Quote:
|
In response to guanx: I don't get a system error message, but when I open up Konqueror and try to go to a website I get
"An error occured while trying to load http://whatever 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) bash-3.1# lsmod Module Size Used by appletalk 33580 2 ax25 49892 2 ipx 27304 2 p8023 5504 1 ipx snd_seq_dummy 6788 0 snd_seq_oss 33408 0 snd_seq_midi_event 10240 1 snd_seq_oss snd_seq 50928 5 snd_seq_dummy,snd_seq_oss,snd_seq_midi_event snd_seq_device 10380 3 snd_seq_dummy,snd_seq_oss,snd_seq snd_pcm_oss 40480 0 snd_mixer_oss 17920 1 snd_pcm_oss ipv6 241956 10 fuse 54684 2 lp 13572 0 b43 128412 0 rfkill 12184 1 b43 mac80211 158108 1 b43 cfg80211 27144 1 mac80211 led_class 7684 1 b43 input_polldev 7432 1 b43 ppdev 11268 0 yenta_socket 27020 2 snd_intel8x0 32540 2 rsrc_nonstatic 14464 1 yenta_socket snd_ac97_codec 101412 1 snd_intel8x0 ac97_bus 5632 1 snd_ac97_codec snd_pcm 70788 4 snd_pcm_oss,snd_intel8x0,snd_ac97_codec ssb 41348 1 b43 pcmcia 36524 2 b43,ssb snd_timer 23176 3 snd_seq,snd_pcm parport_pc 28196 1 pcmcia_core 35604 5 b43,yenta_socket,rsrc_nonstatic,ssb,pcmcia video 20624 0 psmouse 40592 0 thermal 19484 0 parport 34796 3 lp,ppdev,parport_pc evdev 13088 0 8139too 26624 0 output 6656 1 video mii 8448 1 8139too snd 51748 11 snd_seq_oss,snd_seq,snd_seq_device,snd_pcm_oss,snd_mixer_oss,snd_intel8x0,snd_ac97_codec,snd_pcm,snd _timer shpchp 33172 0 processor 36648 1 thermal serio_raw 9220 0 i2c_nforce2 10244 0 amd64_agp 13832 1 container 7424 0 agpgart 32584 1 amd64_agp thermal_sys 15144 3 video,thermal,processor soundcore 10080 1 snd snd_page_alloc 11400 2 snd_intel8x0,snd_pcm k8temp 8192 0 battery 14340 0 button 10128 0 ac 8196 0 hwmon 6300 2 thermal_sys,k8temp wmi 9768 0 |
Is /etc/rc.d/rc.inet1 executable?
Use "ls -l /etc/rc.d/rc.inet1" to see it. |
Quote:
|
Quote:
Code:
# Config information for eth1: |
From what I gather:
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. |
All times are GMT -5. The time now is 10:51 AM. |