Comment 15 for bug 1989686

Revision history for this message
Terje Røsten (terjeros) wrote : Re: cloud-init sets wrong netmask causing borken network config on Oracle Cloud

Default gateway is still missing:

$ cloud-init init
Cloud-init v. 22.3.4-0ubuntu1~22.04.1 running 'init' at Tue, 04 Oct 2022 10:43:43 +0000. Up 6162.65 seconds.
++++++++++++++++++++++++++++++++++++Net device info++++++++++++++++++++++++++++++++++++
+--------+------+------------------------+---------------+--------+-------------------+
| Device | Up | Address | Mask | Scope | Hw-Address |
+--------+------+------------------------+---------------+--------+-------------------+
| ens3 | True | 100.103.31.188 | 255.255.248.0 | global | 02:00:17:09:06:85 |
| ens3 | True | fe80::17ff:fe09:685/64 | . | link | 02:00:17:09:06:85 |
| lo | True | 127.0.0.1 | 255.0.0.0 | host | . |
| lo | True | ::1/128 | . | host | . |
+--------+------+------------------------+---------------+--------+-------------------+
+++++++++++++++++++++++++++Route IPv4 info++++++++++++++++++++++++++++
+-------+--------------+---------+---------------+-----------+-------+
| Route | Destination | Gateway | Genmask | Interface | Flags |
+-------+--------------+---------+---------------+-----------+-------+
| 0 | 100.103.24.0 | 0.0.0.0 | 255.255.248.0 | ens3 | U |
+-------+--------------+---------+---------------+-----------+-------+
+++++++++++++++++++Route IPv6 info+++++++++++++++++++
+-------+-------------+---------+-----------+-------+
| Route | Destination | Gateway | Interface | Flags |
+-------+-------------+---------+-----------+-------+
| 1 | fe80::/64 | :: | ens3 | U |
| 3 | local | :: | ens3 | U |
| 4 | multicast | :: | ens3 | U |
+-------+-------------+---------+-----------+-------+

root@u:~# ip r
100.103.24.0/21 dev ens3 proto kernel scope link src 100.103.31.188
root@u:~#