CLI Command Reference
ethercfg
Makito
X User’s Guide, v2.2, Issue 02
282
ethercfg
S
YNOPSIS
ethercfg [-a on|off] [-s 10|100|1000] [-d half|full] [-c bandwidth] [-w yes| no]
D
ESCRIPTION
The
ethercfg
command is used to view, manually control, and save the Ethernet configu-
ration parameters.
When the Makito
X
boots up, it automatically initializes and configures the Ethernet
interface to match the settings on the Ethernet switch to which it is connecting. However,
you may need to manually force settings such as the Ethernet interface line rate and duplex
mode.
•
You can change the Ethernet interface line rate while autonegotiation is enabled.
•
However, in order to change the duplex mode, you must first disable autonegotiation.
If no options are specified, the system displays the current settings, as shown in the
following example.
O
PTIONS
admin@fugu2:~$ ethercfg
Speed
: 1000mbps
Duplex
: Full
Auto-Negociation
: On
Advertised Mode
: All
Link Detected
: Yes
Ceiling
: 100000kbps
-a
--autoneg
Enables or disables autonegotiation.
-s
--speed
If autonegotiation is disabled, sets the speed.
If autonegotiation is enabled, this is the advertised
supported speed which will be available for the peer
Ethernet switch to use.
-d
--duplex
If autonegotiation is disabled, sets the duplex mode.
If autonegotiation is enabled, this will be the advertised
duplex mode.
-c
--ceiling
Puts a “ceiling” (in kbps or Mbps) on the bandwidth available
to the Ethernet port.
-w
--write
Skips the save settings prompt.