Forum Stats

  • 3,853,255 Users
  • 2,264,197 Discussions
  • 7,905,295 Comments

Discussions

option rfc3442-classless-static-routes doesn't get populated in dhclient-<UUID>-enp0s3.lease

User_1HZVW
User_1HZVW Member Posts: 2 Green Ribbon
edited Aug 22, 2022 3:41PM in OCI Networking

I encountered dhclient-related issues after several reboots.

System details -

# cat /etc/os-release
NAME="Oracle Linux Server"
VERSION="8.6"
ID="ol"
ID_LIKE="fedora"
VARIANT="Server"
VARIANT_ID="server"
VERSION_ID="8.6"
PLATFORM_ID="platform:el8"
PRETTY_NAME="Oracle Linux Server 8.6"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:oracle:linux:8:6:server"
HOME_URL="https://linux.oracle.com/"
BUG_REPORT_URL="https://bugzilla.oracle.com/"

ORACLE_BUGZILLA_PRODUCT="Oracle Linux 8"
ORACLE_BUGZILLA_PRODUCT_VERSION=8.6
ORACLE_SUPPORT_PRODUCT="Oracle Linux"
ORACLE_SUPPORT_PRODUCT_VERSION=8.6


Errors from journalctl -

Aug 22 12:03:41 localhost dhclient[634]: Created duid "\000\004X\234\026\316\227!C\370\225\001\357\356es\314\245".

Aug 22 12:03:41 localhost dhclient[634]: DHCPDISCOVER on enp0s3 to 255.255.255.255 port 67 interval 3 (xid=0x2d79ac55)

Aug 22 12:03:41 localhost dhclient[634]: DHCPREQUEST on enp0s3 to 255.255.255.255 port 67 (xid=0x2d79ac55)

Aug 22 12:03:41 localhost dhclient[634]: DHCPOFFER from 169.254.169.254

Aug 22 12:03:41 localhost dhclient[634]: DHCPACK from 169.254.169.254 (xid=0x2d79ac55)

Aug 22 12:03:43 localhost dhclient[634]: bound to 10.0.0.10 -- renewal in 41261 seconds.

Aug 22 12:03:58 ampere-03 NetworkManager[1541]: <info> [1661169838.1824] Read config: /etc/NetworkManager/NetworkManager.conf (lib: 00-server.conf) (run: 10-dracut-dhclient.conf)

Aug 22 12:03:58 ampere-03 NetworkManager[1541]: <info> [1661169838.9005] dhcp-init: Using DHCP client 'dhclient'

Aug 22 12:04:04 ampere-03 NetworkManager[1541]: <info> [1661169844.8055] dhcp4 (enp0s3): dhclient started with pid 1966

Aug 22 12:04:04 ampere-03 dhclient[1966]: /run/NetworkManager/dhclient-4c448a6a-3179-4f38-ae80-6cc45b6663d2-enp0s3.lease line 12: expecting numeric value.

Aug 22 12:04:04 ampere-03 dhclient[1966]:  option classless-static-routes 0,

Aug 22 12:04:04 ampere-03 dhclient[1966]:                                   ^

Aug 22 12:04:04 ampere-03 dhclient[1966]: DHCPREQUEST on enp0s3 to 255.255.255.255 port 67 (xid=0x16697c30)

Aug 22 12:04:04 ampere-03 dhclient[1966]: DHCPACK from 169.254.169.254 (xid=0x16697c30)

Aug 22 12:04:04 ampere-03 dhclient[1966]: bound to 10.0.0.10 -- renewal in 40347 seconds.


Relevant files -

# cat /run/NetworkManager/dhclient-86434213-284f-47a9-a35f-3d51d369eb0f-enp0s3.lease 

default-duid "\000\004X\234\026\316\227!C\370\225\001\357\356es\314\245";

lease {

 interface "enp0s3";

 fixed-address 10.0.0.10;

 option subnet-mask 255.255.255.0;

 option dhcp-lease-time 86400;

 option routers 10.0.0.1;

 option dhcp-message-type 5;

 option domain-name-servers 169.254.169.254;

 option dhcp-server-identifier 169.254.169.254;

 option interface-mtu 9000;

 option domain-name "vcn12251634.oraclevcn.com";

 renew 1 2022/08/22 22:52:56;

 rebind 2 2022/08/23 10:04:36;

 expire 2 2022/08/23 13:04:36;

}

lease {

 interface "enp0s3";

 fixed-address 10.0.0.10;

 option subnet-mask 255.255.255.0;

 option routers 10.0.0.1;

 option dhcp-lease-time 86400;

 option dhcp-message-type 5;

 option dhcp-server-identifier 169.254.169.254;

 option domain-name-servers 169.254.169.254;

 option interface-mtu 9000;

 option rfc3442-classless-static-routes 0,10,0,0,1,16,169,254,0,0,0,0;

 option domain-name "vcn12251634.oraclevcn.com";

 renew 1 2022/08/22 22:38:51;

 rebind 2 2022/08/23 10:05:01;

 expire 2 2022/08/23 13:05:01;

}

# grep -v "#" /var/lib/NetworkManager/dhclient-enp0s3.conf

send dhcp-client-identifier = hardware;

option rfc3442-classless-static-routes code 121 = array of unsigned integer 8;
option ms-classless-static-routes code 249 = array of unsigned integer 8;
option wpad code 252 = string;

also request rfc3442-classless-static-routes;
also request ms-classless-static-routes;
also request static-routes;
also request wpad;
also request ntp-servers;
also request root-path;

Is it okay to use systemd-networkd after purging NetworkManager? I have services running in the VM, will it affect me much? Will it significantly harm me given that I have services operating in the VM?