LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Not able to connect to internet in slackware (https://www.linuxquestions.org/questions/linux-networking-3/not-able-to-connect-to-internet-in-slackware-727842/)

vitalstrike82 05-22-2009 01:33 PM

Not able to connect to internet in slackware
 
Greetings,

i'm trying to connect to the ethernet using my ethernet cable but it seems that my Desktop is not able to get and ip address.

I connect the cable to my laptop, using slackware OS too, it can connect and surf the internet. Before i install my Desktop with slackware, i have tried connecting to the internet using windows which shows that the network card is working.

I have tried to use this command as root:

Code:

/etc/rc.d/rc.inet1 restart
but the system still does not get the ip address of my network.

I wonder if slackware has install my network card in my system.
My 1st question: How do i check if my network card has been install and configure in the system?

This is the network card in my desktop when i use lspci command:

Code:

01:080 Ethernet controller: Intel Corporation 82801BA/BAM/CA/CAM Ethernet Controller (rev 01)
My 2nd Question: How can i set up the desktop to connect to my network?

thanks

mdg 05-22-2009 02:14 PM

On your desktop box, type in a terminal as root and post results:
Code:

ifconfig -a
On your laptop, post results of
Code:

lsmod | grep eepro100
and
Code:

lsmod | grep ee100

vitalstrike82 05-23-2009 12:19 AM

This is my ifconfig -a for my desktop

Code:

eth0      Link encap:Ethernet  HWaddr 00:00:e2:4d:0b:0a
          BROADCAST MULTICAST  MTU:1500  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:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

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:112 errors:0 dropped:0 overruns:0 frame:0
          TX packets:112 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:9536 (9.3 KiB)  TX bytes:9536

And what does the last 2 commands check for?
I try on my laptop and desktop, both return no results.

Thanks for the help

mdg 05-23-2009 01:19 AM

The last two commands check for thr presence of the drivers for your NIC.
Your card's driver is the eepro100. For some reason it doesn't show up on your laptop, which you say can connect to the internet.

Try inserting the module manually as root on your desktop and then restart the network.

Load module:
Code:

modprobe eepro100
Restart network:
Code:

/etc/rc.d/rc.inet1 restart
Check interface:
Code:

ifconfig -a
All commands must be root.

vitalstrike82 05-23-2009 04:52 AM

Hi,

tried to modprobe and restart the network. Still cannot connect to the network.

I try to issue the command
Quote:

dhclient eth0
and these are the results it prompt:

Quote:

Listening on LPF/eth0/00:00:e2:4d:0b:0a
Sending on LPF/eth0/00:00:e2:4d:0b:0a
DHCPDISCOVER eth0 to 255.255.255.255 port 7
DHCPDISCOVER eth0 to 255.255.255.255 port 15
DHCPDISCOVER eth0 to 255.255.255.255 port 20
DHCPDISCOVER eth0 to 255.255.255.255 port 18
DHCPDISCOVER eth0 to 255.255.255.255 port 1
No DHCPOFFERS received
No working leases in persistent database - sleeping
Next i issue the command ifconfig -a and this is what it prompt which is something differnet from my previous post. After the command dhclient eth0, a new line in bold appears. Still i not able to surf net
Quote:

Link encap:Ethernet HWaddr 00:00:e2:4d:0b:0a
inet6 addr: fe80::200:e2ff:fe4d:b0a/64 Scope: Link
BROADCAST MULTICAST MTU:1500 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:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
What can i do next?
Btw how do you know that the driver is eep100 by the way? is it because it is a standard in slackware?

thanks

mdg 05-23-2009 05:31 AM

Did the modprobe command return an error message?

The eepro100/ee100 modules come from internet searches (example). Relevant section:
Code:

82801BA/BAM/CA/CAM Ethernet Controller  pci  e100  Intel Corporation  Intel Corporation  EtherExpress PRO/100 VE
There are also sites which list the eepro100 as the driver, so it's not clear which it is.

Try installing the ee100 module:
Code:

modprobe ee100
If no error is returned, restart the network and check the interface to see if you have IP.

If that doesn't work, you could try bringing up the interface with your IP address:
Code:

ifconfig eth0 up xxx.xxx.xxx.xxx
xx is of course your IP.
This last step depends on there being no error returned from the modprobe command.

vitalstrike82 05-23-2009 09:45 AM

when i use modprobe eepro100, it does not return any errors. I will install the ee100 and update later..
thanks

rob.rice 05-23-2009 10:04 AM

did you tell /etc/rc.d/rc.inet1 to use dhcp on eth0 in /etc/rc.d/rc.inet1.conf ?
like so


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

most of the time this is all you need
to do to get slak on the net with a
broad band connection
this is also the point you should
where you should have a root pass word set

vitalstrike82 05-23-2009 11:36 AM

i have downloaded the e100 driver from : http://downloadcenter.intel.com/Deta...1&DwnldID=2896

installer: e100-3.5.17.tar.gz

When issue make install command, this is the error:

Code:

make[1]: Warning: File '/usr/src/linux-2.6.24.5/arch/x86/Makefile_32.cpu' has modification time 2.3e+08 s in the future scripts/Makefile.build:46 *** CFLAGS was changed in  '/home/CM/Desktop/e100-3.5.17/src/Makefile". Fix it to use EXTRA_CLFAGS.
WHats the solution to solve this error or when can i find this ee100 driver suitable for slackware?

allend 05-23-2009 11:46 AM

The eepro100 kernel module is blacklisted by default in /etc/modprobe.d/blacklist.
Try commenting out the line in the blacklist file.

vitalstrike82 05-23-2009 01:49 PM

hi,
i have tried the ways you all have suggested:

1) this is available in the inet1.conf file

