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.
After 3 nights on google, my 1st attempt at networking isnt doing that well.
im not worried about internet connection here at all, just a connection between 2 pcs.
Got 2 pcs for me and my mates programming week. SuSE 8.2 on both pcs. Whacked some Silicon Integrated Systems [SiS] SiS900 10/100 NIC Adapters in and set them both up.
IP Netmask
computer A: 22.22.22.22 255.255.255.0 eth0
computer B: 22.22.22.23 255.255.255.0 eth0
so me thinking everything is fine, whacks on an nfs server on both machines and clients on both machine exporting /root and /home/dir to each computer as (rw,root_squash,sync)
So I get errors. I then procedded to fiddle with my pc trying to get the ethernet cards to interface with my pc after i learnt what I done.
And try 2 set up NFS server, no luck. rpcinfo -p shows all provesses running that should be, so its not that. For some reason I am unable to ping him.
It comes up with errors "Destination Host Unreachable"
Yet in hosts.allow ive put 1 entry
ALL : <IP adress of other person here>
countless reboots have done nothing, its like the other person doesnt exist and vice versa.
if i say
route add 22.22.22.0
i get SIOCADDRT: No Such device
No matter how I try to conect to the other computer it complains about 'no route to host'
/etc/sysconfig/network/routes
computer A:
22.22.22.22 22.22.22.23 255.255.255.255 UN
default 22.22.22.23 - UGN
computer B:
22.22.22.22 22.22.22.23 255.255.255.255 UN
default 22.22.22.23 - UGN
please help, im using SuSE 8.2,
I have both ethernet devices as eth0 with ip's 22.22.22.22
22.22.22.23
and both with a subnet mask of 255.255.255.0
Doing a netstat -a doesnt seem to show any connection to the other host at all ( all *:* ), on both computers.
I have done bare googling and still i havent any luck, i cant seem to find a tutorial on routing anywhere. I sure hope its something simple and is most probably coz of my poor effort knowledge.
Im not sure whether its a problem with teh interface between my ethernet card and the pcs or a routing problem(between 2 pcs?)
I found this as well, yet funnily enough it was only on 1 machine.
Code:
/var/log/localmessages
Dec 25 04:05:02 genjix dhcpd:
Dec 25 04:05:02 genjix dhcpd: No subnet declaration for eth0 (22.22.22.23).
Dec 25 04:05:02 genjix dhcpd: ** Ignoring requests on eth0. If this is not what
Dec 25 04:05:02 genjix dhcpd: you want, please write a subnet declaration
Dec 25 04:05:02 genjix dhcpd: in your dhcpd.conf file for the network segment
Dec 25 04:05:02 genjix dhcpd: to which interface eth0 is attached. **
Dec 25 04:05:02 genjix dhcpd:
Dec 25 04:05:02 genjix dhcpd:
Dec 25 04:05:02 genjix dhcpd: Not configured to listen on any interfaces!
Dec 25 04:05:02 genjix dhcpd:
Dec 25 04:05:02 genjix dhcpd: If you did not get this software from ftp.isc.org, please
no dhcpd. reboot both machines. In the bootup messages when it tries to init firewall it says 'no nameservers in /etc/resolv.conf!`' (not to mention all the other errors with nfs and samba - not that i need samba ).
But when I ping both of them it says 'Destination Host Unreachable'.
netstat -rna
Destination Gateway Genmask Flags MSS Window irtt Iface
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
[for both machines]
You should be up and running after your IP correction to the 192.168.x.x block.
If I understand so far, you added your NICs to two PCs already running Suse 8.2.
They are connected VIA a crossover cable with no hub.
Are you using YAST to configure the cards? A quick look at my 9.0 Suse shows it will take care of everything. All I need to put in /etc/resolve.conf on my Debian system are the DNS servers for my ISP. Those can be entered in Suse on the YAST screen.
A restart after reconfiguration is not a bad idea if you are not sure you are restarting the services correctly manually.
Are your NIC drivers being loaded on reboot. You should see the driver module listed in YAST in the output of the "lsmod" (as root) command. The "ifconfig" command will also show if the network in running.
Firewall settings can interfere with local network connections. Perhaps shut down the firewall while disconnected from the internet to confirm there is no problem there.
If all that is correct a "ping" command to the IP address of the other PC should show a connection.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.