LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-25-2003, 02:38 PM   #1
Genjix
Member
 
Registered: Oct 2003
Location: Pico
Distribution: SUSE 9.1
Posts: 83

Rep: Reputation: 15
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
 
Old 12-25-2003, 02:42 PM   #2
Genjix
Member
 
Registered: Oct 2003
Location: Pico
Distribution: SUSE 9.1
Posts: 83

Original Poster
Rep: Reputation: 15
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
 
Old 12-25-2003, 02:49 PM   #3
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
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..

Last edited by peter_robb; 12-25-2003 at 02:50 PM.
 
Old 12-25-2003, 03:51 PM   #4
Genjix
Member
 
Registered: Oct 2003
Location: Pico
Distribution: SUSE 9.1
Posts: 83

Original Poster
Rep: Reputation: 15
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]
 
Old 12-26-2003, 12:33 PM   #5
Genjix
Member
 
Registered: Oct 2003
Location: Pico
Distribution: SUSE 9.1
Posts: 83

Original Poster
Rep: Reputation: 15
so could anyone gimme any tutorials prehaps on interfacing ethernet devices with a network?
 
Old 12-26-2003, 06:32 PM   #6
2damncommon
Senior Member
 
Registered: Feb 2003
Location: Calif, USA
Distribution: PCLINUXOS
Posts: 2,918

Rep: Reputation: 103Reputation: 103
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Network Problems with Crossover Office rovitotv Slackware 0 01-06-2005 08:48 PM
How to setup a lan with CrossOver Cables RHLinuxGUY Linux - Networking 6 04-12-2004 01:38 AM
problem sharing internet connection thru crossover network kozonak Linux - Newbie 3 03-09-2004 04:39 AM
network with crossover cable burkie Linux - Newbie 4 01-13-2004 09:29 PM
Network using crossover cable Great Mister Linux - Newbie 7 12-16-2003 07:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:32 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration