LinuxQuestions.org
Help answer threads with 0 replies.
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 12-05-2008, 10:05 PM   #1
GirishSharma
Member
 
Registered: Dec 2008
Posts: 37

Rep: Reputation: 16
Access Internet


Hello,
I am running RHEL-4 on my office PC. Before few days i was able to access the internet through that pc, but now i am having problems.
1.Even i am not able to ping 192.168.0.12 (self machine)
2.Proxy server IP is 192.168.0.16

Please help me to resolve the issue.
Thanks & Regards
Girish Sharma
 
Old 12-06-2008, 01:47 AM   #2
daveginorge
Member
 
Registered: Oct 2006
Location: Porsgrunn, Norway
Distribution: CentOS 5 / 6 / 7
Posts: 107

Rep: Reputation: 16
If nothing has was changed to cause the internet to stopped working I would suspect a hardware fault on the network card, or your administrator has blocked you on the proxy server.

Last edited by daveginorge; 12-06-2008 at 01:48 AM.
 
Old 12-06-2008, 09:42 AM   #3
GirishSharma
Member
 
Registered: Dec 2008
Posts: 37

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by daveginorge View Post
If nothing has was changed to cause the internet to stopped working I would suspect a hardware fault on the network card, or your administrator has blocked you on the proxy server.
Thanks for your reply.
I have checked that network card is working fine as i checked through system-config-network, but it is showing me "Inactive" eth0. Administrator has not blocked any site or proxy server.

It is not self pinging, i have checked that i have given right proxy server's IP address in proxy setting of Firefox browser.

Please help me where and what to do to get resolve the problem.

Thanks & Regards
Girish
 
Old 12-06-2008, 05:23 PM   #4
framp
Member
 
Registered: Apr 2003
Location: Next to Stuttgart, Germany
Distribution: Debian, Mint, Raspbian
Posts: 131
Blog Entries: 5

Rep: Reputation: 27
Execute this script, read the messages carefully and follow the instructions on the linked webpages. If you still can't fix the problem on your own then post the contents of the generated outputfile. This will give us detailed info about your network config and setup and we will be able to help you to solve your network problem.
 
Old 12-06-2008, 10:26 PM   #5
GirishSharma
Member
 
Registered: Dec 2008
Posts: 37

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by framp View Post
Execute this script, read the messages carefully and follow the instructions on the linked webpages. If you still can't fix the problem on your own then post the contents of the generated outputfile. This will give us detailed info about your network config and setup and we will be able to help you to solve your network problem.
First of all i wish to thank to you for your reply and script. After running and/or restarting the machine now i am able to ping self i.e. 192.168.0.12 and 192.168.0.16 i.e. proxy server. It is accessing internet in windows but returning the proxy server error in RHEL. Machine is having dual OS i.e. windows XP and RHEL.


Here are the contents of generated (collectNWDData.txt) file.

