wido commented on issue #12210:
URL: https://github.com/apache/cloudstack/issues/12210#issuecomment-4728086955

   I wanted to make sure that cloud-init would handle this properly. On a 
Proxmox node I gave this a manual test and used this network config via 
ConfigDrive on a Ubuntu 26.04 server:
   
   <pre>
   root@cloud-init:/tmp/init# cat network-config 
   version: 1
   config:
       - type: physical
         name: eth0
         mac_address: 'bc:24:11:bf:52:70'
         subnets:
         - type: static
           address: '2.57.57.26'
           netmask: '255.255.255.255'
           gateway: '169.254.0.1'
         - type: static6
           address: '2a14:9b80::26/128'
           gateway: 'fe80::1'
       - type: nameserver
         address:
         - '2620:fe::fe'
         - '2620:fe::9'
         search:
         - 'ams02.cldin.net'
   root@cloud-init:/tmp/init# 
   </pre>
   
   This resulted in the correct netplan network:
   
   <pre>
   root@cloud-init:~# cat /etc/netplan/00-installer-config.yaml 
   # This is the network config written by 'subiquity'
   network:
     ethernets:
       eth0:
         addresses:
         - 2.57.57.26/32
         - 2a14:9b80::26/128
         match:
           macaddress: bc:24:11:bf:52:70
         nameservers:
           addresses:
           - 2620:fe::fe
           - 2620:fe::9
           search:
           - ams02.cldin.net
         routes:
         - on-link: true
           to: default
           via: 169.254.0.1
         - on-link: true
           to: default
           via: fe80::1
         set-name: eth0
     version: 2
   root@cloud-init:~# 
   </pre>
   
   The proper IPv4 and IPv6 routes were installed:
   
   <pre>
   root@cloud-init:~# ip -4 route show
   default via 169.254.0.1 dev eth0 proto static onlink 
   root@cloud-init:~# ip -6 route show
   2a14:9b80::26 dev eth0 proto kernel metric 256 pref medium
   fe80::/64 dev eth0 proto kernel metric 256 pref medium
   default via fe80::1 dev eth0 proto static metric 1024 onlink pref medium
   root@cloud-init:~# 
   </pre>
   
   This is still on my whishlist to develop should I be able to find the time 
for it.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to