diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2017-11-23 19:15:31 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2017-12-14 14:30:19 +0100 |
commit | dfe2d162f3fc693bb95d3b67c674f2f264dc47e8 (patch) | |
tree | 557be9b6da351b00310ded7c10041897151cfeca /defaultenv | |
parent | e612a5ca7aa8207efb119105a594e81a011ec7ce (diff) | |
download | barebox-dfe2d162f3fc693bb95d3b67c674f2f264dc47e8.tar.gz barebox-dfe2d162f3fc693bb95d3b67c674f2f264dc47e8.tar.xz |
net: Provide new way to configure network devices
This provides a new way to configure network interfaces based
on nvvars. A network interface can now be configured with variables
in the nv.dev.<ethname>.* namespace. There is a new network device
parameter "mode" which specifies the mode used to obtain IP settings.
The mode can be "dhcp", "static" or "disabled":
nv.dev.eth0.mode=dhcp
(ipaddr, netmask are ignored in this setting)
nv.dev.eth0.mode=static
nv.dev.eth0.ipaddr=192.168.0.17
nv.dev.eth0.netmask=255.255.0.0
nv.dev.eth0.mode=disabled
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'defaultenv')
0 files changed, 0 insertions, 0 deletions