LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-26-2007, 11:02 AM   #1
m4rk5
LQ Newbie
 
Registered: Aug 2007
Location: Lithunia
Distribution: Slackware
Posts: 3

Rep: Reputation: 0
No internet on Slackware 11


Hello everyone,
after the weekend of trying to figure out why there is no internet in my PC i decided to ask help from you. I'm using Slackware for about 4 years and i know about Linux all i need to use it normally, i mean that i'm not advanced Linux user. So here's the problem:

I have internet which demands Right MAC address, IP, NetMask, GW, DHCP, DNS names. On windows it is enough to specify MAC address and it gets all other (though DHCP i guess) Earlyer i just had to edit /etc/rc.d/rc.inet1.conf and everything were good, till i installed Slacware 11 to my laptop. I also changed kernel to 2.6.21. I'm not sure, but i think that internet wasn't working with old kernel also. I also used netconfig, but the same result. When linux loads eth0 is down. I tried to "up" it in rc.local, but no results. Through konsole it's done without problems. When i plug in internet cable a small download starts (about 3-4 kB/s).
P.S. during boot the line "dhcpcd: MAC address = 00:10:a7:27:51:b8" hangs for about minute, it changes MAC.

here's my lspci:

Quote:
00:00.0 Host bridge: Intel Corporation Mobile 945GM/PM/GMS/940GML and 945GT Express
Memory Controller Hub (rev 03)
00:01.0 PCI bridge: Intel Corporation Mobile 945GM/PM/GMS/940GML and 945GT Express
PCI Express Root Port (rev 03)
00:1b.0 Audio device: Intel Corporation 82801G (ICH7 Family) High Definition Audio
Controller (rev 02)
00:1c.0 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 1 (rev
02)
00:1c.1 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 2 (rev
02)
00:1d.0 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #1 (rev 02)
00:1d.1 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #2 (rev 02)
00:1d.2 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #3 (rev 02)
00:1d.3 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #4 (rev 02)
00:1d.7 USB Controller: Intel Corporation 82801G (ICH7 Family) USB2 EHCI Controller (rev 02)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev e2)
00:1f.0 ISA bridge: Intel Corporation 82801GBM (ICH7-M) LPC Interface Bridge (rev 0 2)
00:1f.2 IDE interface: Intel Corporation 82801GBM/GHM (ICH7 Family) Serial ATA Stor age Controller IDE (rev 02)
00:1f.3 SMBus: Intel Corporation 82801G (ICH7 Family) SMBus Controller (rev 02)
01:00.0 VGA compatible controller: nVidia Corporation Quadro NVS 110M / GeForce Go 7300 (rev a1)
03:00.0 Network controller: Intel Corporation PRO/Wireless 3945ABG Network Connecti on (rev 02)
04:01.0 CardBus bridge: Ricoh Co Ltd RL5c476 II (rev b3)
04:01.1 FireWire (IEEE 1394): Ricoh Co Ltd R5C552 IEEE 1394 Controller (rev 08)
04:01.2 Class 0805: Ricoh Co Ltd R5C822 SD/SDIO/MMC/MS/MSPro Host Adapter (rev 17)
04:01.3 System peripheral: Ricoh Co Ltd R5C592 Memory Stick Bus Host Adapter (rev 0 8)
04:07.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8169 Gigabit Ether
and lsmod (maybe kernel konfigured wrong):
Quote:
Module Size Used by
snd_seq_oss 31104 0
snd_seq_device 9480 1 snd_seq_oss
snd_seq_midi_event 9600 1 snd_seq_oss
snd_seq 45648 4 snd_seq_oss,snd_seq_midi_event
snd_pcm_oss 39104 0
snd_mixer_oss 17408 1 snd_pcm_oss
nvidia 6833892 22
pcmcia 32152 0
snd_hda_intel 20536 4
snd_hda_codec 202160 1 snd_hda_intel
snd_pcm 60556 4 snd_pcm_oss,snd_hda_intel,snd_hda_codec
yenta_socket 26268 1
snd_timer 21512 3 snd_seq,snd_pcm
snd 43364 15 snd_seq_oss,snd_seq_device,snd_seq,snd_pcm_oss,snd_mixer_oss,snd_hda_intel,snd_hda_codec,snd_pcm,snd _timer
rsrc_nonstatic 13188 1 yenta_socket
soundcore 9696 1 snd
pcmcia_core 35516 3 pcmcia,yenta_socket,rsrc_nonstatic
snd_page_alloc 11272 2 snd_hda_intel,snd_pcm
ifconfig:
Quote:
eth0 Link encap:Ethernet HWaddr 00:10:A7:27:51:B8
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:4072 errors:0 dropped:0 overruns:0 frame:0
TX packets:20 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:333877 (326.0 KiB) TX bytes:5656 (5.5 KiB)
Interrupt:17 Base address:0xcc00

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)
rc.inet1.conf:
Quote:
# Config information for eth0:
IPADDR[0]="84.32.242.208"
NETMASK[0]="255.255.254.0"
USE_DHCP[0]="yes"
DHCP_HOSTNAME[0]="84.32.39.199"
HWADDR[0]="00:10:A7:27:51:B8"

# Config information for eth1:
IPADDR[1]=""
NETMASK[1]=""
USE_DHCP[1]=""
DHCP_HOSTNAME[1]=""

# Config information for eth2:
IPADDR[2]=""
NETMASK[2]=""
USE_DHCP[2]=""
DHCP_HOSTNAME[2]=""

# Config information for eth3:
IPADDR[3]=""
NETMASK[3]=""
USE_DHCP[3]=""
DHCP_HOSTNAME[3]=""

