LinuxQuestions.org
Review your favorite Linux distribution.
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 05-22-2008, 04:53 PM   #1
Blackmon
LQ Newbie
 
Registered: May 2008
Posts: 23

Rep: Reputation: 15
how do I know if I'm on the net?


I have ferdora 6 zod, I'm a newbie... I have a server that has fedora 6 and kernel 2.6.22.9-61.fcb on a i686; whatever that means? anyway it was used as a email server and webhosting site. when I boot it up all I get is a black screen asking me to login. when I login the black screen (terminal window) just sits there looking back at me wait for me to make it do something? I don't know what it wants... all I know is that I don't get email anymore, nor can I see my back office when I go to my website. What should I do next? I cant even tell if I'm on the internet.
 
Old 05-22-2008, 04:56 PM   #2
Total-MAdMaN
Member
 
Registered: May 2008
Distribution: Gentoo
Posts: 306

Rep: Reputation: 34
Use the ping command to see if you can reach a server, e.g. "ping -c 4 www.google.com". If it says "Unknown host" you're not connected.

Last edited by Total-MAdMaN; 05-22-2008 at 04:58 PM.
 
Old 05-22-2008, 05:02 PM   #3
Blackmon
LQ Newbie
 
Registered: May 2008
Posts: 23

Original Poster
Rep: Reputation: 15
how do I connect to the internet?

I have fedora 6 (zod) and it not connecting to the internet its plugged into the router all the other computers have connectivity except this one?
 
Old 05-22-2008, 06:27 PM   #4
LinuxManMikeC
Member
 
Registered: Nov 2007
Location: Provo, Utah
Distribution: Debian and Ubuntu
Posts: 74

Rep: Reputation: 15
Check the network cable, check the network interface card, check the network drivers, check the interface configuration.
 
Old 05-28-2008, 11:49 AM   #5
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
Code:
/sbin/ifconfig
That should print some information about the network interfaces; if you wonder about the names, eth0 should be an ethernet card, and if there are more, they should be eth1, eth2 etc. If there is an IP address assigned to the interface, it's a positive sign. If not, you need to configure it, either manually or by running a dhcp client if you're using DHCP server in the network.

Code:
ping www.linuxquestions.org
That should tell you if you are on the net (there is a working connection, if you get replies from some machine on the internet; you can use local area network machines too to test connections inside your LAN). IP addresses work too if you prefer them over "written" addresses. Press CTRL+C to stop it if it seems to continue forever.

To configure an interface if there is a DHCP server working in your network, try either of these (which one is for you depends on which dhcp client program is installed; it should not matter):
Code:
dhclient eth0
dhcpcd eth0
Of course you need to be logged in as root or otherwise use root privileges to run the command, because it has "system-wide effects".

Or if you want to configure the interface manually, you can do something like this:
Code:
ifconfig eth0 192.168.1.1 netmask 255.255.255.0 up
though if there is a configuration utility for your network interfaces, it might be easier to use it. Try typing
Code:
system-
and press TAB twice or so, and hopefully you'll get some lines on the screen that show which executables (commands) start with system-. What you are looking for is something close to "system-config-network"; see if you get anything that sounds like it. When you do, launch it like this:
Code:
system-config-network
If you happen to have that kind of program (or just script) there, run it and it should help you out with your connection.

Then, when the connection works..well, see if the mail server or whatever you need works. If not, it might be a good idea to restart the service. And maybe before it read the appropriate logfiles to see what's wrong.
 
  


Reply

Tags
works



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
Linux/BSD VPN software for net-to-net with DynDNS at both ends? jantman Linux - Security 5 03-10-2008 12:20 PM
Lost ability to net-surf with toast.net dsl under openSUSE 10.3 DeekBeek Linux - Networking 5 02-10-2008 12:26 PM
OpenSwan net-to-net VPN (IPCop 1.4.10) millerjord Linux - Networking 1 05-11-2007 06:42 AM
Help! Possible to run vb.net (.net framework) using wine? if not where can i download jetro2k5 Linux - Software 5 04-18-2007 01:53 AM
LXer: How the Net was Lost - the real story behind Net Neutrality LXer Syndicated Linux News 0 06-20-2006 09:33 PM

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

All times are GMT -5. The time now is 04:09 PM.

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