Re: convert between ethernet and usb
rlharris@oplink.net a écrit :
> On Sun, November 8, 2015 6:26 am, Pascal Hambourg wrote:
>> What does "ifconfig -a" display ?
>
> eth0: flags=4098<BROADCAST,MULTICAST> mtu 1500
> ether 00:a0:c6:00:00:00
Looks like the interface we're looking for, although the MAC address is
different from what you read on the device screen (08:BD:43:34:15:9A).
Now you can try to set the interface up, run a DHCP client on it
(dhclient, pump, dhcpcd, udhcpc...) and check what happens.
> lan-1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
> inet 192.168.1.1 netmask 255.255.255.0 broadcast 0.0.0.0
Note : according to what you read on the device screen, it uses an IP
address in the same range so you may need to set a different subnet on
the LAN interface.
>> What are the new messages in the kernel log after plugging the device ?
>
> [ 0.000000] usb2-1: new full-speed USB device number 4 using ohci_hcd
> [ 0.000000] rndis_host 2-1:1.0: eth0: register 'rndis_host' at
> usb-0000:00:0.3-1, RNDIS device, 00:a0:c6:00:00:00
>
>> According to <http://forums.whirlpool.net.au/archive/2176502>, the
>> device should work with the "rndis_host" kernel module.
Confirmed by the kernel log.
>> You can print the module alias of the device with :
>>
>> find /sys -name "modalias" -execdir grep -i "v0846p68e1" '{}' \;
>
> usb:v0846p68E1dFFFFdc02dsc00dp00icE0isc01ip03
> usb:v0846p68E1dFFFFdc02dsc00dp00ic0Aisc00ip00
>
>> and check which module supports it with :
>>
>> modprobe -R <alias>
>
> modprobe gives no output
Really ? Even though the rndis_host module was automatically loaded ?
On my box it returns "rndis_host" for the first alias returned by the
previous command :
modprobe -R usb:v0846p68E1dFFFFdc02dsc00dp00icE0isc01ip03
rndis_host
Reply to: