Welcome to Linux Knowledge Base and Tutorial
"The place where you learn linux"

 Create an AccountHome | Submit News | Your Account  

Tutorial Menu
Linux Tutorial Home
Table of Contents

· Introduction to Operating Systems
· Linux Basics
· Working with the System
· Shells and Utilities
· Editing Files
· Basic Administration
· The Operating System
· The X Windowing System
· The Computer Itself
· Networking
· System Monitoring
· Solving Problems
· Security
· Installing and Upgrading
· Linux and Windows

Glossary
MoreInfo
Man Pages
Linux Topics
Test Your Knowledge

Site Menu
Site Map
FAQ
Copyright Info
Terms of Use
Privacy Info
Disclaimer
WorkBoard
Thanks
Donations
Advertising
Masthead / Impressum
Your Account

Communication
Feedback
Forums
Private Messages
Surveys

Features
HOWTOs
News Archive
Submit News
Topics
User Articles
Web Links

Google
Google


The Web
linux-tutorial.info

Who's Online
There are currently, 179 guest(s) and 0 member(s) that are online.

You are an Anonymous user. You can register for free by clicking here

  
Linux Knowledge Base and Tutorial: Forums



Linux Tutorial :: View topic - Connecting 2 Linux boxes with GeneLink USB Host to Host cabl
 Forum FAQForum FAQ   SearchSearch   UsergroupsUsergroups   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Connecting 2 Linux boxes with GeneLink USB Host to Host cabl

 
Post new topic   Reply to topic    Linux Tutorial Forum Index -> Networking
View previous topic :: View next topic  
Author Message
bluejon67
Newbie


Joined: Mar 07, 2006
Posts: 3

PostPosted: Tue Mar 07, 2006 8:39 am    Post subject: Connecting 2 Linux boxes with GeneLink USB Host to Host cabl Reply with quote

Hi everyone, Im wondering if anyone can help me?

I would like to know if this is feasable/do-able:

I have recently aquired an older pc (Pentium III Coppermine 640MB RAM one 2GB and one 3GB HD), and would like to set it up as a firewall box to access the net, and allow my main pc access too.

I have a GeneLink Host to Host cable, which, down to my googling efforts, I think should run off the gl620a module, in conjunction with usbnet.

At the moment I connect with my main pc via a Speedtouch USB ADSL modem, and this works fine with:

usbcore cdc_acm usbnet speedtch usb_atm uhci_hcd firmware_class.

I think I have everything I need to set this up, but can find no info about how to do it. Specifically, the output from cat /proc/bus/usb/devices on my main pc, shows:

# cat /proc/bus/usb/devices

