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 |
|---|---|
|
The Ethernet interface number (
|
|
Static IPv4 address for the interface. |
|
IPv4 netmask for the interface. |
|
Link speed setting, one of: |