LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Access Internet (https://www.linuxquestions.org/questions/linux-networking-3/access-internet-688672/)

GirishSharma 12-05-2008 10:05 PM

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

daveginorge 12-06-2008 01:47 AM

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.

GirishSharma 12-06-2008 09:42 AM

Quote:

Originally Posted by daveginorge (Post 3366142)
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

framp 12-06-2008 05:23 PM

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.

GirishSharma 12-06-2008 10:26 PM

Quote:

Originally Posted by framp (Post 3366721)
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

daveginorge 12-07-2008 06:28 AM

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

GirishSharma 12-07-2008 07:23 AM

Quote:

Originally Posted by daveginorge (Post 3367026)
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

GirishSharma 12-08-2008 12:00 AM

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

hasanatizaz 12-08-2008 12:25 AM

post your ifcfg-eth0

have you add an entry in /etc/resolv.conf ???

GirishSharma 12-08-2008 01:02 AM

Quote:

Originally Posted by geniushasan (Post 3367737)
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

hasanatizaz 12-08-2008 01:55 AM

ifconfig -a

GirishSharma 12-08-2008 03:55 AM

Quote:

Originally Posted by geniushasan (Post 3367806)
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]#


yadava 12-08-2008 05:17 AM

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

GirishSharma 12-08-2008 06:08 AM

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

daveginorge 12-09-2008 11:50 AM

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.


All times are GMT -5. The time now is 02:26 AM.