LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   USB Networking Problem (https://www.linuxquestions.org/questions/linux-networking-3/usb-networking-problem-636728/)

navin_karnam 04-21-2008 02:58 AM

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.

tredegar 04-22-2008 12:43 PM

You don't say what sort of USB cable you are using.

Why are you trying to use USB when you have Ethernet?

navin_karnam 04-22-2008 11:14 PM

Quote:

Originally Posted by tredegar (Post 3129303)
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


All times are GMT -5. The time now is 05:52 PM.