Skip to content

unknown delete ? #11

@J1n-CH1na

Description

@J1n-CH1na
  1. I add ens33 successfully
  2. I add ens34 successfully
  3. But the configuration of ens34 is deleted when modify ens33 ~

USEFUL AWK ~~~

root@ubuntu:~/Desktop/Network-Interfaces-Script-master# awk -f changeInterface.awk /etc/network/interfaces device=ens33 action=add mode=static address=192.168.239.149 netmask=255.255.255.0 gateway=192.168.239.254
# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback

auto ens33
iface ens33 inet static
    address 192.168.239.149
    netmask 255.255.255.0
    gateway 192.168.239.254

root@ubuntu:~/Desktop/Network-Interfaces-Script-master# awk -f changeInterface.awk /etc/network/interfaces device=ens34 action=add mode=static address=192.168.1.1 netmask=255.255.255.0
# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback

auto ens33
iface ens33 inet static
	address 192.168.239.149
	netmask 255.255.255.0
	gateway 192.168.239.254
auto ens34
iface ens34 inet static
    netmask 255.255.255.0
    address 192.168.1.1

root@ubuntu:~/Desktop/Network-Interfaces-Script-master# awk -f changeInterface.awk /etc/network/interfaces device=ens33 action=add mode=static address=192.168.239.149 netmask=255.255.255.0 gateway=192.168.239.254
# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback

auto ens33
iface ens33 inet static
    address 192.168.239.149
    netmask 255.255.255.0
    gateway 192.168.239.254

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions