Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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.
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.
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.
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
-
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
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
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.