T: Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 2
B: Alloc= 0/900 us ( 0%), #Int= 0, #Iso= 0
D: Ver= 1.10 Cls=09(hub ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=0000 ProdID=0000 Rev= 2.06
S: Manufacturer=Linux 2.6.12-12mdk uhci_hcd
S: Product=UHCI Host Controller
S: SerialNumber=0000:00:07.3
C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr= 0mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 2 Ivl=255ms

T: Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 2
B: Alloc= 23/900 us ( 3%), #Int= 1, #Iso= 0
D: Ver= 1.10 Cls=09(hub ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=0000 ProdID=0000 Rev= 2.06
S: Manufacturer=Linux 2.6.12-12mdk uhci_hcd
S: Product=UHCI Host Controller
S: SerialNumber=0000:00:07.2
C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr= 0mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 2 Ivl=255ms

T: Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 2 Spd=12 MxCh= 0
D: Ver= 1.10 Cls=ff(vend.) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=06b9 ProdID=4061 Rev= 4.00
S: Manufacturer=THOMSON
S: Product=Speed Touch 330
S: SerialNumber=000E5083F9D6
C:* #Ifs= 3 Cfg#= 1 Atr=80 MxPwr=500mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=ff(vend.) Sub=00 Prot=00 Driver=speedtch
E: Ad=81(I) Atr=03(Int.) MxPS= 16 Ivl=50ms
I: If#= 1 Alt= 0 #EPs= 0 Cls=ff(vend.) Sub=00 Prot=00 Driver=speedtch
I: If#= 1 Alt= 1 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=speedtch
E: Ad=06(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms
E: Ad=07(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms
E: Ad=87(I) Atr=02(Bulk) MxPS= 64 Ivl=0ms
I: If#= 1 Alt= 2 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=speedtch
E: Ad=06(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms
E: Ad=07(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms
E: Ad=87(I) Atr=01(Isoc) MxPS= 640 Ivl=1ms
I: If#= 1 Alt= 3 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=speedtch
E: Ad=06(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms
E: Ad=07(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms
E: Ad=87(I) Atr=01(Isoc) MxPS= 960 Ivl=1ms
I: If#= 2 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=00 Prot=00 Driver=speedtch
E: Ad=05(O) Atr=02(Bulk) MxPS= 8 Ivl=0ms
E: Ad=85(I) Atr=02(Bulk) MxPS= 8 Ivl=0ms

***************************************************************************************

T: Bus=01 Lev=01 Prnt=01 Port=01 Cnt=02 Dev#= 3 Spd=12 MxCh= 0
D: Ver= 1.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=05e3 ProdID=0501 Rev= 3.83
S: Product=USB Host To Host Bridge
C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr= 96mA
I: If#= 0 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=(none)
E: Ad=81(I) Atr=02(Bulk) MxPS= 64 Ivl=0ms
E: Ad=02(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms
E: Ad=83(I) Atr=03(Int.) MxPS= 8 Ivl=16ms

****************************************************************************************

So the system 'knows' about the host to host cable, but I cant figure out how to actually use it.

I read about brctl tools and sysfs, used to set up a bridge, which I think is where I need to be looking, but any help would be very much appreciated on any level.

Thanks in advance, and I will look back in later today.
Back to top
View user's profile Send private message Send e-mail MSN Messenger
koen
Beginner


Joined: Sep 12, 2005
Posts: 224
Location: Belgium

PostPosted: Tue Mar 07, 2006 8:02 pm    Post subject: Reply with quote

I never used usbnet myself, but from what I read, what you want to do shouldn't be to difficult.
Based on what I know about networking, i would do the following :

TCP/IP networks (such as the internet) can be seen as 4 layers on top of each other :
4. application layer : http, ftp, smtp, dns, dhcp, ...
3. transport layer : tcp, udp
2. network layer : IP
1. link layer : all sorts of devices, device drivers, low-level protocols (ethernet, re232), network interface cards, modems, combined in such a way that they form a link that can be used to carry IP packets.

So, I would focus on : how do I get IP to run over this usb host-to-host cable, i.e. how do i establish an IP-capable link over usb.

Apparently ([url]http://www.linux-usb.org/usbnet/[/url]), once you got usbnet working - which you seem to have, you get devices such as usb0 that you can configure with an IP address with 'ifconfig', identical to configuring an (ethernet) network card (usually named eth0, ...). From there, it's just basic TCP/IP configuration : it doesn't really matter whether your network access (the link) is established over ethernet, usb, serial line, ... , carrier pigeon, ... etc.

Bridging may also be a sollution but that i'm not familiar with.
Back to top
View user's profile Send private message
bluejon67
Newbie


Joined: Mar 07, 2006
Posts: 3

PostPosted: Tue Mar 07, 2006 10:54 pm    Post subject: thanx 4 the pointers..... Reply with quote

Hi koen, thanks for the tips.
Networking is totally new to me, but i think i may be getting somewhere. I used

brctl addbr usb0

to set up the first part of the bridge, and then

# ifconfig -a
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:30 errors:0 dropped:0 overruns:0 frame:0
TX packets:30 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:2020 (1.9 KiB) TX bytes:2020 (1.9 KiB)

ppp0 Link encap:Point-to-Point Protocol
inet addr:xxx.xxx.xxx.xxx P-t-P:xxx.xx.xxx.xxx Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:81411 errors:0 dropped:0 overruns:0 frame:0
TX packets:100041 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:20350496 (19.4 MiB) TX bytes:94389068 (90.0 MiB)

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)

usb0 Link encap:Ethernet HWaddr 00:00:00:00:00:00
BROADCAST MULTICAST MTU:1500 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)

After looking again anew at that link u left, a

brctl stp usb0 on

and then

ifconfig usb0 10.0.2.5

gave me with ifconfig -a

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:36 errors:0 dropped:0 overruns:0 frame:0
TX packets:36 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:2428 (2.3 KiB) TX bytes:2428 (2.3 KiB)

ppp0 Link encap:Point-to-Point Protocol
inet addr:xxx.xxx.xxx.xxx P-t-P:xxx.xxx.xxx.xxx Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:102654 errors:0 dropped:0 overruns:0 frame:0
TX packets:123841 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:30393959 (28.9 MiB) TX bytes:116695633 (111.2 MiB)

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)

usb0 Link encap:Ethernet HWaddr 00:00:00:00:00:00
inet addr:10.0.2.5 Bcast:10.255.255.255 Mask:255.0.0.0
inet6 addr: fe80::200:ff:fe00:0/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:67 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:7364 (7.1 KiB)

However, there still seems to be a challenge left (it was once drilled into me that there is no such thing as a problem, just challenges to overcome lol.) Doing

# ethtool usb0
Settings for usb0:
No data available

# ethtool -i usb0
Cannot get driver information: Operation not supported

I have missed something somewhere. More tomoz, its late. Thanks for the help so far.

BTW, the cable is good. I put WinXP Pro on my donated machine, and booted the same on my main pc. They can talk to each other. I also booted up my donated machine, after I had done this setup, and the Windoze GeneLink software reached 'yellow' in its connection attempts. Red being nothing, yellow being nearly connected and green being data transfer. Im just trying to write down the steps Ive taken so that it may help others when we get it working, or so that there is an online reference for when I eventually hose my machine by attempting something new, and have to re-install the lot lmao

Cya l8r
Back to top
View user's profile Send private message Send e-mail MSN Messenger
koen
Beginner


Joined: Sep 12, 2005
Posts: 224
Location: Belgium

PostPosted: Wed Mar 08, 2006 11:02 pm    Post subject: Reply with quote

[quote]# ethtool usb0
Settings for usb0:
No data available
[/quote]
probably meaningless : i assume ethtool expectes an ethernet device, not a usb device. If I'm wrong, this may indicate that you did not set up usb module/usbnet correctly, but i doubt that.

[quote]usb0 Link encap:Ethernet HWaddr 00:00:00:00:00:00
inet addr:10.0.2.5 Bcast:10.255.255.255 [b]Mask:255.0.0.0[/b]
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:67 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:0 (0.0 b) TX bytes:7364 (7.1 KiB)
[/quote]
looks like you can send IP packets (TX) but don't receive. could be that the subnet mask is wrong (i.e. doesn't match the ifconfig of the machine you want to talk to)
try [code:1]ping 10.0.2.5[/code:1] to see if usb0 can really handle IP

Also: we're talking about 2 machines : your future firewall, and your main pc, so both machines should be configured for TCP/IP over that usb host to host cable, and have correct ifconfig (ip addresses, subnet mask, ...)
Look in to that as well.

You also already have a ppp link ?
[quote]ppp0 Link encap:Point-to-Point Protocol
inet addr:xxx.xxx.xxx.xxx P-t-P:xxx.xx.xxx.xxx Mask:255.255.255.255
[/quote]
did you replace the ipadresses with x's or is this the real output ? Do you know what this is (another modem connected to your computer ?)
could be that this is in fact the link we're looking for, and then we should concentrate on the ppp0 device i.s.o. usb0
(point-to-point is just another 'link' protocol, on top of which you can run IP).

not there yet, are we ?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Linux Tutorial Forum Index -> Networking All times are GMT
Page 1 of 1

 

Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Powered by phpBB © 2001-2007 phpBB Group
  
Show your Support for the Linux Tutorial

Purchase one of the products from our new online shop. For each product you purchase, the Linux Tutorial gets a portion of the proceeds to help keep us going.


Login
Nickname

Password

Security Code
Security Code
Type Security Code


Don't have an account yet? You can create one. As a registered user you have some advantages like theme manager, comments configuration and post comments with your name.

Help if you can!


Amazon Wish List

Did You Know?
You can help in many different ways.


Friends



Tell a Friend About Us

Bookmark and Share



Web site powered by PHP-Nuke

Is this information useful? At the very least you can help by spreading the word to your favorite newsgroups, mailing lists and forums.
All logos and trademarks in this site are property of their respective owner. The comments are property of their posters. Articles are the property of their respective owners. Unless otherwise stated in the body of the article, article content (C) 1994-2013 by James Mohr. All rights reserved. The stylized page/paper, as well as the terms "The Linux Tutorial", "The Linux Server Tutorial", "The Linux Knowledge Base and Tutorial" and "The place where you learn Linux" are service marks of James Mohr. All rights reserved.
The Linux Knowledge Base and Tutorial may contain links to sites on the Internet, which are owned and operated by third parties. The Linux Tutorial is not responsible for the content of any such third-party site. By viewing/utilizing this web site, you have agreed to our disclaimer, terms of use and privacy policy. Use of automated download software ("harvesters") such as wget, httrack, etc. causes the site to quickly exceed its bandwidth limitation and are therefore expressly prohibited. For more details on this, take a look here

PHP-Nuke Copyright © 2004 by Francisco Burzi. This is free software, and you may redistribute it under the GPL. PHP-Nuke comes with absolutely no warranty, for details, see the license.
Page Generation: 0.05 Seconds