LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 04-21-2008, 02:58 AM   #1
navin_karnam
Member
 
Registered: May 2007
Posts: 52

Rep: Reputation: 15
USB Networking Problem


Hi all,

I am trying communicate (telnet,ssh etc) between my host PC(RHEL4) and target (Pxa 255 running with linux) using USB cable.

1) I enabled the target as a USB slave, and assiged an ip.
2) The result of ifconfig in target

-------------------------------------------------------------------------
eth0 Link encap:Ethernet HWaddr 00:12:34:56:78:9A
inet addr:192.168.1.50 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:194 errors:0 dropped:0 overruns:0 frame:0
TX packets:146 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:16472 (16.0 Kb) TX bytes:13062 (12.7 Kb)
Base address:0x300

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: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)

usbf Link encap:Ethernet HWaddr 58:BF:FE:C3:E4:35
inet addr:192.168.1.63 Mask:255.255.255.0
UP RUNNING 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:100
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
-------------------------------------------------------------------------

3) Then i connected the USB cable between host and target.
4) Then i assigned an ip to usb device in host.
5) The result of ifconfig in host

-------------------------------------------------------------------------
eth0 Link encap:Ethernet HWaddr 00:16:17:20:30:8F
inet addr:192.168.1.52 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::216:17ff:fe20:308f/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:192574 errors:0 dropped:0 overruns:0 frame:0
TX packets:189063 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:32459994 (30.9 MiB) TX bytes:93460848 (89.1 MiB)
Interrupt:5 Base address:0x6c00

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

usb0 Link encap:Ethernet HWaddr C6:44:FB:83:FC:3C
inet addr:192.168.1.65 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::c444:fbff:fe83:fc3c/64 Scope:Link
UP BROADCAST RUNNING 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:546 (546.0 b)
-------------------------------------------------------------------------

Now i tried to ping the target using
ping 192.168.1.63
but it is says host is unreachable. But if connect the LAN cable, i am able to ping to both 192.168.1.50 and 192.168.1.63 of target.

Please guide me what is the way to proceed?

Regards,
Naveen.
 
Old 04-22-2008, 12:43 PM   #2
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
You don't say what sort of USB cable you are using.

Why are you trying to use USB when you have Ethernet?
 
Old 04-22-2008, 11:14 PM   #3
navin_karnam
Member
 
Registered: May 2007
Posts: 52

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by tredegar View Post
You don't say what sort of USB cable you are using.

Why are you trying to use USB when you have Ethernet?
Its working for me now.... I am using USB host to slave cable.
I was unable to ping because i was using different gateway for host and target.

Thanks for the reply
 
  


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
FC5 USB Networking problem kmccullor Linux - Wireless Networking 1 03-25-2006 01:36 PM
networking a usb printer dave37 Linux - Networking 9 02-25-2004 01:20 PM
Wireless Networking USB PlatinumRik Linux - Hardware 2 02-12-2003 10:41 PM
PC to PC Networking using USB jalil Linux - Networking 0 10-05-2002 09:48 AM
usb networking tiggerbones1 Linux - Networking 0 02-09-2002 10:12 AM

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

All times are GMT -5. The time now is 06:38 PM.

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