LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-19-2009, 02:01 AM   #1
naveen_cs321
LQ Newbie
 
Registered: Oct 2009
Posts: 9

Rep: Reputation: 0
Question Not able to connect to internet but its working on my windows pc..Help me?


i m not able to connect to internet on my RED HAT Enterprise linux server.

steps i had taken:
1. neat-tui
i have entered all the info

2. vi /etc/resol.conf
here also i put the default gateway address

3.service network restart;chkconfig network on

it gives ok

i m able to ping all ....

but when i open elinks to any site ...
it gives unable to retrieve the host


PLZ GUIDE ME....
 
Old 10-19-2009, 02:03 AM   #2
naveen_cs321
LQ Newbie
 
Registered: Oct 2009
Posts: 9

Original Poster
Rep: Reputation: 0
its vi /etc/resolv.conf

i have corrected that
 
Old 10-19-2009, 03:46 AM   #3
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,528

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Welcome to LQ

/etc/resolv.conf
should contain the DNS servers

Is your default GW also a DNS servser?
 
Old 10-19-2009, 05:18 AM   #4
rylan76
Senior Member
 
Registered: Apr 2004
Location: Potchefstroom, South Africa
Distribution: Fedora 17 - 3.3.4-5.fc17.x86_64
Posts: 1,499

Rep: Reputation: 91
Quote:
Originally Posted by naveen_cs321 View Post
i m not able to connect to internet on my RED HAT Enterprise linux server.

steps i had taken:
1. neat-tui
i have entered all the info

2. vi /etc/resol.conf
here also i put the default gateway address
You do not put your gateway address in /etc/resolv.conf...

The last time I successfully configured my FC3 system to connect to the internet manually, I did the following:

Code:
1. Ensure that your networking hardware is working, and that you do not need to load additional kernel modules.

2. Put a list of your DNS servers (not your gateway address!) in /etc/resolv.conf

nameserver 169.225.255.3
nameserver 169.251.255.34
nameserver 169.17.147.235
nameserver 164.67.50.34

3. Setup /etc/sysconfig/network (at least, on Fedora that is what you setup):

NETWORKING=yes
NETWORKING_IPV6=yes
HOSTNAME=development
GATEWAY=10.0.0.2

where GATEWAY is your router / switch that connects you out to the internet, i. e. your "gateway".

4. Add the following to /etc/rc.local (or whatever file your distro runs as on-boot startup script):

/sbin/ifconfig eth0 down
/sbin/ifconfig eth0 10.0.0.8 netmask 255.255.255.0 broadcast 10.254.255.255 up
/sbin/route del default
/sbin/route add default gw 10.0.0.2 eth0

where

- eth0 is the hardware device node for your ethernet hardware (usually provided by your ethernet device driver)
- 10.0.0.8 is the IP address you wish to assign to your Linux system
- 10.0.0.2 is the address of your gateway / router / switch that connects you to the internet
After you have done this you should be able (on rebooting) to do

Code:
ping google.com
and get

Code:
[rylan@development txt]$ ping google.com
PING google.com (74.125.45.100) 56(84) bytes of data.
64 bytes from yx-in-f100.google.com (74.125.45.100): icmp_seq=1 ttl=46 time=376 ms
64 bytes from yx-in-f100.google.com (74.125.45.100): icmp_seq=2 ttl=46 time=373 ms

--- google.com ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 373.923/375.359/376.795/1.436 ms
[rylan@development txt]$
a reply....

All you then need to do is startup a web browser and start surfing.

Hope this helped!
 
Old 10-19-2009, 08:59 AM   #5
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 12,713
Blog Entries: 27

Rep: Reputation: 2055Reputation: 2055Reputation: 2055Reputation: 2055Reputation: 2055Reputation: 2055Reputation: 2055Reputation: 2055Reputation: 2055Reputation: 2055Reputation: 2055
Hi,

I think 'repo' was asking if the DNS was on the gateway system.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
unable to connect to internet but dns is working fine pradeep2002gs Linux - Software 3 04-01-2009 10:01 PM
can connect to internet but not local windows pc jtodd Linux - Networking 6 05-20-2006 02:52 PM
how can I connect to internet in a windows LAN kuertensun Linux - Networking 19 06-25-2005 10:10 AM
Cannot connect to internet after restarting from windows MartinZ SUSE / openSUSE 2 04-17-2005 05:16 AM
Got my dual boot working, now LINUX WON'T CONNECT TO THE INTERNET!?!?!? :-( Ausar Linux - Newbie 2 10-04-2004 07:54 AM


All times are GMT -5. The time now is 01:20 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration