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 -m1 100:200 -m2 101:201
system> ethtousb
ethtousb : On
===============
1: 100: 200
2: 101: 201
system>