ethtousb command
Use the ethtousb command to display and configure Ethernet to Ethernet-over-USB port mapping.
The command allows you to map an external Ethernet port number to a different port number for Ethernet-over-USB.
Syntax:
ethtousb [-options]
Option | Description | Values |
---|---|---|
-en | Ethernet-over-USB state. | enabled, disabled Note Enable Ethernet over USB interface via |
-m[x] port1:port2 | Configure port mapping for index x. | Where:
|
-rm map_index | Remove port mapping for specified index. | The port index number, map_index, is specified as an integer from 1 to 10 in the command option. Note Port map indexes are displayed using the |
Example:
system> ethtousb -en enabled
ok
system> ethtousb -m10 2001:2002
ok
system> ethtousb
ethtousb : On
===============
1: 0: 0
2: 0: 0
3: 0: 0
4: 0: 0
5: 0: 0
6: 0: 0
7: 0: 0
8: 0: 0
9: 0: 0
10: 2001: 2002
Give documentation feedback