Skip to main content

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]
Table 1. ethtousb command
OptionDescriptionValues
-enEthernet-over-USB state.enabled, disabled
Note
Enable Ethernet over USB interface via usbeth to make port mapping effective.
-m[x] port1:port2Configure port mapping for index x.

Where:

  • The port index number, x, is specified as an integer from 1 to 10 in the command option.
  • port1 of the port pair is the External Ethernet port number.
  • port2 of the port pair is the Ethernet-over-USB port number.
-rm map_indexRemove 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 ethtousb command with no options.
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