Quote:

# Config information for eth0:
IPADDR[0]=""
NETMASK[0]=""
USE_DHCP[0]="yes"
DHCP_HOSTNAME[0]=""
2) I have comment the eepro100 in the blacklist file. I have even add a new blacklist on ee100

3) i have force an address on eth0.

All steps still cannot allow me to ping to google website successfully.

Any other solutions?

thanks

allend 05-24-2009 07:18 AM

I think that you need the e100 kernel module to drive this ( I have an 82801 CAM in my laptop). The required module is part of the default Slackware install. Perhaps you should try reinstalling the kernel-modules package to ensure that all your kernel modules are OK. Also return the blacklist file to its original state. BTW I hope you know that when you edit a file in /etc/modprobe.d, you should remove any editor backup files. ALL files in /etc/modprobe.d are inspected when looking for module loading information. This is a very common source of problems.
After a reboot, check the output of 'lsmod | grep e100'. If nothing shows, then the kernel module is not being loaded. Try (as root), manually loading with 'modprobe -v e100' and look for any error messages.

vitalstrike82 05-24-2009 11:06 PM

Hi,

i forgot to add in something.

Before i uncomment to blacklist the eepro100, i'm able modprobe eepro100.
However when i issue modprobe ee100, it says e100 not found.

Even when i uncomment to blacklist eepro100, after restarting the whole system, i'm still able to modprobe the eepro100.

ee100 is not able to modprobe.

Beofore i come to post this question here, i have format the root partition and reinstall the slackware 12.1 again without encountering any errors.

I like to ask if is there amy command or ways to check if e100 is installed into my system since it is part of the default slackware install.

Thanks

allend 05-25-2009 08:50 AM

To check whether the module is available you can do:
'ls /lib/modules/$(uname -r)/kernel/drivers/net'
You should see e100.ko amongst the list.

You say you are issuing 'modprobe ee100'. It should be 'modprobe e100'.

If the module has been loaded, then it will show in the output of 'lsmod'.

vitalstrike82 05-26-2009 09:12 AM

Oh gosh...

i blacklist e100 and
modprobe eepro100
then /etc/rc.d/rc.inet1 restart

ifconfig still no ip address.

I blacklist eepro100
modprobe e100
restart network still no ip address

using lsmod | grep e100 or lsmod | grep eepro100
They return answers eg for e100:

Code:

e100    35724  0
mii    8448  1 e100

when i modprobe, there are no errors. now i lost.. i dunno what can i do.. any suggestions from you guys?


All times are GMT -5. The time now is 04:12 AM.