Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
|
02-19-2014, 11:26 AM
|
#1
|
Member
Registered: Sep 2010
Posts: 233
Rep:
|
Linux installed but no network???
I recently installed CentOS 6.3 on an HP Envy Desktop. (what a pain but it is in)
I can ping 127.0.0.1 however I cannot ping my network router. When I did the install I selected "basic server" instead of "desktop".
I think I need to get X Window System up and running, and then Gnome.
My questions are:
1. Can Gnome and KDE be both loaded and run on the same box?(simultaneously/or not)
2. Do I need to load X Windows then Gnome/KDE?
HELP!
cajunchief
|
|
|
02-19-2014, 11:46 AM
|
#2
|
Member
Registered: Jun 2011
Distribution: redhat, CentOS, OpenBSD
Posts: 298
Rep:
|
cajunchief:
What IP did you assign your machine and your router? 127.0.0.1 is the loopback interface and will not be able to talk to your router. If you have not configured the IP and subnetmask, and it is not set to DHCP, you will not be able to communicate with the router. The router IP should be your gateway.
1. Yes they can both be installed, but they cannot be run simultaneously.. you can select your deksktop at login
2. if you install them with yum, the X dependencies will be installed automatically
|
|
|
02-19-2014, 01:25 PM
|
#3
|
Member
Registered: Sep 2010
Posts: 233
Original Poster
Rep:
|
_____
Quote:
What IP did you assign your machine and your router? 127.0.0.1 is the loopback interface and will not be able to talk to your router. If you have not configured the IP and subnetmask, and it is not set to DHCP, you will not be able to communicate with the router. The router IP should be your gateway.
I have not assigned any IP addresses yet. How do I do this?
1. Yet they can both be installed, but they cannot be run simultaneously.. you can select your deksktop at login
Fantastic!
2. if you install them with yum, the X dependencies will be installed automatically
|
I need to get network access before I can install X!
_____________
|
|
|
02-19-2014, 01:47 PM
|
#4
|
LQ Guru
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,326
|
can you provide the output of
Code:
echo uname: && uname -a -m -p && echo lspci: && lspci && echo lsusb: && lsusb && echo lsmod: && lsmod && echo ifconfig: && ifconfig && echo ifconfig -a: && ifconfig -a && echo iwconfig: && iwconfig && echo resolv.conf: && cat /etc/resolv.conf && echo route: && route -n && echo ping router: && ping -c 1 `route | awk '/default/ {print $2}'` && echo ping dns-server: && ping -c 1 `awk '/nameserver/ {print $2}' /etc/resolv.conf | head -n 1` && echo ping using ip: && ping -c 1 64.235.229.141 && echo ping using dns: && ping -c 1 www.02144.com
so someone can start diagnostics.
|
|
1 members found this post helpful.
|
02-19-2014, 01:57 PM
|
#5
|
Member
Registered: Jun 2011
Distribution: redhat, CentOS, OpenBSD
Posts: 298
Rep:
|
cajunchief
at the command line do: This will show you the available interfaces. I fyour router is set up as a DHCP server, you will need to edit two files:
1. /etc/sysconfig/network
2. /etc/sysconfig/network-scripts/ifcfg-eth0 <---- could POSSIBLY be different from eth0 - use the interface shown in the ifconfig output
The /etc/sysconfig/network file should contain the following line:
NETWORKING=yes
The /etc/sysconfig/network-scripts/ifcfg-eth0 file should contain the following lines:
DEVICE=eth0 <---- could POSSIBLY be different from eth0 - use the interface shown in the ifconfig output
BOOTPROTO=dhcp
ONBOOT=yes
If your router is not using DHCP, you will need to figure out what network it is in. (typically something like 192.168.1.0 255.255.255.0)
You will still need to edit the same two files, but like this instead:
The /etc/sysconfig/network file should contain the following line:
NETWORKING=yes
2. /etc/sysconfig/network-scripts/ifcfg-eth0 <---- could POSSIBLY be different from eth0 - use the interface shown in the ifconfig output
DEVICE=eth0
BOOTPROTO=none
ONBOOT=yes
NETWORK=192.168.1.0
IPADDR=192.168.1.10 <----IP address selected to be in the same subnet as the router
NETMASK=255.255.255.0 <----Same subnet mask as the router
GATEWAY=192.168.1.1 <----Should be the IP address of the router
USERCTL=no
Here is the full text if you need it.... lots of information here.....
|
|
|
02-19-2014, 03:26 PM
|
#6
|
LQ Muse
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,662
|
Quote:
(what a pain but it is in)
|
odd
CentOS6 and SL6 have been way easier to install than Fedora or OpenSUSE or oven kali and Arch
it is one of the easiest to install
you use the DEFAULT settings for EVERYTHING
then after it is installed you make changed to the software
with one exception
If you DO NOT !!!! have any ipv6 service DISABLE THAT at the time of install . using the installer to disable that .
Quote:
I think I need to get X Window System up and running, and then Gnome.
My questions are:
|
that is auto installed( by default) in the GUI install
now if a TEXT ONLY install ( server install) then x was NOT installed
Quote:
1. Can Gnome and KDE be both loaded and run on the same box?(simultaneously/or not)
|
yes and Gnome2 is the DEFAULT
kde4 and xfce can be installed
you select the desktop after you put in your used name and before the password
Quote:
2. Do I need to load X Windows then Gnome/KDE?
|
X11 was auto installed using the GUI install
if you did a headless server TEXT ONLY install it is not installed
Quote:
When I did the install I selected "basic server" instead of "desktop".
|
well right there is the problem
you installed a headless SERVER
x11 and NO desktop were installed
servers do not need a GUI
at this point it is EASIER to reinstall using the GUI and NOT text only install
but you can "fix it"
but without installing the tools to configure the network ???
you wil lneed to use the dvd and install them
but if you are going to do that . Then just reinstall
Last edited by John VV; 02-19-2014 at 03:34 PM.
|
|
1 members found this post helpful.
|
02-19-2014, 05:37 PM
|
#7
|
Member
Registered: Sep 2010
Posts: 233
Original Poster
Rep:
|
if you did a headless server TEXT ONLY install it is not installed
Quote:
When I did the install I selected "basic server" instead of "desktop".
well right there is the problem
you installed a headless SERVER
x11 and NO desktop were installed
servers do not need a GUI
Thanks JohnVV. I believe you are correct. I think I need to re-install. Thanks to all others for your help too.
|
|
|
02-20-2014, 10:30 AM
|
#8
|
Member
Registered: Sep 2010
Posts: 233
Original Poster
Rep:
|
Another damn interesting day
I re-installed Linux as JohnVV indicated I should. I now have Gnome up and working . However, I still have the problem with my network not working?
So here are my questions:
1. Since I have Gnome installed, can I have my computer boot up into a terminal window or Gnome at my choice?
2. How do I get my dang network up and running?
cajunchief
|
|
|
02-20-2014, 10:54 AM
|
#9
|
LQ Guru
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,326
|
Quote:
Originally Posted by cajunchief
I re-installed Linux as JohnVV indicated I should. I now have Gnome up and working . However, I still have the problem with my network not working?
So here are my questions:
1. Since I have Gnome installed, can I have my computer boot up into a terminal window or Gnome at my choice?
2. How do I get my dang network up and running?
cajunchief
|
1: i run fedora which is very similar to centos; this is how i do it:
Code:
sudo ln -s /lib/systemd/system/runlevel3.target /etc/systemd/system/default.target
fyi:
Code:
[schneidz@mom ~]$ ll /lib/systemd/system/runlevel[0-6].target
lrwxrwxrwx. 1 root root 15 Dec 17 14:30 /lib/systemd/system/runlevel0.target -> poweroff.target
lrwxrwxrwx. 1 root root 13 Dec 17 14:30 /lib/systemd/system/runlevel1.target -> rescue.target
lrwxrwxrwx. 1 root root 17 Dec 17 14:30 /lib/systemd/system/runlevel2.target -> multi-user.target
lrwxrwxrwx. 1 root root 17 Dec 17 14:30 /lib/systemd/system/runlevel3.target -> multi-user.target
lrwxrwxrwx. 1 root root 17 Dec 17 14:30 /lib/systemd/system/runlevel4.target -> multi-user.target
lrwxrwxrwx. 1 root root 16 Dec 17 14:30 /lib/systemd/system/runlevel5.target -> graphical.target
lrwxrwxrwx. 1 root root 13 Dec 17 14:30 /lib/systemd/system/runlevel6.target -> reboot.target
2: did you provide the diag info from post #4 ?
Last edited by schneidz; 02-20-2014 at 10:56 AM.
|
|
|
02-20-2014, 11:03 AM
|
#10
|
Member
Registered: Sep 2010
Posts: 233
Original Poster
Rep:
|
Quote:
Originally Posted by schneidz
1: i run fedora which is very similar to centos; this is how i do it:
Code:
sudo ln -s /lib/systemd/system/runlevel3.target /etc/systemd/system/default.target
fyi:
Code:
[schneidz@mom ~]$ ll /lib/systemd/system/runlevel[0-6].target
lrwxrwxrwx. 1 root root 15 Dec 17 14:30 /lib/systemd/system/runlevel0.target -> poweroff.target
lrwxrwxrwx. 1 root root 13 Dec 17 14:30 /lib/systemd/system/runlevel1.target -> rescue.target
lrwxrwxrwx. 1 root root 17 Dec 17 14:30 /lib/systemd/system/runlevel2.target -> multi-user.target
lrwxrwxrwx. 1 root root 17 Dec 17 14:30 /lib/systemd/system/runlevel3.target -> multi-user.target
lrwxrwxrwx. 1 root root 17 Dec 17 14:30 /lib/systemd/system/runlevel4.target -> multi-user.target
lrwxrwxrwx. 1 root root 16 Dec 17 14:30 /lib/systemd/system/runlevel5.target -> graphical.target
lrwxrwxrwx. 1 root root 13 Dec 17 14:30 /lib/systemd/system/runlevel6.target -> reboot.target
2: did you provide the diag info from post #4 ?
|
I have a question, where does my system get all my IP addresses and g/w address, and all the other info it needs?
|
|
|
02-20-2014, 11:09 AM
|
#11
|
LQ Guru
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,326
|
^ not sure. if your router has dhcp enabled then your router would automatically supply your devices with ip/dns/routing addresses. if not then you will need to provide static addresses to each of your devices.
|
|
|
02-20-2014, 11:13 AM
|
#12
|
Moderator
Registered: Aug 2002
Posts: 26,450
|
You have not provided any information about your network adapter.
The installer would of asked some questions about finding the adapter and configuring it for DHCP or static and setting it as active.
We need to do some troubleshooting.
In in addition to post #5:
Just to cover all bases, is this a real or virtual machine? Never mind, dual boot
Look at the output of the dmesg command, does it show any error messages relating to eth0? Does it show that the network adapter is being recognized?
Post the output of the lspci command line for the ethernet adapter. This will tell us the manufacture/chipset.
Last edited by michaelk; 02-20-2014 at 11:24 AM.
|
|
|
02-20-2014, 03:08 PM
|
#13
|
LQ Muse
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,662
|
Quote:
sudo ln -s /lib/systemd/system/runlevel3.target /etc/systemd/system/default.target
|
that will NOT work in RHEL6 or CentOS6 !!!
RHEL6 is using SystemV
and fedora20 is using SystemD
cent uses the int system
as to the network
you have provided no information on that
First
What is it ?
56k dial up ?
dsl?
dsl2?
cable?
Fiber?
wireless?
wireless using a usb dongle or your phone ?
|
|
|
02-20-2014, 03:09 PM
|
#14
|
Member
Registered: Sep 2010
Posts: 233
Original Poster
Rep:
|
Quote:
Originally Posted by michaelk
You have not provided any information about your network adapter.
The installer would of asked some questions about finding the adapter and configuring it for DHCP or static and setting it as active.
We need to do some troubleshooting.
In in addition to post #5:
Just to cover all bases, is this a real or virtual machine? Never mind, dual boot
Look at the output of the dmesg command, does it show any error messages relating to eth0? Does it show that the network adapter is being recognized?
Post the output of the lspci command line for the ethernet adapter. This will tell us the manufacture/chipset.
|
Michael, the chipset is an intel I5 chip.
cajunchief
|
|
|
02-20-2014, 03:12 PM
|
#15
|
LQ Muse
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,662
|
a intel i5 Chip
is the CPU "Central Processing Unit"
it is NOT a Ethernet card nor a dial-up modem nor cable/fiber modem
|
|
|
All times are GMT -5. The time now is 07:57 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|