LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 09-26-2012, 11:01 PM   #1
MalikAsim
LQ Newbie
 
Registered: Sep 2012
Posts: 23

Rep: Reputation: Disabled
Question Red had 6.1 connectivity issue


Hi

I'm hopefull I can get a bit of help from someone here and make some contacts in the Linux department.

I have no connectivity whatsoever

I have pinged my IP and get results but if say for example I ping google.com I get host unknown.
Please tell me what I've done wrong or just not done

Gone through configs etc (/etc/sysconfig/network.conf)
Done setup the GUI version allocated IP and DNS ( I may have buggered that up but I checked with google and other search engine as to correct DNS locations).

I must have missed something

Also I get the command not found error alot, can someone please tell me what that is about ?

I have checked with Redhat and they say repository but I cant get repository without network connection. Im sure you see the dillema.

Many thanks for any help you can provide and all the best with whatever your doing
 
Old 09-27-2012, 12:45 AM   #2
roger_heslop
Member
 
Registered: Oct 2009
Location: Leander, TX
Distribution: Fedora 20
Posts: 97

Rep: Reputation: 35
The first step to narrowing the problem, is to run a series of tests to define exactly what your system can, and cannot, do in terms of network communication.

Assuming for example, you have a system with an IP address of 192.168.1.5 /24, you'll want to first test your network by pinging something on the same layer two network, preferably hanging off of the same access layer switch. (For example something with an IP of 192.168.1.6, etc.)

If that does not work, stop troubleshooting DNS, and look closer at your actual IP address configuration with the command 'ifconfig'

