Hi again!
Testing new image:
https://cloud-images.ubuntu.com/kinetic/20220925/kinetic-server-cloudimg-amd64.img
with cloud-init 22.3.3-0ubuntu1~22.10.1.
Now is netmask correct, however default route is still not set:
$ ip a show ens3
2: ens3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 9000 qdisc pfifo_fast state UP group default qlen 1000 link/ether 02:00:17:0c:8e:c1 brd ff:ff:ff:ff:ff:ff altname enp0s3 inet 100.103.24.186/21 brd 100.103.31.255 scope global ens3 valid_lft forever preferred_lft forever inet6 fe80::17ff:fe0c:8ec1/64 scope link valid_lft forever preferred_lft forever
$ ip r 100.103.24.0/21 dev ens3 proto kernel scope link src 100.103.24.186
From logs:
19.896466] cloud-init[581]: Cloud-init v. 22.3.3-0ubuntu1~22.10.1 running 'init' at Tue, 27 Sep 2022 10:16:42 +0000. Up 19.87 seconds. [ 19.907026] cloud-init[581]: ci-info: ++++++++++++++++++++++++++++++++++++Net device info+++++++++++++++++++++++++++++++++++++ [ 19.913354] cloud-init[581]: ci-info: +--------+------+-------------------------+---------------+--------+-------------------+ [ 19.919590] cloud-init[581]: ci-info: | Device | Up | Address | Mask | Scope | Hw-Address | [ 19.926204] cloud-init[581]: ci-info: +--------+------+-------------------------+---------------+--------+-------------------+ [ 19.933926] cloud-init[581]: ci-info: | ens3 | True | 100.103.24.186 | 255.255.248.0 | global | 02:00:17:0c:8e:c1 | [ 19.943601] cloud-init[581]: ci-info: | ens3 | True | fe80::17ff:fe0c:8ec1/64 | . | link | 02:00:17:0c:8e:c1 | [ 19.951073] cloud-init[581]: ci-info: | lo | True | 127.0.0.1 | 255.0.0.0 | host | . | [ 19.960127] cloud-init[581]: ci-info: | lo | True | ::1/128 | . | host | . | [ 19.969361] cloud-init[581]: ci-info: +--------+------+-------------------------+---------------+--------+-------------------+ [ 19.977345] cloud-init[581]: ci-info: +++++++++++++++++++++++++++Route IPv4 info++++++++++++++++++++++++++++ [ 19.984171] cloud-init[581]: ci-info: +-------+--------------+---------+---------------+-----------+-------+ [ 19.993051] cloud-init[581]: ci-info: | Route | Destination | Gateway | Genmask | Interface | Flags | [ 20.001401] cloud-init[581]: ci-info: +-------+--------------+---------+---------------+-----------+-------+ [ 20.009636] cloud-init[581]: ci-info: | 0 | 100.103.24.0 | 0.0.0.0 | 255.255.248.0 | ens3 | U | [ 20.017465] cloud-init[581]: ci-info: +-------+--------------+---------+---------------+-----------+-------+
Hi again!
Testing new image:
https:/ /cloud- images. ubuntu. com/kinetic/ 20220925/ kinetic- server- cloudimg- amd64.img
with cloud-init 22.3.3- 0ubuntu1~ 22.10.1.
Now is netmask correct, however default route is still not set:
$ ip a show ens3
2: ens3: <BROADCAST, MULTICAST, UP,LOWER_ UP> mtu 9000 qdisc pfifo_fast state UP group default qlen 1000 fe0c:8ec1/ 64 scope link
link/ether 02:00:17:0c:8e:c1 brd ff:ff:ff:ff:ff:ff
altname enp0s3
inet 100.103.24.186/21 brd 100.103.31.255 scope global ens3
valid_lft forever preferred_lft forever
inet6 fe80::17ff:
valid_lft forever preferred_lft forever
$ ip r
100.103.24.0/21 dev ens3 proto kernel scope link src 100.103.24.186
From logs:
19.896466] cloud-init[581]: Cloud-init v. 22.3.3- 0ubuntu1~ 22.10.1 running 'init' at Tue, 27 Sep 2022 10:16:42 +0000. Up 19.87 seconds. +++++++ +++++++ +++++++ +++++++ +Net device info+++ +++++++ +++++++ +++++++ +++++++ ++++++ --+---- --+---- ------- ------- ------- +------ ------- --+---- ----+-- ------- ------- ---+ --+---- --+---- ------- ------- ------- +------ ------- --+---- ----+-- ------- ------- ---+ fe0c:8ec1/ 64 | . | link | 02:00:17:0c:8e:c1 | --+---- --+---- ------- ------- ------- +------ ------- --+---- ----+-- ------- ------- ---+ +++++++ +++++++ ++++++Route IPv4 info+++ +++++++ +++++++ +++++++ ++++ -+----- ------- --+---- -----+- ------- ------- +------ -----+- ------+ -+----- ------- --+---- -----+- ------- ------- +------ -----+- ------+ -+----- ------- --+---- -----+- ------- ------- +------ -----+- ------+
[ 19.907026] cloud-init[581]: ci-info: +++++++
[ 19.913354] cloud-init[581]: ci-info: +------
[ 19.919590] cloud-init[581]: ci-info: | Device | Up | Address | Mask | Scope | Hw-Address |
[ 19.926204] cloud-init[581]: ci-info: +------
[ 19.933926] cloud-init[581]: ci-info: | ens3 | True | 100.103.24.186 | 255.255.248.0 | global | 02:00:17:0c:8e:c1 |
[ 19.943601] cloud-init[581]: ci-info: | ens3 | True | fe80::17ff:
[ 19.951073] cloud-init[581]: ci-info: | lo | True | 127.0.0.1 | 255.0.0.0 | host | . |
[ 19.960127] cloud-init[581]: ci-info: | lo | True | ::1/128 | . | host | . |
[ 19.969361] cloud-init[581]: ci-info: +------
[ 19.977345] cloud-init[581]: ci-info: +++++++
[ 19.984171] cloud-init[581]: ci-info: +------
[ 19.993051] cloud-init[581]: ci-info: | Route | Destination | Gateway | Genmask | Interface | Flags |
[ 20.001401] cloud-init[581]: ci-info: +------
[ 20.009636] cloud-init[581]: ci-info: | 0 | 100.103.24.0 | 0.0.0.0 | 255.255.248.0 | ens3 | U |
[ 20.017465] cloud-init[581]: ci-info: +------