tech:network:cml:2.x:config-templates:ubuntu:focal:focal

CML-P 2.x Configuration Templates: Ubuntu 20.04 LTS (Focal)

Static IP Configuration

#cloud-config
password: cisco
chpasswd: { expire: False }
hostname: ubuntu-0
ssh_pwauth: True
ssh_authorized_keys:
   - ecdsa-sha2-nistp384 AAAAE2VjZHNhLXNoYTItbmlzdHAzODQAAAAIbmlzdHAzODQAAABhBIbn2VyO9Mby6BwkijQmGfH8O2+Uqewn0/oIOXOxMNgCZiztR3v2o5n1l9ET1GuN7iVMe9whoUiNuZMUVEv0INb+A6Yd0M/37tlWlC+qbIjjqL6UzJAqRISdGP1oVmnV2g== wnoguchi@lasthope.pg1x.net
packages:
   - curl
   - ftp
   - iperf
   - iperf3
   - netcat-openbsd
   - bind9-utils
   - fping
write_files:
- path: /etc/netplan/51-cloud-init_static.yaml
  permissions: '0644'
  content: |
     network:
        version: 2
        ethernets:
           ens2:
              match:
                 name: ens2
              addresses:
                 - 172.16.1.200/24
              gateway4: 172.16.1.1
              nameservers:
                 addresses:
                    - 8.8.8.8
                    - 8.8.4.4
                    - 1.1.1.1
runcmd:
   - [ sudo, netplan, generate ]
   - [ sudo, netplan, apply ]
tech/network/cml/2.x/config-templates/ubuntu/focal/focal.txt · Last modified: 2021/03/31 15:02 by wnoguchi