Ubuntu 22.04.2 LTS에서 netplan 구성 실행 취소

Ubuntu 22.04.2 LTS에서 netplan 구성 실행 취소

나는 이것에 대해 heynnema의 가장 높은 투표 답변을 따랐습니다.Linux Ubuntu Server 20.04 LTS: '네트워크에 연결할 수 없음'netplan에 대한 질문:

  1. /etc/netplan/'01-network-manager-all.yml내용을 다음으로 변경했습니다 .
  network:
      version: 2
      renderer: networkd
      ethernets:
        enp4s0:
          addresses:
            - 192.168.1.200/24
          gateway4: 192.168.1.254
          nameservers:
            addresses:
              - 8.8.8.8
              - 8.8.4.4
  1. 다음 명령을 실행했습니다.
sudo netplan generate
    
sudo netplan apply
    
reboot # mandatory

이제 그 컴퓨터의 인터넷이 끊어졌습니다. 원본 '01-network-manager-all.yml' 파일의 복사본을 만들고 그에 대한 답변에 지정된 명령을 다시 실행했습니다.

sudo netplan generate

sudo netplan apply

reboot # mandatory

그러나 성공하지 못했습니다. 넷플랜 변경 사항을 어떻게 취소할 수 있나요?

편집하다:

IP 출력 :

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: wlp1s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether 5c:ba:ef:cd:c6:19 brd ff:ff:ff:ff:ff:ff
    inet 192.168.30.19/24 brd 192.168.30.255 scope global dynamic noprefixroute wlp1s0
       valid_lft 604268sec preferred_lft 604268sec
    inet6 fe80::44ae:37a2:66c5:b8ce/64 scope link noprefixroute 
       valid_lft forever preferred_lft forever
3: lxcbr0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default qlen 1000
    link/ether 00:16:3e:00:00:00 brd ff:ff:ff:ff:ff:ff
    inet 10.0.3.1/24 brd 10.0.3.255 scope global lxcbr0
       valid_lft forever preferred_lft forever
4: br-bd526d132fb7: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default 
    link/ether 02:42:24:07:b4:a3 brd ff:ff:ff:ff:ff:ff
    inet 172.18.0.1/16 brd 172.18.255.255 scope global br-bd526d132fb7
       valid_lft forever preferred_lft forever
    inet6 fe80::42:24ff:fe07:b4a3/64 scope link 
       valid_lft forever preferred_lft forever
5: docker0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default 
    link/ether 02:42:fd:ac:22:cc brd ff:ff:ff:ff:ff:ff
    inet 172.17.0.1/16 brd 172.17.255.255 scope global docker0
       valid_lft forever preferred_lft forever
7: vethc2e94a7@if6: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master br-bd526d132fb7 state UP group default 
    link/ether 1e:00:18:36:2a:c7 brd ff:ff:ff:ff:ff:ff link-netnsid 0
    inet6 fe80::1c00:18ff:fe36:2ac7/64 scope link 
       valid_lft forever preferred_lft forever

관련 정보