Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

centos7安装报错 #9

Open
sjkhsl opened this issue Feb 5, 2022 · 1 comment
Open

centos7安装报错 #9

sjkhsl opened this issue Feb 5, 2022 · 1 comment

Comments

@sjkhsl
Copy link

sjkhsl commented Feb 5, 2022

Malformed IP address
The value you provided is not a usable IPv4 or IPv6 address. Please │
│ consult your network administrator and try again.

@1723389557
Copy link

这个问题似乎是自动安装脚本里获取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'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants