LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   CROSSOVER Network!!!... setup (https://www.linuxquestions.org/questions/linux-networking-3/crossover-network-setup-128876/)

Genjix 12-25-2003 02:38 PM

CROSSOVER Network!!!... setup
 
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?)

Thanks for your help

Genjix 12-25-2003 02:42 PM

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


peter_robb 12-25-2003 02:49 PM

You have entered one of the machines as a gateway..
They shouldn't have anything entered...

Likewise, there shouldn't be anything in etc/sysconfig/network/routes ..
They are local to each other, with no gateway between them.

I suggest you pull them back to standard local ip ranges, eg 192.168.1.x netmask 255.255.255.0, remove any gateway settings and ping again.

dhcpd is a dhcp server for automatically issuing numbers for an entire network.
Best to turn it off..

Genjix 12-25-2003 03:51 PM

removed everything in /etc/sysconfig/network/routes
set IP's

A: 192.168.1.3 255.255.255.0
B: 192.168.1.2 255.255.255.0

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]

Genjix 12-26-2003 12:33 PM

so could anyone gimme any tutorials prehaps on interfacing ethernet devices with a network?

2damncommon 12-26-2003 06:32 PM

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.


All times are GMT -5. The time now is 01:49 AM.