netcfg

netcfg
netcfg [iface=0]
netcfg iface=0 [addr=0.0.0.0 netmask=0.0.0.0] [linkspeed=auto]

Configures an IPv4 network interface, one at a time.

Both addr and netmask must be specified at the same time to avoid bad network configuration. Either addr and netmask together or linkspeed alone can be configured separately or all at the same time for the specified interface.

Option Description

iface

The Ethernet interface number (0 or 1).

  • If iface is not specified on the command line, the current setting of both interfaces will be displayed.

  • If iface is specified without arguments, then the current setting of that interface will be displayed.

addr

Static IPv4 address for the interface.
Default: 0.0.0.0.

netmask

IPv4 netmask for the interface.
Default: 0.0.0.0.

linkspeed

Link speed setting, one of: auto, 10BaseT, 10BaseT-FDX, `100BaseTX and 100BaseTX-FDX.
auto includes negotation of speeds up to and including 1Gb.
Default: `auto
.