Skip to content

Commit 19b7453

Browse files
committed
Ubuntu18 netplan disable
1 parent d7676f6 commit 19b7453

File tree

1 file changed

+7
-13
lines changed

1 file changed

+7
-13
lines changed

docs/Ubuntu2004.md

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -170,24 +170,18 @@ Swap: 0 0 0
170170

171171
Cấu hình để instance báo log ra console và đổi name Card mạng về eth* thay vì ens, eno
172172
```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
174174
update-grub
175175
```
176176

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
180178
```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
189182

190-
rm -rf /etc/netplan50-cloud-init.yaml
183+
sudo apt-get update
184+
sudo apt-get install -y ifupdown
191185
```
192186

193187
- Tạo file interface

0 commit comments

Comments
 (0)