-
Linux Networking.
I installed RedHat 7.1 on 2 of my computers and set them both up for networking. Their ip's are 192.168.0.3 and 192.168.0.4 . When I boot both machines up it starts everything fine but when I try to ping the machines it says 'host not reachable'. The activity light on the machine's NIC lights up but it still gives me the 'hot not reachable message'.Can someone please tell me why this is happening? I would greatly appreciate it.
-libertie
-
Check and make sure you entered the machines respective IP's in the /etc/hosts.allow file, so they are allowed to access each other.
Example on machine 192.168.0.3 /etc/hosts.allow should have something like this
ALL: 192.168.0.4
This should give 192.168.0.4 full access to the machine .... read up a bit and you can limit the access to each machine through this file ... i.e just ftp access or whatever you nominate.
Good luck, hope this helps.
-
what do you get when trying ifconfig in the shell ?
It could be only your loopback would be active. The only one in his routing table then would be 127.0.0.1 = localhost = himself. Check if you see something like eth0 ....
If you don't see this , you might wanna check if your nic is loaded properly. To do this you can type :
dmesg | grep eth
You can always give the output here...
Good luck
-
Quote:
Originally posted here by Phat_Penguin
Check and make sure you entered the machines respective IP's in the /etc/hosts.allow file, so they are allowed to access each other.
No, don't.
Being in or out of hosts.allow has no impact whatsoever on the ability to ping machines.
hosts.allow only affects a few services.
Slarty
-
I think this is not the right place to post this question, but nyways:
I had the same problem and posted it under *nix.
I had the same problem with RH7.1 and also caldera 2.4.
I dint get any replys :( , so i will be intrested in following this :)
Cheers ;)
-
When I type ifconfig I get my loopback stuff and i get eth0. It is frustrating b/c when I ping from 192.168.0.3 to 192.169.0.4 the activity light comes on both and the hub blinks and shows activity.Thanks for the help Phat_Penguin but I think slarty is right. All hosts were allowed by default. Right? Another thing-when I turn one of the computers on the activity light automaticly turns green on the hub, even before networking starts up. On the second it only comes on when networking starts. Would this have any effect or cause a problem? It is another question that has plagued me.
Here you go Shrekkie-
eth0: 3c509 at 0x220, 10baseT port, address 00 00 76 2a 6f 02, IRQ 11.
eth1: 3c509 at 0x300, 10baseT port, address 00 04 76 2f 6f 46, IRQ 10.
eth0: Setting Rx mode to 1 addresses.
-libertie
-
Is this the output of one box ? If so why are there two nics in one box ? firewall or sumtin ?
Are they both connecting to each other through a hub ? If so try connecting the boxes with a crosscable directly and then try again.
Another problem between NIC - HUB - NIC could be the speed both nics and the hub work with. Normally they should be able to autosense and negotiate with eqach other, but if the nics are on 10BaseT and the Hub ( for example) 100BaseT they won't see each other.
-
can you post a everything you get from running ifconfig on each machine?
-
nic issues in linux
It would be best if you posted your ifconfig and your startup config files so that we can see what you've done and why the route is not working. I haven't used Linux in awhile (I use FreeBSD) but it seems to me you need to set the ip addys for each machine in a resolve file (/etc/resolv.conf in BSD). Also, its easier for all to diagnose your problems if we can see all the config files you've added NIC info to.
Quote:
Originally posted here by slarty
No, don't.
Being in or out of hosts.allow has no impact whatsoever on the ability to ping machines.
hosts.allow only affects a few services.
Slarty
Reminder: hosts.allow and hosts.deny are for security purposes.
-
AFAIK hosts.* is only for services that are using tcp_wrappers(tcpd).
-Maestr0
-
Thank you guys for all of the help. I thought about it for a while and I took the network card out of my dad's computer and put it in the computer that seemed to have two nic's and it worked. It came up and I was able to ping the other computer next to me. Why would the network card cause a problem like that? The configuration I had for it was just the simple one you set up when you install RedHat. Anyways...thank you all for your help, I am sorry I fell like I wasted everyone's time.
-libertie
-
Quote:
Originally posted here by antisecurityboy
I think this is not the right place to post this question, but nyways:
I had the same problem and posted it under *nix.
I had the same problem with RH7.1 and also caldera 2.4.
I dint get any replys :( , so i will be intrested in following this :)
Cheers ;)
OK, the first thing you should do is burn the machine with caldera. Next, beat it with a bat a few times to make sure it's dead. ;-()