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.
I am setting up a server on my network that is running Redhat, I have no experience with RedHat but have a little in FreeBSD.
The problem I am having is: On theserver I can ping 127.0.0.1 AND the IP that I gave it (itself)...but I can not ping the router (xxx.xxx.xxx.1) nor the nameserver (xxx.xxx.xxx.4) nor anything else .. (except itself) eth0 is up but I just cannot ping anything but 127.0.0.1 and thw ip address I gave it.
I can not ping the router, anything ON my network, anything outside my network.
Now..be nice I have no experience with RedHat.
If there is any other information you require, please let me know.
well, that is interesting since I have precisely the opposite problem -- I can ping my router but not localhost or the IP I assigned to the network adapter.
Thank you for the response
The output of ifconfig of course was quite long. Is there anyhting specifically I should look for?
It does see eth0
shows the inet address i gave it, the proper broadcast and netmask too (255.255.255.0)
It says:
UP BROADCAST RUNNING MULTICAST MTU: 1500 Metric: 1
It also sees lo the local loopback with inet addr 127.0.0.1
Hi,
I am facing the same problem....
able to ping myself but not the router...
it says network unreachable...
my IP is static...
the output of my ifconfig -a is.....
[root@localhost root]# ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:40:CA:BB:FC:A7
inet addr:172.16.56.16 Bcast:172.16.56.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:28 errors:0 dropped:0 overruns:0 frame:0
TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:3788 (3.6 Kb) TX bytes:240 (240.0 b)
Interrupt:9 Base address:0x9000
ok I should have waited for you guys to respond....instead in all of my OCD based wisdom, I fiddled with netconf ..Now I can only ping 127.0.0.1 no longer the IP I assigned it.
camelrider
Cables...are good tried 3 all came off of working servers / in working ports.
michaelk
Now the message is "network unreachable" whenever I attempt to ping anything but 127.0.0.1
Prior to my insane fiddling I would get "destination host unreachable"
Network card light green router port light green Cables checked using one I know is good.
Replaced NIC with new one...was recognized by redhat and installed.... reason I replaced NIC was that this problem was there with old NIC. Everything looked OK so I changed NIC cards...problem still exists. Put card in different PCI Slot...just in case.
I also faced this problem some time before but solved that when i added mac address of my comp corresponding to my ip in the gateway, since your ip is static.
double check that the subnet mask is the same for all devices that you wish to communicate and that the corresponding ip's all fit within the network boundaries set by the mask.
I have a really similar experience with Redhat 8.0 jusat recently and gave up. One minute the router and redhat were fine the next minute they lost contact completely/ Tried it static and dynamic. Hopeless.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.