Static, no vlan example:
xe-reset-networking --device=eth0 --mode=static --novlan --ip=10.10.10.10.10 --netmask=255.255.255.0 --gateway=10.10.10.1 --dns=10.10.10.1
dhcp with vlan example:
xe-reset-network --device=eth0 --mode=dhcp --vlan=100
Script options:
Options:
-h, --help show this help message and exit
-m ADDRESS, --master=ADDRESS
Master's address
--device=DEVICE Device name of new management interface
--mode=MODE IP configuration mode for new management interface:
"none", "dhcp" or "static" (default is dhcp)
--mode-v6=MODE_V6 IPv6 configuration mode for new management interface:
"none", "dhcp", "autoconf" or "static" (default is
none)
--novlan no vlan is used for new management interface
--vlan=VLAN vlanID for new management interface to be on vlan
network
--ip=IP IP address for new management interface
--ipv6=IPV6 IPv6 address (CIDR format) for new management
interface
--netmask=NETMASK Netmask for new management interface
--gateway=GATEWAY Gateway for new management interface
--gateway-v6=GATEWAY_V6
IPv6 Gateway for new management interface
--dns=DNS DNS server for new management interface