Difference between revisions of "Direct PC Connection"

From NAS-Central Buffalo - The Linkstation Wiki
Jump to: navigation, search
(Draft)
 
 
(21 intermediate revisions by 4 users not shown)
Line 1: Line 1:
= Direct PC Connection =
+
{{Articles|General|Hardware|FAQ}}
So you go to a friend's place and you'd like to share some files. How ?
+
  
==USB bridge cable==
+
So you bring your Linkstation to a friend's place and you'd like to share some files. How ?
Unknown. they seem to require both ends to use the same software, and generally runs on Windows-only machines. TBD.
+
  
==Ethernet to Ethernet==
+
=Hardware setup=
you can bring an inexpensive USB network adapter and crossover cable.
+
==Option1: Standard Ethernet cable==
===Option1: crossover cable===
+
 
Your friend has a network card. Yay !
 
Your friend has a network card. Yay !
Just connect using a crossover cable
+
Just connect using a standard Ethernet cable or a crossover Ethernet cable.
 +
The cable supplied with the Linkstation is a standard Ethernet cable, so this one works.
  
===Option2: crossover cable and usb network card===
+
<br>
 +
'''The reason you don't need a crossover cable is that on the LS1 you can change a crossover switch to mimic the crossover cable, and on other Linkstation models, they are "auto-sensing" so will automatically create the crossover if needed.'''
 +
 
 +
<br>
 +
In case you'd want to create a crossover cable anyway, for fun,
 +
here's howto:
 +
The image below shows the pin-layouts for the standard network crossover cables.
 +
The differences are just the colourt of the cables.
 +
 
 +
[[Image:CrossOverCableLayout.gif]]
 +
 
 +
If you have...
 +
: 568A on both ends, then it's a Standard Ethernet straight through cable.
 +
: 586B on both ends, then it's a Standard Ethernet straight through cable.
 +
: 586A on one end and 586B at the other, then it's a Ethernet crossover cable.
 +
 
 +
==Option2: Standard Ethernet cable and usb network card==
 
Your friend does not have a network card, but has usb ports.
 
Your friend does not have a network card, but has usb ports.
 
No problem ! Buy a usb network adapter and connect on his/her PC.
 
No problem ! Buy a usb network adapter and connect on his/her PC.
 +
An example is the Linksys USB200M 10/100 USB2.0 network adapter, fairly inexpensive.
  
===Option3: same as above but hub replaces crossover cable===
+
==Option3: USB bridge cable==
 +
Unknown. they seem to require both ends to use the same software, and generally runs on Windows-only machines. TBD.
  
====Static IP setup====
+
=Software setup=
 +
==Static IP setup on the Linkstation==
  
as per lb_worm's suggestion,  
+
as per lb_worm's suggestion, on your Linkstation, change those 2 files:
  
 
1) set the /etc/network/interfaces to:  
 
1) set the /etc/network/interfaces to:  
  
  
# Used by ifup(8) and ifdown(8). See the interfaces(5) manpage or  
+
# Used by ifup(8) and ifdown(8). See the interfaces(5) manpage or  
# /usr/share/doc/ifupdown/examples for more information.  
+
# /usr/share/doc/ifupdown/examples for more information.  
auto lo  
+
auto lo  
iface lo inet loopback  
+
iface lo inet loopback  
 
   
 
   
auto eth0  
+
auto eth0  
iface eth0 inet static  
+
iface eth0 inet static  
address 192.168.11.160  
+
address 192.168.11.160  
netmask 255.255.255.0  
+
netmask 255.255.255.0  
geteway 192.168.11.1  
+
geteway 192.168.11.1  
network 192.168.11.0  
+
network 192.168.11.0  
 
   
 
   
auto eth0:auto  
+
auto eth0:auto  
iface eth0:auto inet dhcp
+
iface eth0:auto inet dhcp
  
  
Line 43: Line 60:
  
  
# Config file for dhcpcd.  
+
# Config file for dhcpcd.  
 
   
 
   
case ${INTERFACE} in  
+
case ${INTERFACE} in  
eth0)  
+
eth0)  
 
   
 
   
# Uncomment this to allow dhcpcd to set the DNS servers in /etc/resolv.conf  
+
# Uncomment this to allow dhcpcd to set the DNS servers in /etc/resolv.conf  
# If you are using resolvconf then you can leave this commented out.  
+
# If you are using resolvconf then you can leave this commented out.  
SET_DNS='yes'  
+
SET_DNS='yes'  
 
   
 
   
# Uncomment this to allow dhcpcd to set the NIS domainname of the host to the  
+
# Uncomment this to allow dhcpcd to set the NIS domainname of the host to the  
# domainname option supplied by DHCP server.  
+
# domainname option supplied by DHCP server.  
#SET_DOMAIN='yes'  
+
#SET_DOMAIN='yes'  
 
   
 
   
# Uncomment this to allow dhcpcd to set hostname of the host to the  
+
# Uncomment this to allow dhcpcd to set hostname of the host to the  
# hostname option supplied by DHCP server.  
+
# hostname option supplied by DHCP server.  
#SET_HOSTNAME='yes'  
+
#SET_HOSTNAME='yes'  
 
   
 
   
# Uncomment this to allow dhcpcd to set the NTP servers in /etc/ntp.conf  
+
# Uncomment this to allow dhcpcd to set the NTP servers in /etc/ntp.conf  
#SET_NTP='yes'  
+
#SET_NTP='yes'  
 
   
 
   
# Uncomment this to allow dhcpcd to set the YP servers in /etc/yp.conf  
+
# Uncomment this to allow dhcpcd to set the YP servers in /etc/yp.conf  
#SET_YP='yes'  
+
#SET_YP='yes'  
 
   
 
   
# Add other options here, see man 8 dhcpcd-bin for details.  
+
# Add other options here, see man 8 dhcpcd-bin for details.  
OPTIONS='-d -t 30 interface eth0:auto'  
+
OPTIONS='-d -t 30 interface eth0:auto'  
;;  
+
;;  
 
   
 
   
# Add other interfaces here  
+
# Add other interfaces here  
*)  
+
*)  
;;  
+
;;  
 
   
 
   
esac
+
esac
  
  
 
