LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 01-21-2016, 03:50 PM   #1
ZZII
Member
 
Registered: Dec 2014
Location: house
Distribution: Fedora Cinnamon 30
Posts: 61

Rep: Reputation: Disabled
Question No internet connection with Optiplex running CentOS 6


So I'm going to put this here instead of in the newbie section because of the lack of a GUI on my install.

CentOS 6.7 (basic server) on a Dell Optiplex 780 and there's no internet.

It seems to me there is no driver. I downloaded the driver for the adapter and transferred it across. When following Intel's instructions, I came across this error.

Code:
[root@OPTIPLEX src]# make install
Makefile:65: *** Linux kernel source not found.  Stop.
I was unable to build an RPM but I assume this is an alternative to the numbered method? I followed the numbered method and was stuck at #4.

Dell Optiplex 780
Intel 82567LM-3 integrated ethernet
Connected to a router and wireless repeater
CentOS 6.7 basic server x64

There is nothing wrong with the network up to the Optiplex. I tried the ethernet cable going to the Optiplex in my desktop and it works fine.


Here is the instructions from Intel's README file

Code:
Building and Installation
=========================

To build a binary RPM* package of this driver run 'rpmbuild -tb
<filename.tar.gz>'. Replace <filename.tar.gz> with the specific file name
of he driver.

NOTES: For the build to work properly it is important that the currently
       running kernel MATCH the version and configuration of the installed
       kernel source. If you have just recompiled your kernel, reboot the
       system and choose the correct kernel to boot.

       RPM functionality has only been tested in Red Hat distributions.

1. Move the base driver tar file to the directory of your choice. For
   example, use: /home/username/e100 or /usr/local/src/e100.

2. Untar/unzip the archive by entering the following, where <x.x.x> is the
   version number for the driver tar:

     tar xfz e100-<x.x.x>.tar.gz

3. Change to the driver src directory by entering the following, where
   <x.x.x> is the version number for the driver tar:

     cd e100-<x.x.x>/src/

4. Compile the driver module:

     make install

   The binary will be installed as below:

       /lib/modules/<kernel_version>/kernel/drivers/net/e100/e100.[k]o

   The install location listed above is the default locations. It may
   not be correct for certain Linux distributions. For more information,
   see the ldistrib.txt file included in the driver tar.

5. Install the module:

     modprobe e100

6. Assign an IP address to the interface by entering the following, where
   <x> is the interface number:

     ifconfig eth<x> <IP_address>

7. Verify that the interface works. Enter the following, where <IP_address>
   is the IP address for another machine on the same subnet as the interface
   that is being tested:

     ping <IP_address>
 
Old 01-21-2016, 04:28 PM   #2
ardvark71
LQ Veteran
 
Registered: Feb 2015
Location: USA
Distribution: Lubuntu 14.04, 22.04, Windows 8.1 and 10
Posts: 6,282
Blog Entries: 4

Rep: Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842
Hi...

Without an internet connection, this will be more of a difficult process. If you can find a USB or PCI wireless adapter (if you have an available slot) that works "out of the box" in Linux, it will be much easier.

Please open a terminal and post the output of this command...

Code:
lspci -nnk | grep -i net -A2
Did you install the appropriate kernel headers and development files for your copy of CentOS? Did you confirm the kernel requirements of the driver match up with the kernel installed on your system? Also, please post the entire output you received when you tried to install the driver.

You can find your kernel version using this command...

Code:
uname-r
Is this your other thread concerning this issue?

Regards...
 
Old 01-21-2016, 05:10 PM   #3
ZZII
Member
 
Registered: Dec 2014
Location: house
Distribution: Fedora Cinnamon 30
Posts: 61

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ardvark71 View Post
Hi...

Without an internet connection, this will be more of a difficult process. If you can find a USB or PCI wireless adapter (if you have an available slot) that works "out of the box" in Linux, it will be much easier.

Please open a terminal and post the output of this command...

Code:
lspci -nnk | grep -i net -A2
Did you install the appropriate kernel headers and development files for your copy of CentOS? Did you confirm the kernel requirements of the driver match up with the kernel installed on your system? Also, please post the entire output you received when you tried to install the driver.

You can find your kernel version using this command...

