[SOLVED] No internet connection with Optiplex running CentOS 6
Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
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.
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>
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...
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...
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?
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.
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.
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.
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)
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.
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.
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
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
If its up and has the ip you can see if you have a route thru the gateway
Code:
route
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.