LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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
 
LinkBack Search this Thread
Old 10-17-2001, 01:28 PM   #1
Daisey Grey
LQ Newbie
 
Registered: Sep 2001
Posts: 9

Rep: Reputation: 0
Connect 2 Linux PC's


Very simply I want to connect two PC's that run Linux only using a cross-over cable (no Internet involved). Using the NFS Config in Gnome, I think I've entered the info correctly, but when I try to ping the other machine, it is not recognized. Do I have to do anything in LinuxConfig? I'm not entirely sure what I've been doing (only used books and 'Net for info), so if you answer, could you please be VERY explicit and plain?

Thanks for any suggestions,
DG
 
Old 10-17-2001, 09:31 PM   #2
DavidPhillips
Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,153

Rep: Reputation: 56
If you have the nics working they should ping if they are on the same network


[root@alpha /root]# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo



[root@echo /root]# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo



[root@alpha /root]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:xx:xx:xx:xx:xx
inet addr:10.0.0.1 Bcast:10.0.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:7489 errors:0 dropped:0 overruns:0 frame:0
TX packets:8475 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
Interrupt:11 Base address:0xe000


[root@echo /root]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:xx:xx:xx:xx:xx
inet addr:10.0.0.2 Bcast:10.0.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:7489 errors:0 dropped:0 overruns:0 frame:0
TX packets:8475 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
Interrupt:11 Base address:0xe000

Note these two machines have the same network of 10.0.0.0 and any ping to that network is routed to eth0.

Also they have different ip addresses, alpha is 10.0.0.1
and echo is 10.0.0.2



[root@alpha /root]# ping 10.0.0.2
PING 10.0.0.2 (10.0.0.2) from 10.0.0.1 : 56(84) bytes of data.
64 bytes from 10.0.0.2: icmp_seq=0 ttl=128 time=387 usec
64 bytes from 10.0.0.2: icmp_seq=1 ttl=128 time=230 usec
64 bytes from 10.0.0.2: icmp_seq=2 ttl=128 time=234 usec
64 bytes from 10.0.0.2: icmp_seq=3 ttl=128 time=231 usec

--- 10.0.0.2 ping statistics ---
4 packets transmitted, 4 packets received, 0% packet loss
round-trip min/avg/max/mdev = 0.230/0.270/0.387/0.069 ms



 
Old 10-17-2001, 09:34 PM   #3
DavidPhillips
Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,153

Rep: Reputation: 56
ifconfig eth0 10.0.0.1 netmask 255.255.255.0


this will set the ip


or use netcfg
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to connect two pc's via modem? (server = linux, client = windows) seraph-seph Slackware 15 07-11-2008 03:58 PM
How to connect two pc's via modem? (server = linux, client = windows) seraph-seph Linux - Networking 2 11-18-2005 08:26 AM
connect two pc's with nfs rosariowong Slackware 8 04-22-2005 06:00 PM
connect to pc's rosariowong Slackware 1 04-20-2005 02:05 PM
Can't connect to network with Win98/2k pc's m.landoni Linux - Networking 2 11-25-2003 11:16 AM


All times are GMT -5. The time now is 08:21 AM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration