News:

SMF - Just Installed!

Main Menu

How to turn off ipv6 DHCP?

Started by kalpana, Oct 21, 2023, 05:10 AM

Previous topic - Next topic

kalpana

I'm setting up ipv4/ipv6 router on Ubuntu server 22.04. Figured out virtually everything. But still can't solve one issue. In my setup, I don't need systemd-networkd to request DHCP for ipv6, it's done by isc-dhcp-client. But there is still ipv6 dhcp request from systemd-networkd, even though dhcp is set to "false" in Netplan.

Here's Netplan file content:


network:
ethernets:
eno1:
dhcp4: true
dhcp6: false
ipv6-privacy: true
accept-ra: true
enp4s0:
addresses: [192.168.10.6/24,192.168.10.1/24]
#gateway4: 192.168.10.1
nameservers:
addresses: [192.168.10.1,192.168.10.2]
search: [****-****.****]
dhcp4: no
#routes:
#- to: default
#via: 192.168.10.1
version: 2

eno1 is the WAN interface. BTW, dhcp6 is not set for the LAN interface enp4s0, but it's still getting an address from radvd (which is what I need).

Anyway, how to prevent systemd-networkd from requestion ipv6 dhcp?