The -d option will generate some debug.
 
The -d option will generate some debug.
 +
 +
==Static IP setup on the PC==
 +
Windows XP:
 +
Start->Control Panel->Network Connections.
 +
Right click on your network adapter(likely called "Local Area Connection"
 +
->Properties <br>
 +
[[Image:Lanproperties.JPG]]
 +
 +
Select "Internet Protocol (TCP/IP) <br>
 +
[[Image:Tcpipproperties.JPG]]

Latest revision as of 21:24, 17 December 2006


So you bring your Linkstation to a friend's place and you'd like to share some files. How ?

Contents

Hardware setup

Option1: Standard Ethernet cable

Your friend has a network card. Yay ! Just connect using a standard Ethernet cable or a crossover Ethernet cable. The cable supplied with the Linkstation is a standard Ethernet cable, so this one works.


The reason you don't need a crossover cable is that on the LS1 you can change a crossover switch to mimic the crossover cable, and on other Linkstation models, they are "auto-sensing" so will automatically create the crossover if needed.


In case you'd want to create a crossover cable anyway, for fun, here's howto: The image below shows the pin-layouts for the standard network crossover cables. The differences are just the colourt of the cables.

CrossOverCableLayout.gif

If you have...

568A on both ends, then it's a Standard Ethernet straight through cable.
586B on both ends, then it's a Standard Ethernet straight through cable.
586A on one end and 586B at the other, then it's a Ethernet crossover cable.

Option2: Standard Ethernet cable and usb network card

Your friend does not have a network card, but has usb ports. No problem ! Buy a usb network adapter and connect on his/her PC. An example is the Linksys USB200M 10/100 USB2.0 network adapter, fairly inexpensive.

Option3: USB bridge cable

Unknown. they seem to require both ends to use the same software, and generally runs on Windows-only machines. TBD.

Software setup

Static IP setup on the Linkstation

as per lb_worm's suggestion, on your Linkstation, change those 2 files:

1) set the /etc/network/interfaces to:


# Used by ifup(8) and ifdown(8). See the interfaces(5) manpage or 
# /usr/share/doc/ifupdown/examples for more information. 
auto lo 
iface lo inet loopback 

auto eth0 
iface eth0 inet static 
address 192.168.11.160 
netmask 255.255.255.0 
geteway 192.168.11.1 
network 192.168.11.0 

auto eth0:auto 
iface eth0:auto inet dhcp


2) Edit the dhcp config file /etc/dhcpc/config to:


# Config file for dhcpcd. 

case ${INTERFACE} in 
eth0) 

# Uncomment this to allow dhcpcd to set the DNS servers in /etc/resolv.conf 
# If you are using resolvconf then you can leave this commented out. 
SET_DNS='yes' 

# Uncomment this to allow dhcpcd to set the NIS domainname of the host to the 
# domainname option supplied by DHCP server. 
#SET_DOMAIN='yes' 

# Uncomment this to allow dhcpcd to set hostname of the host to the 
# hostname option supplied by DHCP server. 
#SET_HOSTNAME='yes' 

# Uncomment this to allow dhcpcd to set the NTP servers in /etc/ntp.conf 
#SET_NTP='yes' 

# Uncomment this to allow dhcpcd to set the YP servers in /etc/yp.conf 
#SET_YP='yes' 

# Add other options here, see man 8 dhcpcd-bin for details. 
OPTIONS='-d -t 30 interface eth0:auto' 
;; 

# Add other interfaces here 
*) 
;; 

esac


The -d option will generate some debug.

Static IP setup on the PC

Windows XP: Start->Control Panel->Network Connections. Right click on your network adapter(likely called "Local Area Connection" ->Properties
Lanproperties.JPG

Select "Internet Protocol (TCP/IP)
Tcpipproperties.JPG