dd
dd copied to clipboard
centos7安装报错
Malformed IP address
The value you provided is not a usable IPv4 or IPv6 address. Please │
│ consult your network administrator and try again.
这个问题似乎是自动安装脚本里获取ip的代码错误引起的
MAINIP=$(ip route get 1 | awk '{print $NF;exit}')
因此需要重新指定ip地址,网关,子网掩码。我使用以下命令安装了centos7,ssh密码是Pwd@CentOS
wget -N --no-check-certificate https://raw.githubusercontent.com/veip007/dd/master/InstallNET.sh && chmod +x InstallNET.sh && ./InstallNET.sh --ip-addr ip地址 --ip-gate 网关 --ip-mask 子网掩码 -dd 'https://api.moetools.net/get/centos-7-image'