-
Code:
- collectNWData.sh V0.6.1.8 (Build date: 2008/12/05 17:33:47 -
- --- Which type of your network connection should be tested?
- --- (1) Wired connection
- --- What's the type of networktopology?
- --- (2) DSL HW router <---> LinuxClient
- --- On which host is the script executed?
- --- (1) LinuxClient
- !!! CND0180I: The system can't ping external IP address 195.135.220.3
- !!! CND0140E: No default gateway set on your system
- !!! CND0230W: IPV6 enabled
- !!! CND0310W: Classic network configuration with ifup was detected. Configuration with knetworkmanager is much easier
- --- Writing networkconfiguration information into file collectNWData.txt ...
- --- 1 errors detected
- --- 2 warnings detected
- --- Go to http://www.linux-tips-and-tricks.de/CND to get more detailed instructions about the error/warning messages and how to fix the problems
- --- If you still don't have success then post the contents of file collectNWData.txt in your favorite Linux forum or post contents on phpfi.com and then post the link to phpfi.com in your favorite forum
- ==================================================================================================================
- ==================================================================================================================
- *** uname -a
- Linux localhost.localdomain 2.6.9-5.ELsmp #1 SMP Wed Jan 5 19:30:39 EST 2005 i686 i686 i386 GNU/Linux
- ==================================================================================================================
- *** cat /etc/SuSE-release
- cat: /etc/SuSE-release: No such file or directory
- ==================================================================================================================
- *** cat /etc/resolv | grep -vi "search"
- nameserver 192.168.0.16
- ==================================================================================================================
- *** route
- Kernel IP routing table
- Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
- 192.168.84.0    0.0.0.0         255.255.255.0   U     0      0        0 vbinat0
- 192.168.0.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0
- 192.168.72.0    0.0.0.0         255.255.255.0   U     0      0        0 vmnet8
- 192.168.121.0   0.0.0.0         255.255.255.0   U     0      0        0 vmnet1
- 169.254.0.0     0.0.0.0         255.255.0.0     U     0      0        0 eth0
- ==================================================================================================================
- *** ifconfig
- eth0      Link encap:Ethernet  HWaddr ##:##:##:##:##:#1  
-           inet addr:192.168.0.12  Bcast:192.168.0.255  Mask:255.255.255.0
-           inet6 addr: fe80::211:d8ff:feba:c375/64 Scope:Link
-           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
-           RX packets:7 errors:0 dropped:0 overruns:0 frame:0
-           TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
-           collisions:0 txqueuelen:1000 
-           RX bytes:1426 (1.3 KiB)  TX bytes:848 (848.0 b)
-           Interrupt:201 Base address:0xc000 
- lo        Link encap:Local Loopback  
-           inet addr:127.0.0.1  Mask:255.0.0.0
-           inet6 addr: ::1/128 Scope:Host
-           UP LOOPBACK RUNNING  MTU:16436  Metric:1
-           RX packets:2161 errors:0 dropped:0 overruns:0 frame:0
-           TX packets:2161 errors:0 dropped:0 overruns:0 carrier:0
-           collisions:0 txqueuelen:0 
-           RX bytes:2497178 (2.3 MiB)  TX bytes:2497178 (2.3 MiB)
- vbinat0   Link encap:Ethernet  HWaddr ##:##:##:##:##:#2  
-           inet addr:192.168.84.254  Bcast:192.168.84.255  Mask:255.255.255.0
-           inet6 addr: fe80::200:ff:fe00:0/64 Scope:Link
-           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
-           RX packets:0 errors:0 dropped:0 overruns:0 frame:0
-           TX packets:5 errors:0 dropped:0 overruns:0 carrier:0
-           collisions:0 txqueuelen:0 
-           RX bytes:0 (0.0 b)  TX bytes:378 (378.0 b)
- vmnet1    Link encap:Ethernet  HWaddr ##:##:##:##:##:#3  
-           inet addr:192.168.121.1  Bcast:192.168.121.255  Mask:255.255.255.0
-           inet6 addr: fe80::250:56ff:fec0:1/64 Scope:Link
-           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
-           RX packets:0 errors:0 dropped:0 overruns:0 frame:0
-           TX packets:5 errors:0 dropped:0 overruns:0 carrier:0
-           collisions:0 txqueuelen:1000 
-           RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
- vmnet8    Link encap:Ethernet  HWaddr ##:##:##:##:##:#4  
-           inet addr:192.168.72.1  Bcast:192.168.72.255  Mask:255.255.255.0
-           inet6 addr: fe80::250:56ff:fec0:8/64 Scope:Link
-           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
-           RX packets:0 errors:0 dropped:0 overruns:0 frame:0
-           TX packets:5 errors:0 dropped:0 overruns:0 carrier:0
-           collisions:0 txqueuelen:1000 
-           RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
- ==================================================================================================================
- *** ping tests
- connect: Network is unreachable
- Ping of 195.135.220.3 failed
- ping: unknown host www.suse.de
- Ping of www.suse.de failed
- ==================================================================================================================
- *** dhcpcd-test
- dhcpcd-test not available. dhcpcd package needs to be installed
- ==================================================================================================================
- *** lspci
- ==================================================================================================================
- *** lsusb
- Bus 005 Device 001: ID 0000:0000  
- Bus 004 Device 001: ID 0000:0000  
- Bus 003 Device 001: ID 0000:0000  
- Bus 002 Device 001: ID 0000:0000  
- Bus 001 Device 001: ID 0000:0000  
- ==================================================================================================================
- *** hwinfo --netcard; # (filtered)
- hwinfo not found
- ==================================================================================================================
- *** List of loaded modules
- | ac                      | ata_piix                | atm                     | autofs4                  |
- | battery                 | bridge                  | button                  | dm_mod                   |
- | ehci_hcd                | ext3                    | fat                     | floppy                   |
- | hw_random               | i2c_core                | i2c_dev                 | i915                     |
- | ip_conntrack            | ip_conntrack_ftp        | ip_nat_ftp              | iptable_filter           |
- | iptable_nat             | ip_tables               | ipv6                    | jbd                      |
- | kqemu                   | libata                  | lp                      | md5                      |
- | parport                 | parport_pc              | r8169                   | scsi_mod                 |
- | sd_mod                  | snd                     | snd_ac97_codec          | snd_intel8x0             |
- | snd_mixer_oss           | snd_mpu401_uart         | snd_page_alloc          | snd_pcm                  |
- | snd_pcm_oss             | snd_rawmidi             | snd_seq_device          | snd_timer                |
- | soundcore               | sunrpc                  | uhci_hcd                | vfat                     |
- | vmmon                   | vmnet                   |
- ==================================================================================================================
- *** cat /etc/sysconfig/network/ifcfg-[earwd]* | egrep -v ".*=''"
- ==================================================================================================================
- *** NWEliza states
- IF:eth0  IM:1
- DI:1 dI:1 NIC:0 cNiC:1:0 NI:0 cNI:0 PNG:1 DR:0 MTU:1 NISS:0 IP6:1 KM:0 WLW: 0 
-
Thanks & Regards
Girish
 
Old 12-07-2008, 06:28 AM   #6
daveginorge
Member
 
Registered: Oct 2006
Location: Porsgrunn, Norway
Distribution: CentOS 5 / 6 / 7
Posts: 107

Rep: Reputation: 16
The script is giving you the answer

Quote:
- !!! CND0140E: No default gateway set on your system
Enter a default gateway in your network settings and you should be OK
 
Old 12-07-2008, 07:23 AM   #7
GirishSharma
Member
 
Registered: Dec 2008
Posts: 37

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by daveginorge View Post
The script is giving you the answer



Enter a default gateway in your network settings and you should be OK
Please guide me how to set default gateway in network settings. I am newbie in RHEL/linux.

Thanks & Regards
Girish
 
Old 12-08-2008, 12:00 AM   #8
GirishSharma
Member
 
Registered: Dec 2008
Posts: 37

Original Poster
Rep: Reputation: 16
I have checked the following files:
1. /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=localhost.localdomain
GATEWAY=192.168.1.1

2./etc/network
NETWORKING=yes
HOSTNAME=localhost.localdomain
GATEWAY=192.168.1.1

i have given right 192.168.1.1 default gateway in network setting dialog box (system-config-network) and then
service network restart
service network reload

But, still i am not able to access internet.
Thanks & Regards
Girish
 
Old 12-08-2008, 12:25 AM   #9
hasanatizaz
Member
 
Registered: Nov 2007
Location: Pakistan
Distribution: Redhat and Debian
Posts: 317
Blog Entries: 1

Rep: Reputation: 35
post your ifcfg-eth0

have you add an entry in /etc/resolv.conf ???
 
Old 12-08-2008, 01:02 AM   #10
GirishSharma
Member
 
Registered: Dec 2008
Posts: 37

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by geniushasan View Post
post your ifcfg-eth0

have you add an entry in /etc/resolv.conf ???
#ifcfg-eth0
Command not found

# cat /etc/resolv.conf
nameserver 192.168.0.16
search localdomain
 
Old 12-08-2008, 01:55 AM   #11
hasanatizaz
Member
 
Registered: Nov 2007
Location: Pakistan
Distribution: Redhat and Debian
Posts: 317
Blog Entries: 1

Rep: Reputation: 35
ifconfig -a
 
Old 12-08-2008, 03:55 AM   #12
GirishSharma
Member
 
Registered: Dec 2008
Posts: 37

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by geniushasan View Post
ifconfig -a
-
Code:
-
[root@localhost mnt]# ifconfig -a
eth0      Link encap:Ethernet  HWaddr 00:11:D8:BA:C3:75
          inet addr:192.168.0.12  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::211:d8ff:feba:c375/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:15 errors:0 dropped:0 overruns:0 frame:0
          TX packets:14 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:1557 (1.5 KiB)  TX bytes:968 (968.0 b)
          Interrupt:201 Base address:0xc000

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:2068 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2068 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:2473674 (2.3 MiB)  TX bytes:2473674 (2.3 MiB)

sit0      Link encap:IPv6-in-IPv4
          NOARP  MTU:1480  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

vbinat0   Link encap:Ethernet  HWaddr 00:00:00:00:00:00
          inet addr:192.168.84.254  Bcast:192.168.84.255  Mask:255.255.255.0
          inet6 addr: fe80::200:ff:fe00:0/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:5 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 b)  TX bytes:378 (378.0 b)

