LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 04-10-2007, 04:18 PM   #1
guyhiu
LQ Newbie
 
Registered: Apr 2007
Posts: 2

Rep: Reputation: 0
Ping


Hi there,
i'm new to linux but want to learn.

I need to know how to do something similar to a ping or ipconfig.

I'm running red hat enterprise.

My net was workign via dhcp i changed it to static, which i know was right because i set it to the same as it was, then it didn't work. Set back to dhcp, and still doesn't work.

i know this is a basic question but if anyone can help that would be great...

thankyou..

Guy
 
Old 04-10-2007, 04:45 PM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
ping is the command to use for pinging, but ifconfig is the command instead of ipconfig. There are options for each that you can check in the man pages.

Once you've run the commands can you post the output you get from ifconfig and from pinging your DHCP server?
 
Old 04-12-2007, 04:13 AM   #3
graciejj_82
Member
 
Registered: Feb 2006
Distribution: Fedora 2
Posts: 63

Rep: Reputation: 15
Can you tell us
a. how you configured the static IP and
b. how you configured it back to dhcp?

The most likely cause I can think of for this issue, is that if you manually edited the ifcfg-eth0 file, you did something wrong. This is not uncommon, because the system is picky about that config file.

If you believe this to be the problem, I'd suggest trying to get a hold of a virgin ifcfg-eth0 file that you know works with DHCP. (I'm sure MANY of the users here can post one.)

If that doesn't fix it, or if you're pretty sure thats not the problem all together, please post more information for us to check out. A good start would be that file I've mentioned above. Assuming the same filesystem between your OS and mine (fedora 2) the file will be located in "/etc/sysconfig/network-scripts"

Copy and paste that, and let us look at it.
 
Old 04-15-2007, 07:21 PM   #4
guyhiu
LQ Newbie
 
Registered: Apr 2007
Posts: 2

Original Poster
Rep: Reputation: 0
Howdy,

a. how you configured the static IP and
I went into applications, system settings, network, then clicked static, entered the correct data..
b. how you configured it back to dhcp?
just click on dhcp in the same window.

However, when i went to the network-script folder there was no ifcfg-eth0 file. Rather strange.

Ahh fixed the problem, somehow it deleted the file.

Went new, set statically, it saved a new cfg file.

problem solvered.

thankyou all for your help.

Guy
 
  


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
Strange Ping Issue - Can't ping localhost but can ping others on LAN code_slinger Linux - Networking 15 03-30-2015 02:39 PM
Simple question about command syntax ping/log ping results ohalnet Linux - Networking 1 07-25-2006 04:46 AM
LAN/ADSL Router ping working but DNS ping fails R N Ghosh Linux - Networking 1 01-13-2006 07:44 AM
PPP establish can ping the gateway router but unable to ping the host deepalalla Linux - Networking 0 11-18-2004 09:10 AM
windows 98 m/c ping to ip address of red hat server but fails to ping hostname ravilohot Linux - Networking 2 09-07-2004 04:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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