Code:
uname-r
Is this your other thread concerning this issue?

Regards...
Code:
[root@OPTIPLEX ~]# lspci -nnk | grep -i net -A2
00:19.0 Ethernet controller [0200]: Intel Corportation 82567LM-3 Gigabit Network Connection [8086:10de] (rev 02)
        Subsystem: Dell Device [1028:0276]
        Kernel driver in use: e1000e
So the driver is there? It's just that there's no internet, and the ethernet adapter doesn't show in ifconfig.
I just checked and it appears if I do -a

All I can tell you is that I used "DVD1" and selected "basic server" with a few other options enabled for what I wanted to do.

Checked and kernel is 2.6.32-573.e16.x86_64

Yes that's my thread.

So it's not the driver? What could it be, do I have to manually initialize something?
 
Old 01-21-2016, 08:24 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
system-config-network should be installed or you can configure the adapter via the other methods in the link below.

http://www.how2centos.com/centos-configure-network/
 
Old 01-21-2016, 08:41 PM   #5
ZZII
Member
 
Registered: Dec 2014
Location: house
Distribution: Fedora Cinnamon 30
Posts: 61

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by michaelk View Post
system-config-network should be installed or you can configure the adapter via the other methods in the link below.

http://www.how2centos.com/centos-configure-network/
I had a look at that but didn't understand really what to do. Should I set a static IP address? (I've done that in Win7 so I know what I'm doing for once)

It doesn't seem to work unless I've done something incorrectly.

Last edited by ZZII; 01-21-2016 at 09:15 PM.
 
Old 01-21-2016, 08:57 PM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
A server should have a static IP address. You will also need to specify a DNS, google's is 8.8.8.8. Sometimes I will configure a server with DHCP and then setup an IP reservation on the router which more or less is the same thing as a static IP.
 
Old 01-21-2016, 09:22 PM   #7
ZZII
Member
 
Registered: Dec 2014
Location: house
Distribution: Fedora Cinnamon 30
Posts: 61

Original Poster
Rep: Reputation: Disabled
Oh yeah I just tried and it doesn't seem to work. It's a little different than Win7. (Oh course you need a static IP what was I thinking)

So I checked my ifconfig on my desktop and used those settings, changing the IP address. I tried the DNS for my desktop as the DNS as well as Google, neither seem to work.
 
Old 01-22-2016, 06:03 AM   #8
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
By what method did you use i.e. the system-config-network wizard or manually? Post the output ifconfig.
 
Old 01-22-2016, 06:36 AM   #9
ZZII
Member
 
Registered: Dec 2014
Location: house
Distribution: Fedora Cinnamon 30
Posts: 61

Original Poster
Rep: Reputation: Disabled
I used system-config-network and tried to use the same setting as ifconfig on my desktop. (I used inet and changed the last number for the static ip, bcast for default gateway and checked the DNS server using a command I found on the internet, and also tried using 8.8.8.8 as well.) Is this correct? ifconfig isn't exactly like ipconfig that I'm used to.

Code:
[root@OPTIPLEX ~]# ifconfig -a
eth0 Link encap:Ethernet HWaddr B8:AC:6F:1C:46:38
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 txqueuelin:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:21 Memory:fe6e000-fe700000
(There's also lo as well. Do you want that? It looks like much of the same with zeros like eth0)

By the way here's my ifconfig for my desktop (I cut out all the other ones that I don't use)
Code:
eth1      Link encap:Ethernet  HWaddr d8:cb:8a:70:f0:f1  
          inet addr:192.168.0.100  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::dacb:8aff:fe70:f0f1/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2553744 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2074620 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:3590636512 (3.5 GB)  TX bytes:197959936 (197.9 MB)
          Interrupt:16

Last edited by ZZII; 01-22-2016 at 06:42 AM.
 
Old 01-22-2016, 07:10 AM   #10
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
eth0 is still not assigned an IP address. You need to make sure that the address you choose is not used by any other device on your network.

The gateway should be the address of your router. I would assume it to be 192.168.0.1. Many home router's DHCP range start at 100 so picking anything below that should be ok. The broadcast and netmask addresses posted will be same for all devices on your network.
 
Old 01-22-2016, 04:50 PM   #11
ZZII
Member
 
