init
Использование
net init [-h] [--to_file] [-m <mode>] [-t <timeout>] [-u <uplink>] [-i <ip-address>] [-n <netmask>] [-e <ethernet address>] [-g <gateway address>] [-d [<dns servers> ...]]
Описание
Ручная инициализация сети узла. Внимание! Команда приводит к полному сбросу сетевой подсистемы узла, в том числе удалению виртуальных сетей.
Аргументы
--to_file
- Redirect output to file (/tmp/cli-stdout.txt).mode
- Mode for management interface (static,dhcp). (Default: static)timeout
- Timeout before reboot when config was changed, in seconds. (Default: 3 seconds)uplink
- Physical interface for uplink connection.ip-address
- The ip-address for management interface.netmask
- The network mask for management interface. (Default: 255.255.255.0)ethernet address
- The hardware address for management interface.gateway address
- The ip-address of default gateway.dns servers
- ...] The DNS servers.
Примеры использования
net init -m dhcp -u ens4
net init -a init -m static -u ens4