LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices

Reply
 
Search this Thread
Old 07-26-2009, 12:25 PM   #1
ram_lock
LQ Newbie
 
Registered: Jul 2009
Posts: 8

Rep: Reputation: 0
Not able to access internet from my fedora11


I am using fedora11.

> cat /etc/resolv.conf
# Generated by NetworkManager


# No nameservers found; try putting DNS servers into your
# ifcfg files in /etc/sysconfig/network-scripts like so:
#
# DNS1=xxx.xxx.xxx.xxx
# DNS2=xxx.xxx.xxx.xxx
# DOMAIN=lab.foo.com bar.foo.com

DOMAIN=sdsmqa.lab.eng.btc.netapp.in
DNS1=10.72.248.10
DNS2=10.72.144.27


Donít know from where ifconfig getting netmask as 255.255.0.0 when I set it for 255.255.255.0


root@kaushik_Fedora11 /> cat /etc/sysconfig/network-scripts/ifcfg-eth0
# Networking Interface
DEVICE=eth0:0
HWADDR=00:50:56:AB:25:88
BOOTPROTO=static
IPADDR=10.72.248.114
NETMASK=255.225.255.0
ONBOOT=yes
TYPE=Ethernet
PREFIX=24
GATEWAY=10.72.248.1
NAME="System eth0"
UUID=5fb06bd0-0bb0-7ffb-45f1-d6edd65f3e03

root@kaushik_Fedora11 /> cat /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=kaushik_Fedora11
FORWARD_IPV4=yes
GATEWAY=10.72.248.1

ifconfig
eth0 Link encap:Ethernet HWaddr 00:50:56:AB:25:88
inet addr:10.72.248.114 Bcast:10.72.255.255 Mask:255.255.0.0
inet6 addr: fd20:8b1e:b255:40f8:250:56ff:feab:2588/64 Scope:Global
inet6 addr: fe80::250:56ff:feab:2588/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:15258 errors:0 dropped:0 overruns:0 frame:0
TX packets:1515 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1314249 (1.2 MiB) TX bytes:309995 (302.7 KiB)
Interrupt:18 Base address:0x2000


> service network restart
Shutting down loopback interface: [ OK ]
Bringing up loopback interface: [ OK ]
Bringing up interface eth0: [ OK ]


As a result i am not able to access any internet site.
The reason to access internet is i want to run my "yum update"

> ping google.com
ping: unknown host google.com

Please help me to sort it out

thnx,
RAM_LOCK
 
Old 07-26-2009, 12:32 PM   #2
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Linux Mint
Posts: 8,501

Rep: Reputation: 883Reputation: 883Reputation: 883Reputation: 883Reputation: 883Reputation: 883Reputation: 883
Can you ping on IP?
Code:
ping 208.69.34.231
Can you ping the gateway?
Does the dns server responds?
Code:
telnet 10.72.248.10 53
Try to use open dns
Code:
208.67.222.222
208.67.220.220
 
Old 07-27-2009, 05:43 AM   #3
decrepit
Member
 
Registered: May 2006
Distribution: Ubuntu10.04, < fedora12
Posts: 347

Rep: Reputation: 34
Quote:
Originally Posted by ram_lock View Post
I am using fedora11.

>>>>>>>>
root@kaushik_Fedora11 /> cat /etc/sysconfig/network-scripts/ifcfg-eth0
# Networking Interface
DEVICE=eth0:0
HWADDR=00:50:56:AB:25:88
BOOTPROTO=static
IPADDR=10.72.248.114
NETMASK=255.225.255.0
>>>>>>>>>>
RAM_LOCK
This last line looks wrong, 225 instead of 255, maybe your problem????
 
Old 07-28-2009, 03:58 AM   #4
ram_lock
LQ Newbie
 
Registered: Jul 2009
Posts: 8

Original Poster
Rep: Reputation: 0
Made the require correction but that is not the problem...

