File tree Expand file tree Collapse file tree 1 file changed +7
-13
lines changed Expand file tree Collapse file tree 1 file changed +7
-13
lines changed Original file line number Diff line number Diff line change @@ -170,24 +170,18 @@ Swap: 0 0 0
170
170
171
171
Cấu hình để instance báo log ra console và đổi name Card mạng về eth* thay vì ens, eno
172
172
``` sh
173
- sed -i ' s|GRUB_CMDLINE_LINUX=""|GRUB_CMDLINE_LINUX="net.ifnames=0 biosdevname=0 console=tty1 console=ttyS0"|g' /etc/default/grub
173
+ sed -i ' s|GRUB_CMDLINE_LINUX=""|GRUB_CMDLINE_LINUX="netcfg/do_not_use_netplan=true net.ifnames=0 biosdevname=0 console=tty1 console=ttyS0"|g' /etc/default/grub
174
174
update-grub
175
175
```
176
176
177
- Cấu hình network sử dụng ifupdown thay vì netplan
178
-
179
- - Cài đặt service ifupdown
177
+ - Disable netplan && cài đặt ifupdown
180
178
``` sh
181
- apt-get install ifupdown -y
182
- ```
183
-
184
- - Disable netplan
185
- ``` sh
186
- cat << EOF > /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg
187
- network: {config: disabled}
188
- EOF
179
+ sudo apt-get --purge remove netplan.io
180
+ sudo rm -rf /usr/share/netplan
181
+ sudo rm -rf /etc/netplan
189
182
190
- rm -rf /etc/netplan50-cloud-init.yaml
183
+ sudo apt-get update
184
+ sudo apt-get install -y ifupdown
191
185
```
192
186
193
187
- Tạo file interface
You can’t perform that action at this time.
0 commit comments