2019-10-02

UBUNTU18-NETPLAN

#/etc/netplan/50-cloud-init.yaml
#LastUpdate: #08:38 2019.10.02
#################################
#_________[GLOBAL]:BEGIN
network:
    version: 2
    ethernets:
#_________[GLOBAL]:END

#_________[WAN]:BEGIN
        ens192:
            addresses: [139.99.71.101/24]
            gateway4: 139.99.71.254
            nameservers:
                addresses: [1.1.1.1,8.8.8.8]
                search: [google.com]
            dhcp4: no
#_________[WAN]:BEGIN

#_________[LAN]:BEGIN
        ens160:
            addresses: [172.16.26.30/24]
            #gateway4:
            nameservers:
                addresses: [1.1.1.1,8.8.8.8]
                search: [google.com]
            dhcp4: no
#_________[LAN]:END
#THE-END 
#sudo netplan --debug apply
#netplan apply


#or:

sudo netplan --debug apply
** (generate:6466): DEBUG: 08:46:16.527: Processing input file /etc/netplan/50-cloud-init.yaml..
** (generate:6466): DEBUG: 08:46:16.527: starting new processing pass
** (generate:6466): DEBUG: 08:46:16.527: ens192: setting default backend to 1
** (generate:6466): DEBUG: 08:46:16.527: Configuration is valid
** (generate:6466): DEBUG: 08:46:16.527: ens160: setting default backend to 1
** (generate:6466): DEBUG: 08:46:16.527: Configuration is valid
** (generate:6466): DEBUG: 08:46:16.527: Generating output files..
** (generate:6466): DEBUG: 08:46:16.528: NetworkManager: definition ens160 is not for us (backend 1)
** (generate:6466): DEBUG: 08:46:16.528: NetworkManager: definition ens192 is not for us (backend 1)
DEBUG:netplan generated networkd configuration changed, restarting networkd
DEBUG:no netplan generated NM configuration exists
DEBUG:ens160 not found in {}
DEBUG:ens192 not found in {'ens160': {'addresses': ['172.16.26.30/24'], 'nameservers': {'addresses': ['1.1.1.1', '8.8.8.8'], 'search': ['google.com']}, 'dhcp4': False}}
DEBUG:Merged config:
network:
  bonds: {}
  bridges: {}
  ethernets:
    ens160:
      addresses:
      - 172.16.26.30/24
      dhcp4: false
      nameservers:
        addresses:
        - 1.1.1.1
        - 8.8.8.8
        search:
        - google.com
    ens192:
      addresses:
      - 139.99.71.101/24
      dhcp4: false
      gateway4: 139.99.71.254
      nameservers:
        addresses:
        - 1.1.1.1
        - 8.8.8.8
        search:
        - google.com
  vlans: {}
  wifis: {}

DEBUG:Skipping non-physical interface: lo
DEBUG:device ens160 operstate is up, not changing
DEBUG:device ens192 operstate is up, not changing
DEBUG:{}
DEBUG:netplan triggering .link rules for lo
DEBUG:netplan triggering .link rules for ens160
DEBUG:netplan triggering .link rules for ens192

No comments:

Post a Comment