# Managed by pxe_server_setup.yml (vars pxe_nic_mac, corp_nic_mac, # pxe_nic_name, corp_nic_name, pxe_server_ip, pxe_subnet). Local edits are # replaced on the next playbook run; the previous file is kept under # /var/backups/netplan-/. # # Two NICs, each matched by MAC and given a stable name: # pxe-lan imaging LAN, static, no gateway, no DNS. The ONLY NIC that # serves DHCP/TFTP/HTTP boot/SMB. # ge-corp GE corporate network, DHCP client (SSH + webapp 9009, updates). network: version: 2 renderer: networkd ethernets: pxe-lan: match: macaddress: "{{ pxe_nic_mac | lower }}" set-name: {{ pxe_nic_name }} dhcp4: false dhcp6: false addresses: - {{ pxe_server_ip }}/{{ pxe_prefix }} ge-corp: match: macaddress: "{{ corp_nic_mac | lower }}" set-name: {{ corp_nic_name }} dhcp4: true dhcp4-overrides: route-metric: {{ corp_route_metric }}