root@kaushik_Fedora11 ~> cat /etc/sysconfig/network-scripts/ifcfg-eth0
# Networking Interface
DEVICE=eth0:0
HWADDR=00:50:56:AB:25:88
BOOTPROTO=static
IPADDR=10.72.248.114
NETMASK=255.255.255.0
ONBOOT=yes
TYPE=Ethernet
PREFIX=24
GATEWAY=10.72.248.1
NAME="System eth0"
UUID=5fb06bd0-0bb0-7ffb-45f1-d6edd65f3e03
root@kaushik_Fedora11 ~> ifconfig eth0
eth0 Link encap:Ethernet HWaddr 00:50:56:AB:25:88
inet addr:10.72.248.114 Bcast:10.72.255.255 Mask:255.255.0.0
inet6 addr: fd20:8b1e:b255:40f8:250:56ff:feab:2588/64 Scope:Global
inet6 addr: fe80::250:56ff:feab:2588/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1450798 errors:7 dropped:0 overruns:0 frame:0
TX packets:174522 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:546356373 (521.0 MiB) TX bytes:18187490 (17.3 MiB)
Interrupt:18 Base address:0x2000
 
Old 07-28-2009, 04:02 AM   #5
ram_lock
LQ Newbie
 
Registered: Jul 2009
Posts: 8

Original Poster
Rep: Reputation: 0
Unhappy didn't work

tried open DNS no help

As a work around i just included all sites i want to access in /etc/host
and they are working in that way.
 
Old 07-28-2009, 05:05 AM   #6
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Linux Mint
Posts: 8,501

Rep: Reputation: 883Reputation: 883Reputation: 883Reputation: 883Reputation: 883Reputation: 883Reputation: 883
Quote:
As a work around i just included all sites i want to access in /etc/host
and they are working in that way.
Seems to me there is a firewall, preventing DNS queries

what is the output from
Code:
nslookup www.google.com
 
Old 07-28-2009, 05:40 AM   #7
ram_lock
LQ Newbie
 
Registered: Jul 2009
Posts: 8

Original Poster
Rep: Reputation: 0
there is no firewall. I stopped it :
/sbin/service iptables stop


root@kaushik_Fedora11 ~> ping google.com
PING google.com (74.125.67.100) 56(84) bytes of data.
64 bytes from google.com (74.125.67.100): icmp_seq=1 ttl=46 time=312 ms
64 bytes from google.com (74.125.67.100): icmp_seq=2 ttl=46 time=327 ms
64 bytes from google.com (74.125.67.100): icmp_seq=3 ttl=46 time=324 ms
c64 bytes from google.com (74.125.67.100): icmp_seq=4 ttl=46 time=310 ms
64 bytes from google.com (74.125.67.100): icmp_seq=5 ttl=46 time=318 ms
^C
--- google.com ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4380ms
rtt min/avg/max/mdev = 310.542/318.689/327.678/6.720 ms
root@kaushik_Fedora11 ~> nslookup google.com
;; connection timed out; no servers could be reached

root@kaushik_Fedora11 ~> cat /etc/hosts
127.0.0.1 localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6
10.72.248.114 kaushik_Fedora11

74.125.67.100 google.com
66.35.62.166 mirrors.fedoraproject.org
134.160.38.1 ftp.riken.jp
195.151.243.25 ftp.rhd.ru
116.212.120.120 fedora.mirrors.hkt.cc
77.88.19.73 mirror.yandex.ru
134.160.38.1 ftp.riken.jp
 
Old 07-28-2009, 05:42 AM   #8
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Linux Mint
Posts: 8,501

Rep: Reputation: 883Reputation: 883Reputation: 883Reputation: 883Reputation: 883Reputation: 883Reputation: 883
what is the output from
Code:
cat /etc/resolv.conf
 
Old 07-28-2009, 07:15 AM   #9
ram_lock
LQ Newbie
 
Registered: Jul 2009
Posts: 8

Original Poster
Rep: Reputation: 0
root@kaushik_Fedora11 ~> cat /etc/resolv.conf
# Generated by NetworkManager


# No nameservers found; try putting DNS servers into your
# ifcfg files in /etc/sysconfig/network-scripts like so:
#
# DNS1=xxx.xxx.xxx.xxx
# DNS2=xxx.xxx.xxx.xxx
# DOMAIN=lab.foo.com bar.foo.com

