RE: Connect two PC's

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Or, connect two PCs to an network Hub or a Bridge for HW connection.

Charlie X. Liu

Sensoray Company, Inc. (http://www.sensoray.com)
7313 SW Tech Center Dr.
Tigard, OR 97223


-----Original Message-----
From: linux-net-owner@xxxxxxxxxxxxxxx
[mailto:linux-net-owner@xxxxxxxxxxxxxxx]On Behalf Of Guy
Sent: Wednesday, September 14, 2005 5:59 AM
To: stephanwehner@xxxxxxxxx; linux-net@xxxxxxxxxxxxxxx
Subject: RE: Connect two PC's


Normally you need a special cable to connect 2 computers directly.  The
cable is called a cross-over cable.  Some NICs don't require cross-over
cables.

> -----Original Message-----
> From: linux-net-owner@xxxxxxxxxxxxxxx [mailto:linux-net-
> owner@xxxxxxxxxxxxxxx] On Behalf Of Stephan Wehner
> Sent: Wednesday, September 14, 2005 8:13 AM
> To: linux-net@xxxxxxxxxxxxxxx
> Subject: Connect two PC's
>
> Hi there,
>
> I'm trying to connect two PC's with a network cable. A simple ping
> doesn't work in either direction. One machine has two network cards.
> So I can see that its routing table may need to be adjusted. But the
> other machine has only one network card, and the cable goes straight
> to the first machine. How can I find out what is wrong? Below is the
> output of
>
> ifconfig -a
> route -n
> ping <IP-address>
>
> for both. The machines run livecd's (Knoppix 3.0 -- 2 network cards /
> Puppy 1.0.4 -- one network card)
>
> If I connect any of the three network cards to a router, I can reach
> the Internet from both machines. So I don't think it is a hardware or
> driver problem.
>
> Would dmesg output help??
>
> Stephan
>
>
>
> Machine 1 has one network card, its IP address should be 192.168.2.115
> # ifconfig -a
> eth0      Link encap:Ethernet  HWaddr 00:01:03:E7:8A:F8
>           inet addr:192.168.2.115  Bcast:192.168.2.255  Mask:255.255.255.0
>           UP BROADCAST MULTICAST  MTU:1500  Metric:1
>           RX packets:0 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:1333 errors:0 dropped:0 overruns:0 carrier:1308
>           collisions:0 txqueuelen:1000
>           RX bytes:0 (0.0 iB)  TX bytes:202860 (198.1 kiB)
>           Interrupt:11 Base address:0xa000
>
> lo        Link encap:Local Loopback
>           inet addr:127.0.0.1  Mask:255.0.0.0
>           UP LOOPBACK RUNNING  MTU:16436  Metric:1
>           RX packets:1296 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:1296 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:0
>           RX bytes:144848 (141.4 kiB)  TX bytes:144848 (141.4 kiB)
>
> # route -n
> Kernel IP routing table
> Destination     Gateway         Genmask         Flags Metric Ref    Use
> Iface
> 192.168.2.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
> # ping 192.168.2.116
> PING 192.168.2.116 (192.168.2.116): 56 data bytes
>
> --- 192.168.2.116 ping statistics ---
> 3 packets transmitted, 0 packets received, 100% packet loss
>
>
> Machine 2 has two network cards. eth1 connects to the Internet (which
> "works")
>
> # ifconfig -a
> eth0      Link encap:Ethernet  HWaddr 00:50:BA:48:29:7B
>           inet addr:192.168.2.116  Bcast:192.168.2.255  Mask:255.255.255.0
>           inet6 addr: fe80::250:baff:fe48:297b/64 Scope:Link
>           UP BROADCAST MULTICAST  MTU:1500  Metric:1
>           RX packets:0 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:9 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:1000
>           RX bytes:0 (0.0 b)  TX bytes:1746 (1.7 KiB)
>           Interrupt:11 Base address:0xc000
>
> eth1      Link encap:Ethernet  HWaddr 00:D0:09:BF:5E:6D
>           inet addr:192.168.2.203  Bcast:192.168.2.255  Mask:255.255.255.0
>           inet6 addr: fe80::2d0:9ff:febf:5e6d/64 Scope:Link
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>           RX packets:448 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:31 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:1000
>           RX bytes:34232 (33.4 KiB)  TX bytes:3164 (3.0 KiB)
>           Interrupt:10 Base address:0xe000
>
> lo        Link encap:Local Loopback
>           inet addr:127.0.0.1  Mask:255.0.0.0
>           inet6 addr: ::1/128 Scope:Host
>           UP LOOPBACK RUNNING  MTU:16436  Metric:1
>           RX packets:12 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:0
>           RX bytes:724 (724.0 b)  TX bytes:724 (724.0 b)
>
> sit0      Link encap:IPv6-in-IPv4
>           NOARP  MTU:1480  Metric:1
>           RX packets:0 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:0
>           RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
> # route -n
> Kernel IP routing table
> Destination     Gateway         Genmask         Flags Metric Ref    Use
> Iface
> 192.168.2.0     0.0.0.0         255.255.255.0   U     0      0        0
> eth1
> 192.168.2.0     0.0.0.0         255.255.255.0   U     0      0        0
> eth0
> 0.0.0.0         192.168.2.1     0.0.0.0         UG    0      0        0
> eth1
> # ping 192.168.2.115
> PING 192.168.2.115 (192.168.2.115): 56 data bytes
>
> --- 192.168.2.115 ping statistics ---
> 27 packets transmitted, 0 packets received, 100% packet loss
> -
> : send the line "unsubscribe linux-net" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux