相关说明
- Moeclub的脚本,甲骨文DD不需要填写
IP
子网掩码
网关
这些参数。- 但是AWS、AZ则需要填写这三个参数,不然DD好系统后,机器会失联。
IP
子网掩码
网关
ssh输入 ip addr
,网卡一般是eth0,一定要填写内网地址。AZ一般是10.0.0.4,
提示
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000 link/ether 60:45:bd:68:fb:64 brd ff:ff:ff:ff:ff:ff inet 10.0.0.4/24 brd 10.0.0.255 scope global eth0 valid_lft forever preferred_lft forever inet6 fe80::6245:bdff:fe68:fb64/64 scope link valid_lft forever preferred_lft forever
inet后边的网址10.0.0.4便是内网IP
ifconfig
,如果报错,那么输入apt install -y net-tools
ifconfig
提示
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 10.0.0.4 netmask 255.255.255.0 broadcast 10.0.0.255 inet6 fe80::6245:bdff:fe68:fb64 prefixlen 64 scopeid 0x20<link> ether 60:45:bd:68:fb:64 txqueuelen 1000 (Ethernet) RX packets 34497 bytes 27621991 (26.3 MiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 34291 bytes 8615676 (8.2 MiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536 inet 127.0.0.1 netmask 255.0.0.0 inet6 ::1 prefixlen 128 scopeid 0x10<host> loop txqueuelen 1000 (Local Loopback) RX packets 4 bytes 264 (264.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 4 bytes 264 (264.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
netmask 后边的255.255.255.0便是子网掩码。
route -n
提示
root@tokyo:~# route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 0.0.0.0 10.0.0.1 0.0.0.0 UG 0 0 0 eth0 10.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 168.63.129.16 10.0.0.1 255.255.255.255 UGH 0 0 0 eth0 169.254.169.254 10.0.0.1 255.255.255.255 UGH 0 0 0 eth0
第一行第二列的10.0.0.1便是网关地址
wget --no-check-certificate -qO InstallNET.sh 'https://moeclub.org/attachment/LinuxShell/InstallNET.sh' && chmod a+x InstallNET.sh && bash InstallNET.sh -d 11 -v 64 -a -p "xx" --ip-addr 10.0.0.4 --ip-gate 10.0.0.1 --ip-mask 255.255.240.0
代码里面XX的参数根据自己的自行更换
提示
ip-addr=IP Address/IP地址
ip-gate=Gateway/网关
ip-mask=Netmask/子网掩码
-p=密码
本文作者:我本无罪
本文链接:
版权声明:本博客所有文章除特别声明外,均采用 BY-NC-SA 许可协议。转载请注明出处!