#DOMAIN=sdsmqa.lab.eng.btc.netapp.in
#DNS1=10.72.248.10
#DNS2=10.72.144.27

DNS1=208.67.222.222
DNS2=208.67.220.220
 
Old 07-28-2009, 07:17 AM   #10
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Linux Mint
Posts: 8,501

Rep: Reputation: 883Reputation: 883Reputation: 883Reputation: 883Reputation: 883Reputation: 883Reputation: 883
Try
Quote:
nameserver 208.67.222.222
nameserver 208.67.220.220
 
Old 07-28-2009, 07:17 AM   #11
ram_lock
LQ Newbie
 
Registered: Jul 2009
Posts: 8

Original Poster
Rep: Reputation: 0
One more issue i am tracking in this thread is netmask is showing
different value.
Is it a bug in Fedora11?
Anyone logged it?
 
Old 07-29-2009, 04:45 AM   #12
ram_lock
LQ Newbie
 
Registered: Jul 2009
Posts: 8

Original Poster
Rep: Reputation: 0
Thumbs up

Hey Repo... It's working... Thanks buddy... Here goes the working model..

root@kaushik_Fedora11 ~> nslookup google.com
Server: 208.67.220.220
Address: 208.67.220.220#53

Non-authoritative answer:
Name: google.com
Address: 74.125.45.100
Name: google.com
Address: 74.125.127.100
Name: google.com
Address: 74.125.67.100

root@kaushik_Fedora11 ~> cat /etc/resolv.conf
# Generated by NetworkManager


# No nameservers found; try putting DNS servers into your
# ifcfg files in /etc/sysconfig/network-scripts like so:
#
# DNS1=xxx.xxx.xxx.xxx
# DNS2=xxx.xxx.xxx.xxx
# DOMAIN=lab.foo.com bar.foo.com

DOMAIN=sdsmqa.lab.eng.btc.netapp.in
DNS1=10.72.248.10
DNS2=10.72.144.27

nameserver 208.67.222.222
nameserver 208.67.220.220
 
Old 07-29-2009, 04:48 AM   #13
ram_lock
LQ Newbie
 
Registered: Jul 2009
Posts: 8

Original Poster
Rep: Reputation: 0
I need the solution for the other issue i am facing with netmask.
Any idea from where it is picking up the netmask config?
root@kaushik_Fedora11 ~> ifconfig eth0
eth0 Link encap:Ethernet HWaddr 00:50:56:AB:25:88
inet addr:10.72.248.114 Bcast:10.72.255.255 Mask:255.255.0.0
inet6 addr: fd20:8b1e:b255:40f8:250:56ff:feab:2588/64 Scope:Global
inet6 addr: fe80::250:56ff:feab:2588/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2159687 errors:9 dropped:0 overruns:0 frame:0
TX packets:181004 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:607588714 (579.4 MiB) TX bytes:18888415 (18.0 MiB)
Interrupt:18 Base address:0x2000

root@kaushik_Fedora11 ~> cat /etc/sysconfig/network-scripts/ifcfg-eth0
# Networking Interface
DEVICE=eth0:0
HWADDR=00:50:56:AB:25:88
BOOTPROTO=static
IPADDR=10.72.248.114
NETMASK=255.255.255.0
ONBOOT=yes
TYPE=Ethernet
PREFIX=24
GATEWAY=10.72.248.1
NAME="System eth0"
UUID=5fb06bd0-0bb0-7ffb-45f1-d6edd65f3e03
 
  


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
pulseaudio in fedora11 sycamorex Linux - Software 4 07-10-2009 11:22 AM
Fedora11 installation problem hulk321 Linux - Software 1 06-30-2009 11:36 AM
fedora11 passwordless ssh harsshal Linux - Server 5 06-25-2009 09:52 AM
Fedora11 donneo Fedora 4 06-17-2009 01:29 PM
Amarok-1.4 downgrade for Fedora11! citro Fedora 0 06-15-2009 11:11 AM


All times are GMT -5. The time now is 04:56 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration