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.
As user name describes me, don't have a lot of knowledge yet with red hat or linux. Setting up red hat server eth1 with static ip xxx.xxx.111.25 netmask and allowing red hat to supply broadcast. Trying to hit another server in the same subnet xxx.xxx.111.22, both have no gateways. Seperate Windows servers xxx.xxx.111.23 and .24 with same subnet and no gateway, can ping each other and xxx.xxx.111.22 but none can ping .25 my red hat.
Seems like no one can ping .25. I have turned off iptables, reslov.conf is correct as is hosts file. route displays xxx.xxx.111.0. I out of things to try.
I've not done a config without a default gateway specified so I'm not sure its possible - I was under the impression you have to specify a default gateway even if you don't specify gateways for any other NICs.
What do "netstat -r" and "netstat -rn" show? Do you see "default" in former?
Check /etc/sysconfig/network-scripts/ifcfg-eth0 (assuming you're using eth0) and see what it has specified - maybe it defaulted to an unexpected gateway? Try adding a gateway entry there if there isn't one - use your router's IP as the gateway.
The purpose of no gateway, there are 4 servers (2-linux, 2-2003 k) and all point to a unix netapp (storage), so unix netapp xxx.xxx.111.22 and both 2003 servers are .23.& .24 with the red hat I am trying to bring up .25. Given that they are not going out to the internet and are in the same subnet, no gateway was needed.
It can ping eth2, which was given a statice IP on another subnet, but thats it. I have tried to disable iptables, have given the dns (reslove.conf) from the 2003 servers, vi the hosts to even include xxx.xxx.111.22 with and w/o fqdn of the netapp, but no luck.
The route shows basics withe and entry for the subnet xxx.xxx.111.0 and a defualt gateway for eth2. Eth2 is conifigured to get out to the world. route -r and -rn show me same thing as route. ifcfg-eth1 shows me entries of eth1 ip,net,dev etc and all is correct.
Nic should be fine regarding drivers, otherwise it could bot be given static IP and its status remains up. I am running out of ideas.
I've not done a config without a default gateway specified so I'm not sure its possible - I was under the impression you have to specify a default gateway even if you don't specify gateways for any other NICs.
The default route is used only when no other specific route matches. We operating under the assumption here that each system has a route to the xxx.xxx.111.0/24 network (otherwise other system's pings would have failed).
No default route and no other specific routes means no connection to *other* networks.
It can ping eth2, which was given a statice IP on another subnet, but thats it. I have tried to disable iptables, have given the dns (reslove.conf) from the 2003 servers, vi the hosts to even include xxx.xxx.111.22 with and w/o fqdn of the netapp, but no luck.
The route shows basics withe and entry for the subnet xxx.xxx.111.0 and a defualt gateway for eth2. Eth2 is conifigured to get out to the world. route -r and -rn show me same thing as route. ifcfg-eth1 shows me entries of eth1 ip,net,dev etc and all is correct.
Nic should be fine regarding drivers, otherwise it could bot be given static IP and its status remains up. I am running out of ideas.
Stop twiddling with /etc/hosts, /etc/resolv.conf - these have nothing to do with the ability to ping by IP address.
Ok, at this point, you are going to need to show real data, output of:
Code:
ipconfig -a
iptables -L
netstat -rn
ping othermachine's_IP
on any two machines that cannot ping each other. Nobody cares about your private LAN IPs. Also explain how all these machines are connected together.
Your iptables default policy is to DROP for the INPUT, FORWARD, and OUTPUT chains. This makes for very uninteresting networking. Perhaps you will find ACCEPT more enjoyable.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.