Make sure you can ping your gateway. If your DNS servers are on the other side of your gateway, keep holding off on those. If your gateway can be reached, you want to ping the nearest ip address on the other side (for example, your own public IP address if you're NATing, etc.)

Only once you've confirmed routing is working, should start troubleshooting DNS. Try some of the following commands:

Code:
traceroute <dns ip>
dig @<dns ip> google.com
Below are some common files to check your ip settings

Code:
/etc/sysconfig/network-scripts/ifcfg-*
/etc/sysconfig/network
/etc/resolv.conf
Just a heads up, I'm not too familiar with the desktop interface, I find myself using the command line more often than not, so I can't really advise there. Good luck, and if you need further help, run as many tests as you can think of, and post as many details.
 
Old 09-27-2012, 12:54 AM   #3
cliffordw
Member
 
Registered: Jan 2012
Location: South Africa
Posts: 509

Rep: Reputation: 203Reputation: 203Reputation: 203
Hi there,

Welcome to the forums!

This sounds like a DNS problem.

To try and help with your connectivity problem, could you please give us some additional information? Please post:

* The output of the "ip addr" command
* The output of the "ip route" command
* The output of the "/etc/resolv.conf" file
* The output of the "iptables -L" command

You could also try 2 quick tests so long.

Firstly, look at the output of the "ip route" command for a line similar to this:
Quote:
default via 192.168.1.1 dev eth4
This shows the IP address of your default gateway (192.168.1.1 in my example). Try and ping that IP address.

Secondly, in the /etc/resolv.conf file there should be one or more lines similar to this:
Quote:
nameserver 192.168.200.1
These are your DNS server(s). Try and ping these too.

If your DNS settings are the problem, you could consider using the OpenDNS servers at 208.67.222.222 and 208.67.220.220 (see https://www.opendns.com/), or the Google public DNS servers at 8.8.8.8 and 8.8.4.4 (see https://developers.google.com/speed/public-dns/).

Good luck!
 
Old 09-27-2012, 09:02 PM   #4
MalikAsim
LQ Newbie
 
Registered: Sep 2012
Posts: 23

Original Poster
Rep: Reputation: Disabled
Smile Thank you for helping

Quote:
Originally Posted by cliffordw View Post
Hi there,

Welcome to the forums!

This sounds like a DNS problem.

To try and help with your connectivity problem, could you please give us some additional information? Please post:

* The output of the "ip addr" command
* The output of the "ip route" command
* The output of the "/etc/resolv.conf" file
* The output of the "iptables -L" command

You could also try 2 quick tests so long.

Firstly, look at the output of the "ip route" command for a line similar to this:

This shows the IP address of your default gateway (192.168.1.1 in my example). Try and ping that IP address.

Secondly, in the /etc/resolv.conf file there should be one or more lines similar to this:

These are your DNS server(s). Try and ping these too.

If your DNS settings are the problem, you could consider using the OpenDNS servers at 208.67.222.222 and 208.67.220.220 (see https://www.opendns.com/), or the Google public DNS servers at 8.8.8.8 and 8.8.4.4 (see https://developers.google.com/speed/public-dns/).

Good luck!
Thank you
Just a little update as the issue is not fully resolved I did the IP pings and URL pings got result of URL of host unknown which led me to hours of research online and I can't believe this conclusion but it seems we have software bug issue.
I also tried networkmanager or should I say Network Manager which came up with no such command.

After much frustration I decided to give it a rest and installed a new VBox this time RedHat 6.1 dashboard thought it might have the same issue but wanted to compare for myself now I went through the install process for my setup and entered my network details, setup took 3 hours I'm runing a crap system at present. In system network setup my LAN and WiFi but still no joy, turned my firewall on and off. Then thought to give NetworkManager ago, after that network connectivity is fine and can browse the net. I need help in understanding this though as I want to use CLI to learn the commands and techniques correctly so the GUI (Desktop) is cool but not sufficient for running my webserver. I've just had a fumble with x11 quite the same as in mac OS X however not quite the same as bash.

Also in my server install I couldn't get startX and quite a few other programs runing.

All help and advice is highly appreciated
Many Thanks

------------------------
Asim M
_____________
 
Old 09-27-2012, 09:20 PM   #5
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by MalikAsim View Post
I need help in understanding
What you need to understand is that, like in your other thread, all you've done so far is talk about the problem. Without posting any relevant information, even if asked, your threads will go on and on without resolution. And you can post all the theories about software bugs you want but until you stop destroying evidence and do as asked I maintain the only real problem is PEBCAK.

Last edited by unSpawn; 09-27-2012 at 09:21 PM.
 
Old 09-28-2012, 11:17 AM   #6
MalikAsim
LQ Newbie
 
Registered: Sep 2012
Posts: 23

Original Poster
Rep: Reputation: Disabled
Pebcak

Quote:
Originally Posted by unSpawn View Post
What you need to understand is that, like in your other thread, all you've done so far is talk about the problem. Without posting any relevant information, even if asked, your threads will go on and on without resolution. And you can post all the theories about software bugs you want but until you stop destroying evidence and do as asked I maintain the only real problem is PEBCAK.
Okay.

What is PECAK ?

I see your point, not my theory its what's been documented by Red Hat.

Anyway. Thanks for your support ?
 
Old 09-28-2012, 02:46 PM   #7
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by MalikAsim View Post
What is PECAK ?
It's a rare condition in which one of the symptoms is one person telling others they "seem to misunderstand the english language", "misjudge the spelling" or not reading the posts" while disregarding any advice. Also see "user error".


Quote:
Originally Posted by MalikAsim View Post
Thanks for your support ?
I can't imagine you would require any support we could possibly give but OK, since you've asked, what kind of support would you expect?
 
Old 09-28-2012, 03:01 PM   #8
MalikAsim
LQ Newbie
 
Registered: Sep 2012
Posts: 23

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by unSpawn View Post
It's a rare condition in which one of the symptoms is one person telling others they "seem to misunderstand the english language", "misjudge the spelling" or not reading the posts" while disregarding any advice. Also see "user error".



I can't imagine you would require any support we could possibly give but OK, since you've asked, what kind of support would you expect?
Do you mean to say you said all that instead of 'Predicted error between chair and keyboard' wow!

Also I meant thanks for the info/ support etc

I have taken ur advice and the tests came up with command not recognised bs, so I don't know what to do if the commands u lads are asking me to key are not being understood by the software.
And its unlikely its a bug its just if you were sitting on the chair insteaad of me it would work lol
 
Old 09-28-2012, 03:09 PM   #9
MalikAsim
LQ Newbie
 
Registered: Sep 2012
Posts: 23

Original Poster
Rep: Reputation: Disabled
can you read the other thread u refer to then please

Quote:
Originally Posted by MalikAsim View Post
Do you mean to say you said all that instead of 'Predicted error between chair and keyboard' wow!

Also I meant thanks for the info/ support etc

I have taken ur advice and the tests came up with command not recognised bs, so I don't know what to do if the commands u lads are asking me to key are not being understood by the software.
And its unlikely its a bug its just if you were sitting on the chair insteaad of me it would work lol
Don't mean to burst your over inflated bubble but can you read the other thread please, as I'm sure you should get it.

I asked someone who told me to type ' ls -l /etx/....
If he meant type it as he spelt it or as you were telling me too and as I have been doing since I started. The wtf referd to the not having permission thing.

Then one of you guys started going off one a tangent over it which seemed a bit odd-bally to me


Thanks
 
Old 09-28-2012, 03:12 PM   #10
MalikAsim
LQ Newbie
 
Registered: Sep 2012
Posts: 23

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by unSpawn View Post
It's a rare condition in which one of the symptoms is one person telling others they "seem to misunderstand the english language", "misjudge the spelling" or not reading the posts" while disregarding any advice. Also see "user error".



I can't imagine you would require any support we could possibly give but OK, since you've asked, what kind of support would you expect?
Read the other thread please - Page 2 - top post I think mate
 
Old 09-28-2012, 03:15 PM   #11
salasi
Senior Member
 
Registered: Jul 2007
Location: Directly above centre of the earth, UK
Distribution: SuSE, plus some hopping
Posts: 4,070

Rep: Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897
I'm sorry to have to do this, and I'm sure that the OP won't appreciate me pointing this out, be there are three threads started by the OP and all are going the same way (and it seems as if the only possibility, albeit a distant one, of getting these threads back on track is to intervene in this way).

The way that they are going is that the OP says some stuff about a problem, someone suggests particular commands to run and the OP says there is still a problem (scattered with a few mis-typings and marginal mis-understandings).

What there isn't is a direct 'I typed exactly this' (where 'this' is a correct command as given by those trying to advise) and exactly this other thing is the response. The outcome is that the advisers are not convinced that the correct things have not been typed (and you do have to type exactly the right thing for it to be effective, the command line being notoriously unforgiving of mistakes); to cut and paste the transaction removes this uncertainty, and that hasn't happened.

What then happens is that the OP posts a '...but the problem isn't solved...' kind of comment and everyone else thinks '...well, of course it isn't, you still haven't typed the right thing...' and/or '...you were asked for the output from this command, and all you've done is say that it hasn't worked, that's not helpful...'.

My suggestion is that, for better or worse, you re-read roger_heslop's response, concentrating on that first paragraph until you understand why that was written, and you feel that you can follow that approach to the letter. Then move on to cliffordw's post, try every command that he has suggested that you try and cut and paste the command along with its output back here.

We will then be in a position to start making progress (and, while it does sound like a DNS problem, as suggested, I'm sure that it is possible to misconfigure several things which lead to a DNS problem, so it might not be as obvious as a straightforward mis-configuration of the DNS service itself).
 
1 members found this post helpful.
Old 09-28-2012, 03:27 PM   #12
MalikAsim
LQ Newbie
 
Registered: Sep 2012
Posts: 23

Original Poster
Rep: Reputation: Disabled
yes I agree

Quote:
Originally Posted by salasi View Post
I'm sorry to have to do this, and I'm sure that the OP won't appreciate me pointing this out, be there are three threads started by the OP and all are going the same way (and it seems as if the only possibility, albeit a distant one, of getting these threads back on track is to intervene in this way).

The way that they are going is that the OP says some stuff about a problem, someone suggests particular commands to run and the OP says there is still a problem (scattered with a few mis-typings and marginal mis-understandings).

What there isn't is a direct 'I typed exactly this' (where 'this' is a correct command as given by those trying to advise) and exactly this other thing is the response. The outcome is that the advisers are not convinced that the correct things have not been typed (and you do have to type exactly the right thing for it to be effective, the command line being notoriously unforgiving of mistakes); to cut and paste the transaction removes this uncertainty, and that hasn't happened.

What then happens is that the OP posts a '...but the problem isn't solved...' kind of comment and everyone else thinks '...well, of course it isn't, you still haven't typed the right thing...' and/or '...you were asked for the output from this command, and all you've done is say that it hasn't worked, that's not helpful...'.

My suggestion is that, for better or worse, you re-read roger_heslop's response, concentrating on that first paragraph until you understand why that was written, and you feel that you can follow that approach to the letter. Then move on to cliffordw's post, try every command that he has suggested that you try and cut and paste the command along with its output back here.

We will then be in a position to start making progress (and, while it does sound like a DNS problem, as suggested, I'm sure that it is possible to misconfigure several things which lead to a DNS problem, so it might not be as obvious as a straightforward mis-configuration of the DNS service itself).
I agree with you completly

I'll do that and post results
 
Old 09-28-2012, 07:14 PM   #13
MalikAsim
LQ Newbie
 
Registered: Sep 2012
Posts: 23

Original Poster
Rep: Reputation: Disabled
I'd like to clarify if I may

I have connected my Install to the network ! Yippee

Through desktop, no config required - if any of you know why it works in GUI but not in CLI then I'm happy for you - you should post it, it may help someone. I've ran lots of tests and found repos weren't installed maybe that's y commands have not worked for me - I DON'T KNOW.

Thanks all and good luck
 
Old 09-28-2012, 08:46 PM   #14
MalikAsim
LQ Newbie
 
Registered: Sep 2012
Posts: 23

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by roger_heslop View Post
The first step to narrowing the problem, is to run a series of tests to define exactly what your system can, and cannot, do in terms of network communication.

Assuming for example, you have a system with an IP address of 192.168.1.5 /24, you'll want to first test your network by pinging something on the same layer two network, preferably hanging off of the same access layer switch. (For example something with an IP of 192.168.1.6, etc.)

If that does not work, stop troubleshooting DNS, and look closer at your actual IP address configuration with the command 'ifconfig'

Make sure you can ping your gateway. If your DNS servers are on the other side of your gateway, keep holding off on those. If your gateway can be reached, you want to ping the nearest ip address on the other side (for example, your own public IP address if you're NATing, etc.)

Only once you've confirmed routing is working, should start troubleshooting DNS. Try some of the following commands:

Code:
traceroute <dns ip>
dig @<dns ip> google.com
Below are some common files to check your ip settings

Code:
/etc/sysconfig/network-scripts/ifcfg-*
/etc/sysconfig/network
/etc/resolv.conf
Just a heads up, I'm not too familiar with the desktop interface, I find myself using the command line more often than not, so I can't really advise there. Good luck, and if you need further help, run as many tests as you can think of, and post as many details.
I have done this
Code:
Vi /etc/resolv.conf
Result
# Generated by NetworkManager
domain home
search home
nameserver 192.168.1.254
~
~
~
"/etc/resolv.conf" 4L, 79C

Code:
/etc/sysconfig/network
Result:
Permission denied

Code:
Vi /etc/sysconfig/network
Result:
NETWORKING=yes
HOSTNAME=localhost.localdomain
~
~
~

"/etc/sysconfig/network" 2L, 46C

Code:
Traceroute 74.125.132.106
Result:
Traceroute to 74.125.132.106 (74.125.132.106), 30 hops max, 60 byte packets
1 ***
2 ***
3 ***
4 ***
5 ***

( AND SO ON)
 
  


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
[SOLVED] New Ethernet Adapter for Red Hat 6.1, no connectivity - config issue? Need2BaGeek Linux - Networking 6 04-02-2012 12:31 PM
VPN Connectivity Issue? your_shadow03 Linux - Newbie 7 04-22-2009 05:43 AM
Connectivity Issue rajaniyer123 Solaris / OpenSolaris 4 07-04-2007 10:29 AM
Internet Connectivity Issue sdr0715 Linux - General 2 09-28-2005 01:11 PM
Network Connectivity Issue EERookie Linux - Networking 2 01-30-2005 01:44 PM

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

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