# Default gateway IP address:
GATEWAY="84.32.242.1"

# Change this to "yes" for debugging output to stdout. Unfortunately,
# /sbin/hotplug seems to disable stdout so you'll only see debugging output
# when rc.inet1 is called directly.
DEBUG_ETH_UP="no"

rest of it default.
Slackware 11, KDE 3.5.4, Qt 3.3.6, Kernel 2.6.21, ASUS Barebone notebook
sorry for such a long post, only wanted to give more information, and for bad english.

Thanks in advance.
 
Old 08-26-2007, 11:14 AM   #2
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
You definitely need to straighten out your interface configuration here.

Code:
# Config information for eth0:
IPADDR[0]="84.32.242.208"
NETMASK[0]="255.255.254.0"
USE_DHCP[0]="yes"
DHCP_HOSTNAME[0]="84.32.39.199"
HWADDR[0]="00:10:A7:27:51:B8"
Here you are telling it to use both a static IP and DHCP, which obviously it cannot do at the same time. You are then specifying a completely separate IP as the DHCP hostname, which is supposed to be the name of your computer, not an IP.

As for changing the MAC, there should be no reason to change this at all. If you are dual-booting Windows and Linux, or at least had Windows installed on this same machine previously when you were online, then the MAC is going to be the same between them. Even if you had another MAC, just turning the modem off and on a few times would be enough for it to connect with the new MAC.
 
Old 08-26-2007, 02:09 PM   #3
m4rk5
LQ Newbie
 
Registered: Aug 2007
Location: Lithunia
Distribution: Slackware
Posts: 3

Original Poster
Rep: Reputation: 0
well, i tryed to use static IP, eth0 showed up and pinged to my IP (that raised my mood ), to all other: 100% loss.
I also used DHCP. Result: connect: Network is unreachable. Maybe i don't know what to specify at DHCP_HOSTNAME. Buti don't have that information, all i used earlyer is:
MAC 00:10:A7:27:51:B8
IP 84.32.242.208
Sub Mask 255.255.254.0
GateWay 84.32.242.1
DHCP Serv 84.32.39.199
DNS Servers 84.32.38.10
84.32.38.11

Quote:
As for changing the MAC, there should be no reason to change this at all. If you are dual-booting Windows and Linux, or at least had Windows installed on this same machine previously when you were online, then the MAC is going to be the same between them.
I don't have windows, i'm posting from other PC, Slackware 10.2 and everything works fine here.

Quote:
Even if you had another MAC, just turning the modem off and on a few times would be enough for it to connect with the new MAC.
I recieve internet trough LAN card, not modem.

Thank you
 
Old 08-26-2007, 10:49 PM   #4
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
If your ISP is using DHCP, then that is what you should have set in inet1.conf, remove all of the other static references. You don't need to specify DNS, gateway, subnet, or IP when using DHCP; that is what DHCP is for.

Quote:
I recieve internet trough LAN card, not modem.
Certainly your NIC must connect to something. Do you have an Ethernet cable that runs between your home and your ISP's offices?

Quote:
On windows it is enough to specify MAC address and it gets all other (though DHCP i guess)
This would seem to indicate that you have been using Windows to connect. If it was not on the current machine, then on what machine was it being used on? Where did this MAC come from that you are trying to duplicate on the Slackware machine, perhaps most importantly, are you inadvertently setting the MAC of multiple computers on the network to the same thing?
 
Old 08-27-2007, 12:57 AM   #5
m4rk5
LQ Newbie
 
Registered: Aug 2007
Location: Lithunia
Distribution: Slackware
Posts: 3

Original Poster
Rep: Reputation: 0
yes,i agree that if i'm using DHCP i don't need to specify IP, GW and etc. But what can i? all i can do is USE_DHCP[0]="yes", because i don't know what to specify in DHCP_HOSTNAME. sorry, internet is not my strong part. As you said DHCP server IP do not fit here, it should be String, right? Should it be my computers HostName?

Quote:
Certainly your NIC must connect to something. Do you have an Ethernet cable that runs between your home and your ISP's offices?
Yes i have, my ISP runs cables from the basement, then it comes to switch, one cable goes to me and other to my roommate.

Quote:
This would seem to indicate that you have been using Windows to connect. If it was not on the current machine, then on what machine was it being used on? Where did this MAC come from that you are trying to duplicate on the Slackware machine, perhaps most importantly, are you inadvertently setting the MAC of multiple computers on the network to the same thing?
The situation is like this: we have three computers here, and two lines. One line is roommates (he's using windows) and other line is mine (using slackware 10.2), this spring i bought notebook, so i thought that if i change MAC on my notebook, and set everything like in Slack 10.2, when i plug-in My cable, i should get internet, i'm not using both of them with internet at the same time.

But the most interesting thing, that i would never believe that connect internet to slackware is so difficult, it never gived me so much trouble, usually about 3-5 minutes. What has changed? I fear that when i installed new kernel i didn't biuld-in some packages or modules. As this is the major thing i've changed.
 
  


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
=( cant get internet in Slackware!!!! joel_quiles Slackware 20 04-18-2007 06:17 PM
Slackware 10.1 and internet Anak1n Linux - Wireless Networking 1 01-16-2006 06:41 PM
HELP with Internet On Slackware 10.0 thomasplock Linux - Hardware 7 10-01-2004 07:16 PM
Slackware - CAn't Go On INternet RealmX Slackware 1 12-31-2003 12:50 PM
No internet on slackware 9 jr6676 Slackware 9 08-05-2003 08:31 PM

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

All times are GMT -5. The time now is 08:10 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