Registered: Dec 2014
Location: house
Distribution: Fedora Cinnamon 30
Posts: 61

Original Poster
Rep: Reputation: Disabled
Okay, so I fixed it all up now, but it still shows the same in ifconfig. I changed the .110 to .121 on the IP to try to avoid conflicts. I was going to check IP addresses of devices connected to the network to see, but I can't seem to see it. The modem's page shows all the devices but doesn't show an IP for each.
 
Old 01-23-2016, 08:30 PM   #12
raw
LQ Newbie
 
Registered: Sep 2001
Posts: 3

Rep: Reputation: 0
eth0 is not "up"

ifconfig eth0 up
Attached Thumbnails
Click image for larger version

Name:	Untitled.png
Views:	19
Size:	39.6 KB
ID:	20627  
 
Old 01-23-2016, 09:13 PM   #13
ZZII
Member
 
Registered: Dec 2014
Location: house
Distribution: Fedora Cinnamon 30
Posts: 61

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by raw View Post
eth0 is not "up"
Okay, I was wondering if it was not initializing on boot. What would I be able to do to fix this? I'm just searching right now. Is there something I should do to fix this or do I need to start it each time?

Okay, I got it up, but ping still gives unknown host.

Here's ifconfig on the Optiplex now

Code:
eth0 Link encap:Ethernet HWaddr B8:AC:6F:1C:46:38
inet6 addr: fe80::baac:6fff:fe1c:4638/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2 errors:0 dropped:0 overruns:0 frame:0
TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelin:1000
RX bytes:344 (344.0 b) TX bytes:492 (492.0 b)
Interrupt:21 Memory:fe6e0000-fe700000

Last edited by ZZII; 01-23-2016 at 09:27 PM.
 
Old 01-24-2016, 02:22 AM   #14
raw
LQ Newbie
 
Registered: Sep 2001
Posts: 3

Rep: Reputation: 0
Code:
ping -c2 127.0.0.1
If the card is "up" which it is now,
pinging itself verifies the card is functioning properly.
Bring the card down: ifconfig eth0 down
Now assign it some values and bring it back up.
Code:
ifconfig eth0 add 192.168.0.17 netmask 255.255.255.0 up
^adjust the IP values for your network

Now type: ifconfig eth0
Click image for larger version

Name:	CAM00240.jpg
Views:	32
Size:	166.0 KB
ID:	20630
If its up and has the ip you can see if you have a route thru the gateway
Code:
route
Click image for larger version

Name:	CAM00241.jpg
Views:	33
Size:	134.9 KB
ID:	20631

If you have no route type: route add default gw 192.168.0.1
^adjust the IP values for your network

Now that you have a route you can ping the router: ping -c2 192.168.0.1
If that passes then make sure DNS is resolving by: ping -c4 google.com
Let me know how that goes then i'll show you where all that takes place at boot up.
 
Old 01-24-2016, 03:49 AM   #15
ZZII
Member
 
Registered: Dec 2014
Location: house
Distribution: Fedora Cinnamon 30
Posts: 61

Original Poster
Rep: Reputation: Disabled
Code:
[root@OPTIPLEX ~]# ifconfig eth0 add 192.168.0.212 netmask 255.255.255.0 up
SIOCSIFNETMASK: Cannot assign requested address
SIOCSIFADDR: Cannot assign requested address
SIOCSIFBROADCAST: Cannot assign requested address
I don't know what's going on there.

By the way, this worked when I forst got it and Win7 was installed (if I haven't already mentioned) and the lights on the port come on, so I believe it is not the physical connection.

Last edited by ZZII; 01-24-2016 at 03:51 AM.
 
  


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
ODBC connection from Wins7 to a VMWare VM running Centos 6.5 and a DB linuxhelpreq Linux - Networking 6 11-13-2014 05:26 AM
Patch Centos boxes without internet connection raylux Linux - Software 3 10-03-2012 09:10 AM
How to set up internet connection on Centos 5.5 after installation? dopisnik Linux - Newbie 4 06-14-2010 04:18 AM
How do I use wireless internet connection in CentOS? defrak Linux - Newbie 1 07-02-2009 12:48 PM
internet connection on centos linux lokesh_s Linux - Newbie 4 03-03-2008 09:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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