Skip to menu

小朴

系统

centos centos利用编辑rc.local加ip

xiaopiao 2023.07.06 13:39 查看 : 511

是直接写入
vi /etc/rc.local
ifconfig enp2s0:1 8.8.8.8/29 up
ifconfig enp2s0:2 8.8.8.9/29 up

/ 31 192.168.1.90/31 2
/ 30 192.168.1.92/30 4
/ 29 192.168.1.200/29 8
/ 28 192.168.1.16/28 16
/ 27 192.168.1.64/27 32
/ 26 192.168.1.192/26 64
/ 25 192.168.1.128/25 128
/ 24 192.168.1.0/24 256
向上