vmnet1    Link encap:Ethernet  HWaddr 00:50:56:C0:00:01
          inet addr:192.168.121.1  Bcast:192.168.121.255  Mask:255.255.255.0
          inet6 addr: fe80::250:56ff:fec0:1/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:5 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

vmnet8    Link encap:Ethernet  HWaddr 00:50:56:C0:00:08
          inet addr:192.168.72.1  Bcast:192.168.72.255  Mask:255.255.255.0
          inet6 addr: fe80::250:56ff:fec0:8/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:5 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

[root@localhost mnt]#
 
Old 12-08-2008, 05:17 AM   #13
yadava
Member
 
Registered: Apr 2008
Posts: 60

Rep: Reputation: 15
as you told that your proxy ip is 192.168.0.16
but u are using 192.168.1.1 as a gateway
remember both are different ip address.
as when you run the command ifconfig it showed the informaion
192.168.0.255.
i do think this is your gateway
put this entry in /etc/sysconfig/network and /etc/sysconfig/network-scripts/ifcfg-eth0
then restart the service
then try
hope so should work
 
Old 12-08-2008, 06:08 AM   #14
GirishSharma
Member
 
Registered: Dec 2008
Posts: 37

Original Poster
Rep: Reputation: 16
I have put this entry (192.168.0.255) in /etc/sysconfig/network and /etc/sysconfig/network-scripts/ifcfg-eth0 and then restartd the service, but still it is not working. I am confused what should be ip of default gateway; i.e. 192.168.1.1, 192.168.0.12, 192.168.0.16 or 192.168.0.255.

Regards
Girish
 
Old 12-09-2008, 11:50 AM   #15
daveginorge
Member
 
Registered: Oct 2006
Location: Porsgrunn, Norway
Distribution: CentOS 5 / 6 / 7
Posts: 107

Rep: Reputation: 16
Enter the Proxy server IP as the Gateway Address and restart the service or restart the PC If it does not work run the script you used earlier and post the results.
 
  


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
vsftp - Can access FTP within office network BUT cant access via Internet! kokfei77 Red Hat 2 03-07-2012 07:24 PM
internet server that use a prepaid account to access the internet elgieb1 Linux - General 0 02-19-2007 11:59 PM
Debian Woody: Can't access internet through router, but can access network computers marales314 Linux - Networking 3 06-09-2006 12:33 PM
WIFI WLAN / Cannot access internet but can access the router configuration page?SUSE thomas939 Linux - Wireless Networking 12 12-13-2005 10:28 AM
Connection to access point OK, but cannot access the network/internet Nymphetamine Linux - Wireless Networking 29 01-13-2005 02:59 PM

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

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